API JD.com Domande
Stato di salute dell'API
- Operatività nelle ultime 24 ore
- Normale
- Buono / normale
- Disponibile
Ultime 24 ore
Ultimi 30 giorni
Read the Q&A ("Ask everyone") questions on a JD.com product, about 10 per page, each with its text, date, masked asker, answer and seller-answer counts and up to 2 answers. Page with next_page_token; question_count is the product's total.
Invia POST https://api.everyinfra.com/api/v1/social con platform impostato su jd e action impostato su questions. Prezzo $0.56 per 1.000 richieste ($0.000556 per chiamata). Le chiamate non riuscite e i risultati vuoti non vengono addebitati. Sincrona. Per i job più lenti, aggiungi "mode": "async" al corpo della richiesta, recupera il job_id ed esegui il polling.
Prompt per l'AI
#Aiutami a scrivere uno script di raccolta dei dati con l'endpoint JD.com Domande di EveryInfra (jd/questions).
Come funziona l'endpoint:
- Richiesta: POST https://api.everyinfra.com/api/v1/social con l'header Authorization: Bearer <chiave API>. Leggi la chiave dalla variabile d'ambiente EVERYINFRA_API_KEY e non scriverla mai direttamente nel codice.
- Nel corpo della richiesta imposta platform su jd e action su questions, e inserisci i parametri in params.
- Parametri obbligatori:
- item_id: The JD.com product whose Q&A you want: the digit string or https://item.jd.com/<digits>.html without a query or fragment. A product that does not exist returns an empty result and is not charged.
- Parametri facoltativi:
- page_token: Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Usually 10 questions per page.
- Restituisce un elenco di record. Campi principali di ogni record: id, item_id (ID numerico del prodotto su JD), text, posted_date (Date posted (questions, question_answer…), author_name (Reviewer nickname, returned as JD shows…), ip_location (IP-based location JD shows (a province)…), answer_count (Total number of answers to the question…), seller_answer_count (Number of seller answers under the ques…), answers (Answers JD shows together with the ques…), has_more_answers (Whether there are answers beyond those…), position (Position, starting at 1: in description…), question_count (Total number of questions on the produc…).
- Esempio di corpo della richiesta:
{
"platform": "jd",
"action": "questions",
"params": {
"item_id": "100270865468"
}
}
- Prezzo: $0.56 per 1.000 richieste; le richieste non riuscite e i risultati vuoti non vengono addebitati.
- Per decine o centinaia di target, aggiungi "mode": "async" al corpo: ricevi subito un job_id ed esegui il polling su GET https://api.everyinfra.com/api/v1/jobs/{job_id} per ottenere il risultato.
- In caso di 422, correggi la richiesta usando i nomi dei parametri e i valori consentiti suggeriti nell'errore; in caso di 429 o 503, attendi il tempo indicato da Retry-After e riprova.
Prima di scrivere il codice, chiedimi quali target mi servono, quanti, quali campi e quale formato di output voglio; poi conferma con me il piano e il costo indicativo.Parametri della richiesta
#| Nome | Posizione | Tipo | Obbligatorio | Predefinito | Descrizione |
|---|---|---|---|---|---|
Authorization | header | string | Sì | - | Bearer seguito dalla tua chiave API. Creala nella console; non inserirla mai in un URL o in un repository di codice. |
platform | body | string | Sì | jd | Identificativo della piattaforma, valore fisso. |
action | body | string | Sì | questions | Identificativo della funzionalità, valore fisso. |
item_id | body.params | string | Sì | - | The JD.com product whose Q&A you want: the digit string or https://item.jd.com/<digits>.html without a query or fragment. A product that does not exist returns an empty result and is not charged. |
page_token | body.params | string | No | - | Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Usually 10 questions per page; each page is one call and limit has no effect. Neighboring pages can repeat a question, so drop duplicates by id. Tokens last 24 hours, and the last page has no next_page_token. |
Esempi di codice
#curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "jd",
"action": "questions",
"params": {
"item_id": "100270865468"
}
}'Definizione OpenAPI (JSON)Gli esempi leggono la chiave dalla variabile d'ambiente EVERYINFRA_API_KEY; il codice copiato non contiene mai la tua chiave.
Esempio di risposta
#{ "id": "req_…", "platform": "jd", "action": "questions", "results": [ { "id": …, "item_id": …, "text": …, "posted_date": …, "author_name": …, "ip_location": …, "answer_count": …, "seller_answer_count": …, "answers": …, "has_more_answers": …, "position": …, "question_count": …, "platform": … } ], "next_page_token": …, "pagination": { … }, "count": …, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
Campi della risposta
#I dati di business si trovano in results. La tabella elenca i campi che un record può contenere; i valori che la piattaforma non mostra non vengono mai inventati.
| Campo | Significato |
|---|---|
id | ID univoco del record sulla piattaforma. È univoco solo all'interno di una piattaforma; gli ID possono ripetersi tra piattaforme diverse. |
item_id | ID numerico del prodotto su JD. Dai risultati di ricerca puoi passarlo direttamente alle chiamate per i dettagli, le recensioni o il prezzo. |
text | Testo del contenuto senza HTML, restituito per intero e mai troncato (su alcune piattaforme i risultati degli elenchi contengono solo un estratto; lo indicano le note sui campi della piattaforma). |
posted_date | Date posted (questions, question_answers), YYYY-MM-DD: JD gives the day only, with no time. |
author_name | Reviewer nickname, returned as JD shows it (JD may already partially mask it); in questions, the nickname of the asker or answerer as JD masks it; in question_answers, how JD labels the answerer, usually as the supplier. |
ip_location | IP-based location JD shows (a province), set by the platform, not by the user (questions and the answers in them); absent when JD does not give it. |
answer_count | Total number of answers to the question as JD gives it, seller answers included (questions); it is usually larger than the number of entries in answers. |
seller_answer_count | Number of seller answers under the question (questions); when it is above 0, pass this row's id as question_id to question_answers for them. |
answers | Answers JD shows together with the question, at most 2, as an array whose entries have id, text, posted_date, author_name, ip_location and like_count (questions); not necessarily all answers, see has_more_answers. |
has_more_answers | Whether there are answers beyond those in answers (questions); when true, the others cannot be returned here. |
position | Position, starting at 1: in description_images, where this image sits in the description section, from the top of the page; in questions, where the question sits in the Q&A list, counting on across pages. |
question_count | Total number of questions on the product as JD gives it (questions), the same on every row; whether more pages exist is told by next_page_token alone. |
platform | Identificativo della piattaforma di origine, uguale a platform nella richiesta (ad esempio xiaohongshu, tiktok). |
Errori e addebiti
#- 401
- Chiave mancante o non valida.
- 402
- Saldo insufficiente. Effettua prima una ricarica.
- 422
- Nome o valore del parametro non valido. Correggilo seguendo i suggerimenti dell'errore. Nessun addebito.
- 429
- Raggiunto il limite di richieste al minuto. Attendi il tempo indicato da Retry-After, poi riprova.
- 503
- Impossibile completare. L'importo trattenuto torna sul tuo saldo. Se l'esito è incerto, verificalo prima di riprovare.
- Risposta 200 vuota
- Nessun dato. Nessun addebito.
Riferimenti ufficiali
#Usati solo per verificare oggetti e terminologia. Non implicano alcuna autorizzazione o approvazione di EveryInfra da parte della piattaforma.
- Accordo di servizio per gli utenti di JD.com (in vigore dal 20 gennaio 2026): recensioni pubbliche e limiti di accesso ↗
L'Accordo di servizio per gli utenti di JD.com stabilisce che le informazioni delle recensioni sono pubbliche e che JD.com può usarle secondo l'accordo. Stabilisce inoltre che, in generale, le informazioni personali non vengono comunicate a terzi senza autorizzazione, e vieta di sottrarre informazioni personali o di violare diritti legittimi. Questo riguarda solo i limiti di accesso e di autorizzazione; non concede a EveryInfra né ai chiamanti il diritto di ridistribuire, usare per l'addestramento o riutilizzare a fini commerciali testi, immagini o informazioni degli utenti.
Verificato il 2026-12-03