# JD.com Answers to a question API (jd.question_answers)

- Canonical page: [https://everyinfra.com/en/jd-api/question_answers](https://everyinfra.com/en/jd-api/question_answers?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "jd", "action": "question_answers", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list
- 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=question_answers

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| item_id | not declared | yes | not declared | 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 | not declared | yes | not declared | 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. |
| limit | integer (1–) | no | not declared | 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. |

## 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. |
| question_id | ID of the question (question_answers), the same as the requested question_id; it is the id of a questions row. |
| 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. |
| author_type | JD's numeric code for the kind of answerer (question_answers); 5 has been the supplier (seller) in every answer seen. |
| like_count | Number of likes (the answers in questions, and question_answers). |
| 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": "question_answers",
  "params": {
    "item_id": "100270865468",
    "question_id": "166721745"
  }
}'
```

```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": "question_answers",
        "params": {
            "item_id": "100270865468",
            "question_id": "166721745",
        },
    },
    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": "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": { … }
}
```

## 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
