API Xiaohongshu (RedNote): note, commenti, creator
35 Xiaohongshu endpoints covering notes, accounts, hot lists, images, comments, topics, keywords, videos, PGY and shop, from $0.02 a call. No Xiaohongshu account or cookie needed.
Collega la tua AI
Incolla questo nel tuo agent
Leggi https://okdata.online/agents.md e configura okdata per me; la mia chiave è nella variabile d'ambiente OKDATA_API_KEY.
Claude Code, Cursor, Codex e gli altri agent in grado di aprire un link si configurano da soli a partire da qui.
Server MCPhttps://api.okdata.online/mcp
Ask about Xiaohongshu from Claude, Cursor and other agents: the Xiaohongshu MCP page
- Endpoint
- 35 endpoint
- In 10 gruppi, un unico formato di risposta
- Prezzo più basso
- Da $0.02
- Una chiamata, pagata da un saldo prepagato
- Aggiornamento
- Live
- Le classifiche sono uno snapshot condiviso vecchio al massimo 10 minuti
- Canone mensile
- $0
- Nessun abbonamento né spesa minima
Ogni endpoint Xiaohongshu
Una riga per endpoint: la richiesta, cosa restituisce e quanto costa una chiamata.
Note
5- Ricerca note XiaohongshuGET /v1/xiaohongshu/notes/searchPost[]$0.035
- Dettaglio nota XiaohongshuGET /v1/xiaohongshu/notes/getPost$0.035
- Commenti alle note XiaohongshuGET /v1/xiaohongshu/notes/comments/listComment[]$0.035
- Testo delle note con immagini RedNoteGET /v1/xiaohongshu/notes/text/getMediaText$0.048
- RedNote image note filesGET /v1/xiaohongshu/notes/media/getPostMedia$0.043
Account
3Liste hot
1Immagini
1Commenti
1Argomenti
2Parole chiave
1Video
4- Nota video Xiaohongshu con il suo videoGET /v1/xiaohongshu/videos/getPost$0.035
- Trascrizione video RedNoteGET /v1/xiaohongshu/videos/transcript/getTrascrizione$0.084
- Testo a schermo dei video RedNoteGET /v1/xiaohongshu/videos/screen_text/getMediaText$0.052
- RedNote video note filesGET /v1/xiaohongshu/videos/media/getPostMedia$0.043
- Ricerca creator Xiaohongshu PGYGET /v1/xiaohongshu/pgy/creators/searchCreator[]$0.04
- Dettaglio creator Xiaohongshu PGYGET /v1/xiaohongshu/pgy/creators/getCreator$0.04
- Indice di ricerca delle parole chiave Xiaohongshu PGYGET /v1/xiaohongshu/pgy/keywords/historyKeywordHistory$0.04
- Parole chiave correlate Xiaohongshu PGYGET /v1/xiaohongshu/pgy/keywords/relatedKeywordRelated[]$0.04
- Pubblico di un creator Xiaohongshu PGYGET /v1/xiaohongshu/pgy/creators/audience/getPubblico$0.04
- Metriche delle note di un creator Xiaohongshu PGYGET /v1/xiaohongshu/pgy/creators/metricsPgyCreatorMetrics$0.04
- Note di un creator Xiaohongshu PGYGET /v1/xiaohongshu/pgy/creators/notes/listPgyCreatorPost[]$0.04
- Storico follower di un creator Xiaohongshu PGYGET /v1/xiaohongshu/pgy/creators/followers/historyFollowerHistory$0.04
- Creator simili Xiaohongshu PGYGET /v1/xiaohongshu/pgy/creators/relatedCreator[]$0.04
- Note di tendenza Xiaohongshu PGYGET /v1/xiaohongshu/pgy/notes/trendingPost[]$0.04
- Costi e riepilogo di un creator Xiaohongshu PGYGET /v1/xiaohongshu/pgy/creators/costs/metricsPgyCreatorCosts$0.04
- Qualità dei follower di un creator Xiaohongshu PGYGET /v1/xiaohongshu/pgy/creators/followers/metricsPgyCreatorFollowers$0.04
- Storico dei dati principali di un creator Xiaohongshu PGYGET /v1/xiaohongshu/pgy/creators/costs/historyPgyCreatorCostHistory$0.04
- Dati delle note Xiaohongshu PGYGET /v1/xiaohongshu/pgy/notes/getPgyNote$0.04
I prezzi sono per chiamata, salvo dove indicato /item. Una chiamata che ha raggiunto la piattaforma viene addebitata anche se torna vuota o non riesce.
Cosa si fa con i dati Xiaohongshu
Ogni caso d'uso ha la sua pagina con gli endpoint necessari, un esempio svolto e il relativo costo.
Ricerca di contenuti
“Cosa hanno in comune i post migliori su questo argomento?”
14 endpoint qui, da $0.02Come funziona
Scoperta di creator
“Chi sono i creator di medie dimensioni nell'attrezzatura da campeggio?”
- Profilo account Xiaohongshu$0.02
- Note di un account Xiaohongshu$0.03
- Ricerca creator Xiaohongshu PGY$0.04
14 endpoint qui, da $0.02Come funziona
Monitoraggio dei concorrenti
“Cosa hanno pubblicato i nostri concorrenti questa settimana e cosa ha funzionato?”
9 endpoint qui, da $0.02Come funziona
Ricerca di tendenze
“Cosa è di tendenza oggi che potremmo sfruttare?”
- Argomenti di tendenza Xiaohongshu$0.03
- Ricerca immagini Xiaohongshu$0.02
- Note di un argomento Xiaohongshu$0.03
8 endpoint qui, da $0.02Come funziona
Passaparola
“Di cosa si lamentano di più gli acquirenti?”
- Ricerca note Xiaohongshu$0.035
- Commenti alle note Xiaohongshu$0.035
- Recensioni prodotti del negozio Xiaohongshu$0.02
4 endpoint qui, da $0.02Come funziona
Trascrizioni
“Quali prodotti ha consigliato questo canale?”
- Nota video Xiaohongshu con il suo video$0.035
- Trascrizione video RedNote$0.084
- Testo delle note con immagini RedNote$0.048
4 endpoint qui, da $0.035Come funziona
Analisi prodotti
“Quanto costano i prodotti più venduti e di cosa si lamentano gli acquirenti?”
- Ricerca prodotti del negozio Xiaohongshu$0.02
- Recensioni prodotti del negozio Xiaohongshu$0.02
- Dettaglio prodotto del negozio Xiaohongshu$0.02
3 endpoint qui, da $0.02Come funziona
Inizia in tre passaggi
The example is Ricerca note Xiaohongshu; every Xiaohongshu endpoint is called the same way and answers in the same shape.
Ottieni una chiave
Crea un account e una chiave nella console. Una nuova chiave include $0.20 per provare, senza carta.
Collega la tua AI, o chiamala direttamente
Incolla questa frase in Claude Code, Cursor, Codex o un altro agente in grado di aprire un link, e si configura da solo. Oppure invia la richiesta qui sotto con la tua chiave nell'header Authorization.
Configura okdata per me seguendo https://okdata.online/agents.md. Ecco la mia chiave API okdata: okd_…. Conservala al sicuro e usala per tutte le chiamate a okdata.
Sostituisci il segnaposto con la tua chiave, oppure accedi e copialo con la chiave già inserita.
Fai la prima chiamata
Gli elementi arrivano in data.items (un singolo oggetto in data.item), la pagina successiva in page.next_cursor e l'importo addebitato in meta.billing.amount.
cURL
curl -G "https://api.okdata.online/v1/xiaohongshu/notes/search" \ -H "Authorization: Bearer $OKDATA_API_KEY" \ --data-urlencode 'query=防晒霜 推荐'Python
import os import requests resp = requests.get( "https://api.okdata.online/v1/xiaohongshu/notes/search", headers={"Authorization": f"Bearer {os.environ['OKDATA_API_KEY']}"}, params={"query": "防晒霜 推荐"}, timeout=60, ) body = resp.json() if body["code"] != "ok": raise RuntimeError(f"{body['code']}: {body['message']} (charged: {body['charged']})") for row in body["data"]["items"]: print(row["id"], row["metrics"]["likes"], row["text"][:60]) print("cost: $" + body["meta"]["billing"]["amount"])TypeScript
const url = new URL('https://api.okdata.online/v1/xiaohongshu/notes/search'); url.searchParams.set('query', "防晒霜 推荐"); const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.OKDATA_API_KEY}`, }, }); const body = await res.json(); if (body.code !== 'ok') throw new Error(`${body.code}: ${body.message}`); for (const row of body.data.items) { console.log(row.id, row.metrics.likes, row.text.slice(0, 60)); } console.log('cost: $' + body.meta.billing.amount);MCPtools/call
{ "name": "call", "arguments": { "capability": "xiaohongshu.notes.search", "query": "防晒霜 推荐" } }
Domande sull'API Xiaohongshu
Quanto costa l'API Xiaohongshu?
Each of the 35 endpoints has its own price, from $0.02 to $0.084 a call; the cheapest is Ricerca immagini Xiaohongshu at $0.02. You pay per call from a prepaid balance, with no subscription. A call that reaches the platform is charged even when it comes back empty, not found or failed; one stopped before that, such as for bad parameters, is free.
Mi serve un account o un cookie Xiaohongshu?
No. You call https://api.okdata.online with one okdata key and get public Xiaohongshu data back; you never use your own Xiaohongshu account, cookie or QR login.
Quanto sono aggiornati i dati?
A request reads Xiaohongshu when you call, unless the same request was answered a short while ago: then the answer can come from the result cache, with meta.cached: true and meta.fetched_at saying when it was read (lists and searches up to 30 minutes old, one post or product up to 1 hour, profiles up to 6 hours). Hot lists come from a shared snapshot that is at most 10 minutes old.
Il mio agente AI può usare l'API Xiaohongshu?
Sì. Collega il server MCP all'indirizzo https://api.okdata.online/mcp: il suo tool find elenca questi 35 endpoint con i relativi prezzi e il suo tool call li esegue con la tua chiave.
Posso provarlo gratis?
New accounts get $0.20 of trial credit with no card: enough for 10 calls to Ricerca immagini Xiaohongshu.
