POST

API health

24h health
Normal
  • Healthy / normal
  • Available
Normal

Last 24 hours

Last 30 days

Get every seller answer under one question on a JD.com product, in one call. Pass the product's item_id and the question's id from questions as question_id. Each answer has its text, date, the answerer label and likes.

Send POST https://api.everyinfra.com/api/v1/social with platform set to jd and action set to question_answers. 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 Answers to a question endpoint (jd/question_answers).

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 question_answers, and put the parameters inside params.
- Required parameters:
  - item_id: The JD.com product the question is on, the same item_id you passed to questions: the digit string or https://item.jd.com/<digits>.html without a query or fragment.
  - question_id: The ID of a JD.com question, the id of a questions row (digits only). question_answers returns every seller answer JD shows under it in one call, with no paging; pass the item_id of the product the question is on.
- Optional parameters:
  - limit: Positive integer (≥1): the maximum number of results to return; omit it to get every result from this call. Setting it only trims the response to at most this many and never fetches more.
- Returns a list of records. Main fields of each record: id, question_id (ID of the question (question_answers),…), item_id (JD numeric product ID), text, posted_date (Date posted (questions, question_answer…), author_name (Reviewer nickname, returned as JD shows…), author_type (JD's numeric code for the kind of answe…), like_count (Number of likes (the answers in questio…).
- Example request body:
{
  "platform": "jd",
  "action": "question_answers",
  "params": {
    "item_id": "100270865468",
    "question_id": "166721745"
  }
}
- 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

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYesjdPlatform identifier, fixed value.
actionbodystringYesquestion_answersCapability identifier, fixed value.
item_idbody.paramsstringYes-The JD.com product the question is on, the same item_id you passed to questions: the digit string or https://item.jd.com/<digits>.html without a query or fragment.
question_idbody.paramsstringYes-The ID of a JD.com question, the id of a questions row (digits only). question_answers returns every seller answer JD shows under it in one call, with no paging; pass the item_id of the product the question is on. A question whose seller_answer_count is 0 returns an empty result and is not charged; any other form returns 422 and is not charged.
limitbody.paramsinteger (1–)No-Positive integer (≥1): the maximum number of results to return; omit it to get every result from this call. Setting it only trims the response to at most this many and never fetches more; billing is the same with or without limit, whatever the value.

Code samples

#
bash
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": "question_answers",
  "params": {
    "item_id": "100270865468",
    "question_id": "166721745"
  }
}'

OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.

Response example

#
No sample response is available for these parameters yet. This preview shows the response shape and fields from the API definition, with … as placeholders; it is not the result of a live call.
json
{  "id": "req_…",  "platform": "jd",  "action": "question_answers",  "results": [    {      "id": …,      "question_id": …,      "item_id": …,      "text": …,      "posted_date": …,      "author_name": …,      "author_type": …,      "like_count": …,      "platform": …    }  ],  "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.

FieldMeaning
idThe record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms.
question_idID of the question (question_answers), the same as the requested question_id; it is the id of a questions row.
item_idJD numeric product ID. From search results you can pass it straight to detail, reviews, or price calls.
textBody 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_dateDate posted (questions, question_answers), YYYY-MM-DD: JD gives the day only, with no time.
author_nameReviewer 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.
author_typeJD's numeric code for the kind of answerer (question_answers); 5 has been the supplier (seller) in every answer seen.
like_countNumber of likes (the answers in questions, and question_answers).
platformSource 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.

Errors

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

Google Analytics needs consent. Privacy