# JD.com Product price API (jd.product_price)

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| item_id | not declared | yes | not declared | Identifies one JD.com product for `product_detail`, `reviews`, or `product_price`. Pass the digit string returned by `search` or the canonical legacy URL `https://item.jd.com/<digits>.html` without a query or fragment; arbitrary, opaque, or cross-host URLs are not accepted as equivalent item identifiers. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| item_id | JD numeric product ID. From search results you can pass it straight to detail, reviews, or price calls. |
| url | Link to the record on the platform. |
| price | Price as a number without a currency symbol; see currency. |
| currency | Currency code of the price (for example CNY, USD). If price is present but currency is null, do not assume a currency. |
| available | Whether the item could be bought when it was read (product_detail, product_price and shop rows); false when out of stock, null when the page did not say. |
| unavailable_reason | Public reason JD shows when an item is not sellable. |
| 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": "product_price",
  "params": {
    "item_id": "100012043978"
  }
}'
```

```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": "product_price",
        "params": {
            "item_id": "100012043978",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-11-07T14:47:42Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "jd",
  "action": "product_price",
  "results": {
    "item_id": "100012043978",
    "url": "https://item.jd.com/100012043978.html",
    "price": 1699,
    "currency": "CNY",
    "available": true,
    "platform": "jd"
  },
  "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
