# 京东 JD.com 问题列表 API (jd.questions)

- Canonical page: [https://everyinfra.com/jd-api/questions](https://everyinfra.com/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 | 京东商品数字 ID，或不带 query/fragment 的 https://item.jd.com/<数字>.html。返回这个商品的问答（问大家），按京东默认顺序；商品不存在时返回空结果，不扣费。 |
| page_token | not declared | no | not declared | 翻页令牌。第 1 页不用传；响应里有 next_page_token 时，把它原样作为 page_token 传回就拿下一页，其余参数保持不变。一页一般 10 个问题，每页算一次调用；limit 不起作用。相邻两页可能有重复的问题，合并时按 id 去重。令牌 24 小时内有效，翻到底时响应里没有 next_page_token。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| item_id | 京东商品数字 ID；search 可把它直接交给详情、评价或价格能力。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| posted_date | 发布日期（questions、question_answers，YYYY-MM-DD）：京东只给到天，不给时分。 |
| author_name | 评价人昵称，按京东页面原样返回（京东可能已部分打码）；questions 里是提问人和回答人的昵称（京东打码后的原样），question_answers 里是京东给回答方的称呼，多是「供应商回答」。 |
| ip_location | 京东展示的 IP 归属地（省份），平台显示、不是用户填写（questions 的提问和回答）；京东没给时不返回。 |
| answer_count | 这个问题的回答总数，京东给的数，含商家回答（questions）；比 answers 里的条数多是常态。 |
| seller_answer_count | 这个问题下商家回答的条数（questions）；大于 0 时用这一行的 id 当 question_id 调 question_answers 取全文。 |
| answers | 京东随问题一起给的回答，最多 2 条，数组，每项含 id、text、posted_date、author_name、ip_location、like_count（questions）；不一定是全部回答，见 has_more_answers。 |
| has_more_answers | 除了 answers 里这几条还有没有别的回答（questions）；true 时别的回答这里拿不到。 |
| position | 序号，从 1 开始：description_images 里是这张图在「商品介绍」里的位置（按页面从上到下）；questions 里是这个问题在问答列表里的位置，翻页接着往下数。 |
| question_count | 这个商品的问题总数，京东给的数（questions），每行相同；能翻到的页数以有没有 next_page_token 为准。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 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
