# JD.com Questions API (jd.questions)

- Canonical page: [https://everyinfra.com/en/jd-api/questions](https://everyinfra.com/en/jd-api/questions?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "jd", "action": "questions", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of up to 10 per call; the number of rows varies from page to page and a short page is not the end (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page; no next_page_token means the end)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=jd&action=questions

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| item_id | not declared | yes | not declared | 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 | not declared | no | not declared | 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`. |

## Response fields (items in `results`)

| 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). |

## Example

```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": "questions",
  "params": {
    "item_id": "100270865468"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "jd",
        "action": "questions",
        "params": {
            "item_id": "100270865468",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "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": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=jd
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
