# Shopee 商品资料 API (shopee.product_specs)

- Canonical page: [https://everyinfra.com/shopee-api/product_specs](https://everyinfra.com/shopee-api/product_specs?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "shopee", "action": "product_specs", "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=shopee&action=product_specs

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | Shopee 商品完整链接，路径需含 i.店铺ID.商品ID 或 /product/店铺ID/商品ID。 |
| country | not declared | no | not declared | 商品所属商城的地区代码，支持 tw/vn/sg/my/ph/th/id/br/mx；通常省略，由链接的域名识别。同一个商品只在它所属的商城能查到。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| item_id | 商品 ID。 |
| shop_id | 店铺 ID。 |
| shop_name | 店铺名。 |
| url | 该记录在原平台上的可访问链接。 |
| country | 国家或地区。可能是全称也可能是 ISO 代码，取决于平台，未归一。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| description | 简介或描述，通常比 text 短。 |
| brand | 品牌。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| image_urls | 图片链接数组，按平台展示顺序；没有图片时不出现这个字段。 |
| category_ids | 商品所在类目的编号，从一级到末级。 |
| categories | 商品所在类目的名称，从一级到末级。 |
| display_category_ids | 商城前台展示类目的编号，从一级到末级。 |
| display_categories | 商城前台展示类目的名称，从一级到末级。 |
| discount_pct | 折扣百分比。 |
| in_stock | 是否有货：有一个规格有货就是 true，规格全部缺货是 false。 |
| variations | 规格维度列表，每项有 name（如 Color）和 options（可选值）。 |
| variation_count | 规格组合数。 |
| skus | 各规格组合：sku_id、name、options（各维度取值）、in_stock（这个规格是否有货）、on_promotion（这个规格现在是否促销价）。商品价格用 product_detail。 |
| attributes | 商品属性列表，每项有 name 和 value。 |
| shop_location | 店铺所在地。跨境店和本地店的物流时效差很多。 |
| is_official_shop | 是否为官方店。 |
| free_shipping | 是否免运费。 |
| is_pre_order | 是否为预售。 |
| is_new | 是否全新。 |
| min_purchase | 最少购买件数。 |
| estimated_days | 备货天数。 |
| status | 商品状态，在售为 normal。 |
| created_at | 创建时间，格式同 posted_at。 |
| video | 商品视频：url、cover_url、duration_seconds，有视频才出现。 |
| shop_vouchers | 店铺现有优惠券：code、discount_amount（减多少，按商城币种）、discount_pct（打折百分比）、min_spend（最低消费）、ends_at（截止时间），有券才出现。 |
| shop | 卖家店铺信息。profile：shop_id、name、username、location、rating（店铺评分）、item_count（商品数）、follower_count、response_rate（回复率，百分数）、is_official_shop、is_shopee_verified，有值才出现。product_specs：字段同 shop_info 的返回（不含 platform）。 |
| collected_at | 这条数据的抓取时刻（ISO 8601，UTC）。 |
| 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": "shopee",
  "action": "product_specs",
  "params": {
    "url": "https://shopee.sg/product/285901479/15134762530"
  }
}'
```

```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": "shopee",
        "action": "product_specs",
        "params": {
            "url": "https://shopee.sg/product/285901479/15134762530",
        },
    },
    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": "shopee",
  "action": "product_specs",
  "results": {
    "item_id": …,
    "shop_id": …,
    "shop_name": …,
    "url": …,
    "country": …,
    "name": …,
    "description": …,
    "brand": …,
    "currency": …,
    "image_url": …,
    "image_urls": …,
    "category_ids": …,
    "categories": …,
    "display_category_ids": …,
    "display_categories": …,
    "discount_pct": …,
    "in_stock": …,
    "variations": …,
    "variation_count": …,
    "skus": …,
    "attributes": …,
    "shop_location": …,
    "is_official_shop": …,
    "free_shipping": …,
    "is_pre_order": …,
    "is_new": …,
    "min_purchase": …,
    "estimated_days": …,
    "status": …,
    "created_at": …,
    "video": …,
    "shop_vouchers": …,
    "shop": …,
    "collected_at": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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