JD.com Questions API
API health
- 24h health
- Normal
- Healthy / normal
- Available
Last 24 hours
Last 30 days
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.
Send POST https://api.everyinfra.com/api/v1/social with platform set to jd and action set to questions. Price $0.56 per 1,000 requests ($0.000556 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.
AI prompt
#Please help me write a data collection script with the EveryInfra JD.com Questions endpoint (jd/questions).
How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to jd and action to questions, and put the parameters inside params.
- Required parameters:
- 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.
- Optional parameters:
- 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.
- Returns a list of records. Main fields of each record: id, item_id (JD numeric product ID), 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…).
- Example request body:
{
"platform": "jd",
"action": "questions",
"params": {
"item_id": "100270865468"
}
}
- Price: $0.56 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | jd | Platform identifier, fixed value. |
action | body | string | Yes | questions | Capability identifier, fixed value. |
item_id | body.params | string | Yes | - | 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. |
Code samples
#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"
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "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": { … }}
Response fields
#Business data is in results. The table lists the fields a record can contain. Values the platform does not show are never made up.
| Field | Meaning |
|---|---|
id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
item_id | JD numeric product ID. From search results you can pass it straight to detail, reviews, or price calls. |
text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
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 | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.
Official references
#Used only to check objects and terms. They do not imply authorization or endorsement of EveryInfra by the platform.
- JD.com User Service Agreement (Effective January 20, 2026): Public Reviews and Access Boundaries ↗
The JD.com User Service Agreement says review information is public and JD.com may use it under the agreement. It also says personal information generally is not disclosed to third parties without permission and prohibits stealing personal information or infringing lawful rights. This supports access and permission boundaries only; it does not grant EveryInfra or callers rights to redistribute, train on, or commercially reuse text, images, or user information.
Checked 2026-12-03