# 京东 JD.com 店铺概况 API (jd.shop_info)

- Canonical page: [https://everyinfra.com/jd-api/shop_info](https://everyinfra.com/jd-api/shop_info?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "jd", "action": "shop_info", "params": {...}}
- Price: $0.000556 per call ($0.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=shop_info

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| shop_id | not declared | yes | not declared | 京东店铺数字 ID（商品详情、店铺商品里的 shop_id），或不带 query/fragment 的 https://mall.jd.com/index-<数字>.html；不是商品 ID。店铺不存在时返回空结果，不扣费。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| shop_id | 京东店铺数字 ID。 |
| shop_name | 公开店铺名称。 |
| shop_url | 京东店铺公开页面（https://mall.jd.com/index-<店铺 ID>.html）。 |
| seller_id | 卖家（商家）数字 ID（product_detail、shop_info）。 |
| is_jd_self | 是否为京东自营商品；shop_info 里是这家店是不是京东自营店。 |
| logo_url | 店铺头像图链接（shop_info）。 |
| banner_url | 店招图链接（shop_info）。 |
| follower_count | 店铺关注数（shop_info），京东给的数。 |
| shop_rating | 店铺星级（shop_info），京东给的分；京东自营的店京东不给，不返回。 |
| is_closed | 店铺是否已关店（shop_info）。 |
| 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": "shop_info",
  "params": {
    "shop_id": "16374386"
  }
}'
```

```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": "shop_info",
        "params": {
            "shop_id": "16374386",
        },
    },
    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": "shop_info",
  "results": {
    "shop_id": …,
    "shop_name": …,
    "shop_url": …,
    "seller_id": …,
    "is_jd_self": …,
    "logo_url": …,
    "banner_url": …,
    "follower_count": …,
    "shop_rating": …,
    "is_closed": …,
    "platform": …
  },
  "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
