Xiaohongshu (RedNote) · Search
Search suggestions for a keyword
Send a keyword; get the search suggestions the platform offers for it, each with its suggestion type.
POST/v1/xiaohongshu/suggest
$0.00275per record
- 1,000 records
- ≈ $2.75
- minimum per page of 10 records
- $0.012568
Works with trial balanceOne request, no cursor
Send it
POST with a JSON body, or GET with the same parameters in the query string. Your key goes in the Authorization header.
curl -X POST "https://api.silklinedata.com/v1/xiaohongshu/suggest" \
-H "Authorization: Bearer $SILKLINE_KEY" \
-H "Content-Type: application/json" \
-d '{"limit":5,"keyword":"口红"}'import os, requests
response = requests.post(
"https://api.silklinedata.com/v1/xiaohongshu/suggest",
headers={"Authorization": "Bearer " + os.environ["SILKLINE_KEY"]},
json={
"limit": 5,
"keyword": "口红",
},
)
answer = response.json()
print(answer["data"], answer["meta"]["charged_usd"])const response = await fetch("https://api.silklinedata.com/v1/xiaohongshu/suggest", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.SILKLINE_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"limit": 5,
"keyword": "口红"
}),
});
const { data, cursor, meta } = await response.json();
console.log(data, meta.charged_usd);What comes back
There is no stored real answer for this endpoint yet, so none is shown. Records come back as JSON objects in data.
Parameters 2
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| limit | integer | no | How many records to return, 1 to 100. A request never returns more than this. | 5 |
| keyword | string | yes | Search keyword. Chinese keywords return the best results. | 口红 |
Paging
This endpoint answers in one request: raise limit (up to 100) for more records. cursor is always null.
What a request costs
You pay per record; when a request returns few records or none, it is charged at most the endpoint minimum for each page it reads, possibly less, and errors or timeouts on our side are not charged.
Here a page holds up to 10 records and its minimum is $0.012568; a request for 100 records reads 10 pages.
- 1 record: up to $0.012568
- 20 records: up to $0.055
- 100 records: up to $0.275
The response's meta says what was charged (charged_usd) and what is left (balance_usd). Errors on our side are not charged.
Questions
What parameters does Search suggestions for a keyword take?
Required: keyword. Every request also takes limit (1 to 100).
How many records does one request return?
Up to 100 (limit 1 to 100). A page holds up to 10 records, so 100 records take 10 pages in one request.
Can I page through more results?
No. This endpoint answers in full in one request; the answer's cursor is null.
How much does it cost?
Per record: item $0.00275. The minimum is $0.012568 per page: with few records or none, a request pays at most that for each page it reads, possibly less. 100 records cost at most $0.275.
What does a request cost when it fails or comes back empty?
You pay per record; when a request returns few records or none, it is charged at most the endpoint minimum for each page it reads, possibly less, and errors or timeouts on our side are not charged. Each answer's meta says what the request was charged and the balance left.