Answers / Xiaohongshu (RedNote)
How can I search Xiaohongshu (RedNote) notes with an API?
Send GET /v1/xiaohongshu/search?query=露营咖啡 with Authorization: Bearer YOUR_API_KEY. Each note comes back with its title, text, likes, comments, shares, the creator and a xiaohongshu.com link. Use the note ID with /v1/xiaohongshu/comments to read replies.
Xiaohongshu (RedNote) · search posts · $0.03 a call · one verified website trial · updated 2026-11-13
Run it live
Calls run only when you press Run. Opening this page does not spend credit.
Loading…
Your results will appear here. Choose a platform and action, then press Run.
Real API calls require verification for one trial, or a signed-in account with prepaid credit.
From code
curl "https://posttodata.com/v1/xiaohongshu/search?query=%E9%9C%B2%E8%90%A5%E5%92%96%E5%95%A1&limit=5" -H "Authorization: Bearer YOUR_API_KEY"import requests
r = requests.get(
"https://posttodata.com/v1/xiaohongshu/search",
headers={"Authorization": "Bearer YOUR_API_KEY"},
params={"query": "露营咖啡", "limit": 5},
)
for item in r.json()["data"]["items"]:
print(item["url"], item.get("text") or item.get("title"))From your AI
Claude and ChatGPT clients that support OAuth can sign in without pasting a key. Follow the client setup guide. The command below is the API-key option for Claude Code.
claude mcp add --transport http posttodata https://posttodata.com/mcp --header "Authorization: Bearer YOUR_API_KEY"Then ask
“Search Xiaohongshu for camping coffee and tell me which gear people recommend, with links.”
The model calls search_posts with platform xiaohongshu.
Good to know
- Xiaohongshu search lists at $0.03; note detail costs $0.06. Check prices.json for each action.
- Ad cards in search results are removed.
- Accounts are addressed by their 24-character user ID.
Full reference in the docs. All Xiaohongshu (RedNote) endpoints are on the Xiaohongshu (RedNote) API page.
More answers