Xiaohongshu (RedNote) search suggestions API
Get the suggestions Xiaohongshu's search box lists as a keyword is typed into it (autocomplete), in the order it lists them, about 10 at a time. The words and their places only, with no index. About 10 items a call, 20 at most; $0.0200 per call. Errors and timeouts are not charged.
Try it
Change a value and the request on the right follows.Sign in to run it; it runs on your own balance. New accounts can try this endpoint free, up to 5 calls.
curl -G "https://api.dataxapi.com/v1/xiaohongshu/keywords/related" \ --data-urlencode "keyword=露营" \ -H "Authorization: Bearer $DATAXAPI_API_KEY"
{
"code": "ok",
"request_id": "fcd7ec01-2cf0-409b-9279-1d9dcc130c4f",
"data": {
"items": [
{
"keyword": "露营必备清单",
"related_to": "露营",
"relation": "suggestion",
"rank": 1
},
// … 9 more
]
},
"page": {
"next_cursor": null,
"cursor_expires_at": null,
"has_more": false,
"returned": 10
},
"warnings": [],
"meta": {
"capability": "xiaohongshu.keywords.related",
"result_status": "complete",
"fetched_at": "2026-11-06T16:42:03.000Z",
"cached": false,
"replayed": false,
"unavailable": {
"relevance": "platform",
"search_index": "platform",
"composite_index": "platform"
},
"billing": {
"amount": "0.02",
"currency": "USD",
"balance_after": "9.98"
}
}
}From a response recorded 2026-11-06 16:42 UTC. Names, text and IDs are examples, and so are the links: none is the recorded one (the page shows no one's personal data); the figures are as recorded. Long lists are cut. The request ID, cursor and balance are made up.
Size as sent: 1.3 KB in the standard view (1.3 KB compact, 1.3 KB full).
{
"code": "ok",
"request_id": "c3567ac1-4c53-49ec-9d39-d32a627dc7c5",
"data": { "items": [] },
"page": {
"next_cursor": null,
"cursor_expires_at": null,
"has_more": false,
"returned": 0
},
"warnings": [],
"meta": {
"capability": "xiaohongshu.keywords.related",
"result_status": "empty",
"fetched_at": "2026-11-06T16:42:07.000Z",
"cached": false,
"replayed": false,
"unavailable": {
"relevance": "platform",
"search_index": "platform",
"composite_index": "platform"
},
"billing": {
"amount": "0.02",
"currency": "USD",
"balance_after": "9.98"
}
}
}From a response recorded 2026-11-06 16:42 UTC. The request ID and balance are made up.
Size as sent: 488 B in the standard view (488 B compact, 488 B full).
curl -G "https://api.dataxapi.com/v1/xiaohongshu/keywords/related" \ --data-urlencode "keyword=露营" \ -H "Authorization: Bearer $DATAXAPI_API_KEY"
# pip install dataxapi from dataxapi import DataXAPI dx = DataXAPI() # reads DATAXAPI_API_KEY result = dx.xiaohongshu.keywords.related(keyword="露营") print(result["data"]["items"])
// npm i @dataxapi/sdk import { DataXAPI } from "@dataxapi/sdk"; const dx = new DataXAPI(); // reads DATAXAPI_API_KEY const result = await dx.xiaohongshu.keywords.related({ keyword: "露营" }); console.log(result.data.items);
dataxapi call xiaohongshu.keywords.related 'keyword=露营'{
"mcpServers": {
"dataxapi": {
"type": "http",
"url": "https://api.dataxapi.com/mcp",
"headers": {
"Authorization": "Bearer ${DATAXAPI_API_KEY}"
}
}
}
}Add this to your MCP client, then ask your agent to call xiaohongshu.keywords.related.
Parameters
One keyword. Example: 露营.
How much of each item to return. All three cost the same. Values: compact, standard (default), full.
Return only these fields. Each by its path, such as author.name.
Known limits
- About 10 items a page, 20 at most. The page size is the platform's;
limitis not accepted. - Everything comes in one page; no cursor is issued.
- 3 fields of the object are not available from this endpoint
Returned fields
data.items is a list of related keyword objects. Preview: the structure may change, announced beforehand.
The related keyword
The keyword it is related to: the one asked about
How it is related: query (searched together with the keyword asked about), posts (appears together with it in content), prior (searched before it), after (searched after it), suggestion (what the platform suggests as the keyword is typed into its search box)querypostsprioraftersuggestion
Position by relevance among the keywords of the same relation, from 1
On this platform: Place among the suggestions the search box lists, from 1, the keyword asked about itself not counted
How closely it is related to the keyword asked about, 0 to 1
Search index of the related keyword: the platform's index, not a count of searches; null where the platform gives no figure for the word
Show all 10 fields →
Composite index of the related keyword: the platform's index of how much attention content about it drew, not a count
Which numbers of this item are approximate or lower bounds; absent when all are exact
Path of the field, such as metrics.views
Approximate, or a lower boundapproximatelower_bound
Typical size of one item: compact 85 B, standard 85 B, full 85 B (measured on the response recorded 2026-11-06 16:42 UTC).
What this endpoint cannot give
relevanceThe platform has nonesearch_indexThe platform has nonecomposite_indexThe platform has noneWhen you are charged
X-Max-Price to refuse anything above your own limit)Prices as read 2026-11-06 17:50 UTC, under price book 10, in effect since 2026-11-06 17:48 UTC; the Playground reads the price in force before a run.
If the object does not exist
A keyword Xiaohongshu has no suggestions for returns an empty result, never a not-found error.
Errors
What this endpoint can answer with; codes all endpoints share are on the full list.
invalid_paramsA parameter is invalidRetry: After a fixNoinsufficient_balanceThe balance is too lowRetry: After a fixNoupstream_failedNo result came back this time. Retry later; if the same item keeps failing, it most likely cannot be retrieved (deleted or restricted, say)Retry: YesNotimeoutThe data did not arrive in time; retry with the same idempotency keyRetry: YesNoQuestions
How much does the Xiaohongshu (RedNote) search suggestions API cost?
$0.0200 per call. The most one call can cost is $0.0200.
When am I not charged?
Errors and timeouts are not charged.
How many items does one call return, and how do I get the next page?
About 10 items a page, 20 at most. The page size is the platform's; limit is not accepted. Everything comes in one page; no cursor is issued.
What happens if the object does not exist?
A keyword Xiaohongshu has no suggestions for returns an empty result, never a not-found error.
All 23 Xiaohongshu (RedNote) endpoints
Use it in your AI
Copy this prompt
Your API key is built in, so there is nothing to configure.
No account yet? Sign-up takes an email and no card, and a failed call is never charged.
Paste it into your agent
It reads the page the prompt points to and connects itself.
Now ask something
Use one of these, or your own words.
Prefer to set it up by hand?
dataxapi setupgives the agents on your machine (Claude Code, Codex, Cursor) the DataXAPI MCP server and the base skill. The key is read from DATAXAPI_API_KEY; none is written into a file.MCP server: https://api.dataxapi.com/mcp. The entry for your client is under MCP in the request examples of this page; then ask your agent to call xiaohongshu.keywords.related.Other clients →Show the text
Use the DataXAPI endpoint xiaohongshu.keywords.related (Xiaohongshu (RedNote) search suggestions). Get the suggestions Xiaohongshu's search box lists as a keyword is typed into it (autocomplete), in the order it lists them, about 10 at a time. The words and their places only, with no index. Call GET https://api.dataxapi.com/v1/xiaohongshu/keywords/related with the header "Authorization: Bearer $DATAXAPI_API_KEY". Read the key from the environment variable DATAXAPI_API_KEY; never write it into code. Parameters: - keyword (required): One keyword. Example: 露营. - view: How much of each item to return. All three cost the same. Values: compact, standard (default), full. - fields: Return only these fields. Each by its path, such as author.name. Price: $0.0200 per call. Errors and timeouts are not charged. The answer is JSON: data.items holds related keyword; meta.billing.amount is what this call was charged. Example: curl -G "https://api.dataxapi.com/v1/xiaohongshu/keywords/related" \ --data-urlencode "keyword=露营" \ -H "Authorization: Bearer $DATAXAPI_API_KEY" Full reference in Markdown: https://dataxapi.com/apis/xiaohongshu/keywords/related.md
Names and identifiers
- In Chinese
- 小红书搜索框联想词 API
- Endpoint ID
xiaohongshu.keywords.related- Endpoint
GET /v1/xiaohongshu/keywords/related
Start with one key.
230 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.