<p class="crumbs"><a href="/apis/">Data APIs</a> / <a href="/apis/xiaohongshu/">Xiaohongshu (RedNote)</a></p>

# PGY keyword overview API

A keyword on Xiaohongshu over 30 days: search index, notes, creators, impressions, reads and engagements, with change on the previous period.

| Item | Value |
| --- | --- |
| Endpoint | `GET https://api.feedmcp.com/v1/xiaohongshu/pgy/keywords/metrics` |
| ID | `xiaohongshu.pgy.keywords.metrics` |
| Price | **$0.04** / call |
| Returns | One Stats object |
| Auth | `Authorization: Bearer $FEEDMCP_API_KEY` |

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `keyword` | string | yes | Keyword |

Every endpoint also takes `view=full` to include the platform's raw data as `raw`, at the same price.

## Returned fields

`data.item` is one Stats object, with the same fields on every platform:

| Field | Type | Description |
| --- | --- | --- |
| `platform` | string | Platform |
| `subject_id` | string | Whose figures these are: creator ID or keyword |
| `period` | string \| null | Period covered; for day-by-day lists, the day (YYYY-MM-DD) |
| `metrics` | object | The figures, named on each endpoint page; rates are 0–1 and money is CNY |

## When you are charged

$0.04 per call that returns data. Not found, no data, bad parameters, platform errors and timeouts are free.

Each answer carries `meta.billing`: what this call cost and the balance left.

## Request

### cURL

```bash
curl "https://api.feedmcp.com/v1/xiaohongshu/pgy/keywords/metrics?keyword=%E9%9C%B2%E8%90%A5" \
  -H "Authorization: Bearer $FEEDMCP_API_KEY"
```

### Python

```python
import os, requests

r = requests.get(
    "https://api.feedmcp.com/v1/xiaohongshu/pgy/keywords/metrics",
    params={"keyword": "露营"},
    headers={"Authorization": f"Bearer {os.environ['FEEDMCP_API_KEY']}"},
    timeout=30,
)
print(r.json())
```

### JavaScript

```js
const res = await fetch("https://api.feedmcp.com/v1/xiaohongshu/pgy/keywords/metrics?keyword=%E9%9C%B2%E8%90%A5", {
  headers: { Authorization: `Bearer ${process.env.FEEDMCP_API_KEY}` },
});
console.log(await res.json());
```

### MCP

From an AI with FeedMCP installed, the `call` tool:

```json
{
  "endpoint": "xiaohongshu.pgy.keywords.metrics",
  "params": {
    "keyword": "露营"
  },
  "max_price": "0.04"
}
```

## Response

The data below is made up; the shape is the real one.

```json
{
  "code": "ok",
  "request_id": "req_7Qm2kXb9TzLp",
  "data": {
    "item": {
      "platform": "xiaohongshu",
      "subject_id": "露营",
      "period": "近 30 天",
      "metrics": {
        "search_index": 1247360,
        "search_index_change": -0.301,
        "notes": 255734,
        "notes_change": -0.124,
        "creators": 159155,
        "creators_change": null,
        "impressions": 4811119897,
        "impressions_change": null,
        "reads": 759326284,
        "reads_change": null,
        "engagements": 30063467,
        "engagements_change": null,
        "likes": 22945400,
        "saves": 5693217,
        "comments": 1424850,
        "shares": 3183593,
        "follows": null
      }
    }
  },
  "page": null,
  "warnings": [],
  "meta": {
    "endpoint": "xiaohongshu.pgy.keywords.metrics",
    "platform": "xiaohongshu",
    "fetched_at": "2026-11-19T08:00:00.000Z",
    "source": "FeedMCP",
    "catalog_revision": "d09a736bd39e8b3f",
    "billing": {
      "charged": true,
      "amount": "0.04",
      "currency": "USD",
      "balance": "9.98"
    }
  }
}
```

Errors are described in [Errors](/docs/errors/): each says whether you were charged (`charged`) and whether to retry (`retry`).

## Other Xiaohongshu (RedNote) endpoints

- [Xiaohongshu note](/apis/xiaohongshu/notes/get/)：$0.02
- [Xiaohongshu note comments](/apis/xiaohongshu/notes/comments/list/)：$0.02
- [Xiaohongshu creator profile](/apis/xiaohongshu/users/get/)：$0.02
- [Xiaohongshu creator notes](/apis/xiaohongshu/users/notes/list/)：$0.02
- [Xiaohongshu note search](/apis/xiaohongshu/notes/search/)：$0.02
- [Xiaohongshu comment replies](/apis/xiaohongshu/notes/comments/replies/list/)：$0.02
- [Xiaohongshu account search](/apis/xiaohongshu/users/search/)：$0.02
- [PGY blogger search](/apis/xiaohongshu/pgy/creators/search/)：$0.04
- [PGY blogger profile](/apis/xiaohongshu/pgy/creators/get/)：$0.04
- [PGY blogger overview](/apis/xiaohongshu/pgy/creators/metrics/)：$0.04
- [PGY blogger note performance](/apis/xiaohongshu/pgy/creators/performance/)：$0.04
- [PGY blogger daily figures](/apis/xiaohongshu/pgy/creators/costs/history/)：$0.04
- [PGY blogger follower profile](/apis/xiaohongshu/pgy/creators/followers/get/)：$0.04
- [PGY blogger follower quality](/apis/xiaohongshu/pgy/creators/followers/metrics/)：$0.04
- [PGY blogger follower history](/apis/xiaohongshu/pgy/creators/followers/history/)：$0.04
- [PGY blogger notes](/apis/xiaohongshu/pgy/creators/notes/list/)：$0.04
- [PGY similar bloggers](/apis/xiaohongshu/pgy/creators/similar/list/)：$0.04
- [PGY note figures](/apis/xiaohongshu/pgy/notes/get/)：$0.04
- [PGY trending notes](/apis/xiaohongshu/pgy/notes/trending/)：$0.04
- [PGY keyword daily index](/apis/xiaohongshu/pgy/keywords/history/)：$0.04
- [PGY related keywords](/apis/xiaohongshu/pgy/keywords/related/)：$0.04

## Questions

### How much does the PGY keyword overview endpoint cost?

$0.04 per call that returns data. Not found, no data, bad parameters, platform errors and timeouts are free.

### Do I need a platform account?

No. Only public data is read.

### Where do I find the ID or link?

A note ID is the part after /explore/ in a note link; a share link (xhslink.com) works too.

### How do I use it from an AI?

Install the [MCP server](/mcp/) and ask; your AI calls `xiaohongshu.pgy.keywords.metrics`.

---

HTML version: https://feedmcp.com/apis/xiaohongshu/pgy/keywords/metrics/
