Data APIs / Xiaohongshu (RedNote)
PGY related keywords API
What people search on Xiaohongshu before and after a keyword, with each word’s search index, for topic ideas.
| Item | Value |
|---|---|
| Endpoint | GET https://api.feedmcp.com/v1/xiaohongshu/pgy/keywords/related |
| ID | xiaohongshu.pgy.keywords.related |
| Price | $0.04 / call |
| Returns | A page of Trend objects |
| Auth | Authorization: Bearer $FEEDMCP_API_KEY |
labelsays whether people searched it before or after;heatis the search index (null when 0 or missing).
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.items is a list of Trend objects, with the same fields on every platform:
| Field | Type | Description |
|---|---|---|
rank |
number | Rank; 0 means pinned |
platform |
string | Platform |
keyword |
string | Term |
heat |
number | null | Heat (each platform counts its own way) |
label |
string | null | Label, such as pinned or hot |
url |
string | null | Search link on the platform |
When you are charged
$0.04 per call that returns the list. An empty list (the platform did not answer), platform errors and timeouts are free; just retry.
Each answer carries meta.billing: what this call cost and the balance left.
Request
cURL
curl "https://api.feedmcp.com/v1/xiaohongshu/pgy/keywords/related?keyword=%E9%9C%B2%E8%90%A5" \
-H "Authorization: Bearer $FEEDMCP_API_KEY"
Python
import os, requests
r = requests.get(
"https://api.feedmcp.com/v1/xiaohongshu/pgy/keywords/related",
params={"keyword": "露营"},
headers={"Authorization": f"Bearer {os.environ['FEEDMCP_API_KEY']}"},
timeout=30,
)
print(r.json())
JavaScript
const res = await fetch("https://api.feedmcp.com/v1/xiaohongshu/pgy/keywords/related?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:
{
"endpoint": "xiaohongshu.pgy.keywords.related",
"params": {
"keyword": "露营"
},
"max_price": "0.04"
}
Response
The data below is made up; the shape is the real one.
{
"code": "ok",
"request_id": "req_7Qm2kXb9TzLp",
"data": {
"items": [
{
"rank": 1,
"platform": "xiaohongshu",
"keyword": "徒步",
"heat": 792677,
"label": "之前搜",
"url": "https://www.xiaohongshu.com/search_result?keyword=%E5%BE%92%E6%AD%A5"
},
{
"rank": 2,
"platform": "xiaohongshu",
"keyword": "露营装备",
"heat": 243234,
"label": "之后搜",
"url": "https://www.xiaohongshu.com/search_result?keyword=%E9%9C%B2%E8%90%A5%E8%A3%85%E5%A4%87"
}
]
},
"page": {
"next_cursor": null,
"has_more": false
},
"warnings": [],
"meta": {
"endpoint": "xiaohongshu.pgy.keywords.related",
"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: each says whether you were charged (charged) and whether to retry (retry).
Other Xiaohongshu (RedNote) endpoints
- Xiaohongshu note:$0.02
- Xiaohongshu note comments:$0.02
- Xiaohongshu creator profile:$0.02
- Xiaohongshu creator notes:$0.02
- Xiaohongshu note search:$0.02
- Xiaohongshu comment replies:$0.02
- Xiaohongshu account search:$0.02
- PGY blogger search:$0.04
- PGY blogger profile:$0.04
- PGY blogger overview:$0.04
- PGY blogger note performance:$0.04
- PGY blogger daily figures:$0.04
- PGY blogger follower profile:$0.04
- PGY blogger follower quality:$0.04
- PGY blogger follower history:$0.04
- PGY blogger notes:$0.04
- PGY similar bloggers:$0.04
- PGY note figures:$0.04
- PGY trending notes:$0.04
- PGY keyword overview:$0.04
- PGY keyword daily index:$0.04
Questions
How much does the PGY related keywords endpoint cost?
$0.04 per call that returns the list. An empty list (the platform did not answer), platform errors and timeouts are free; just retry.
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 get more items?
When the answer has page.next_cursor, pass it back as cursor for the next page. Each page is billed on its own.
How do I use it from an AI?
Install the MCP server and ask; your AI calls xiaohongshu.pgy.keywords.related.