# eBay 商品详情 API (ebay.product_detail)

- Canonical page: https://everyinfra.com/ebay-api/product_detail
- Endpoint: POST /api/v1/social with {"platform": "ebay", "action": "product_detail", "params": {...}}
- Price: $0.000958 per call ($0.96 per 1,000 requests); failed 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=ebay&action=product_detail

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | 要读的 eBay 商品：商品页链接（如 https://www.ebay.com/itm/133576802017，ebay.co.uk、ebay.de 等各国站点都行，标题段和追踪参数会去掉），或 9–15 位纯数字商品 ID（按 ebay.com 查）；店铺页、搜索页链接在扣费前被拒。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| item_id | 商品 ID。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| subtitle | 卖家写的副标题（product_detail），常是促销语；没写时没有。 |
| url | 该记录在原平台上的可访问链接。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| condition | 成色（全新/翻新/二手）。**eBay 上价格差异的第一决定因素**。 |
| availability | 库存状态（product_detail）：InStock / OutOfStock 等，eBay 原文。 |
| listing_type | 上架方式（拍卖/一口价）。 |
| bid_count | 拍卖当前出价次数（product_detail，拍卖商品才有）。 |
| best_offer_enabled | 是否可以向卖家议价（product_detail，Best Offer）。 |
| ends_at | 拍卖或限时商品的结束时间（product_detail，ISO，UTC）；一口价长期在售的没有。 |
| quantity_available | 还剩多少件可买（product_detail）；卖家不显示时没有。 |
| quantity_sold | 已售件数（product_detail）。 |
| watchers | 关注（加入观察列表）的人数（product_detail）；eBay 不显示时没有。 |
| brand | platform-native meaning |
| model | platform-native meaning |
| mpn | 制造商零件号（product_detail）。 |
| gtin | 商品条码 GTIN / UPC / EAN（product_detail）。 |
| product_id | 产品目录 ID。 |
| categories | 类目路径，从大到小（product_detail）。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| images | 全部商品大图链接（product_detail）。 |
| item_location | 发货地（product_detail），eBay 显示的原文。 |
| shipping_price | 运费金额。 |
| free_shipping | 是否包邮（product_detail）。 |
| returns_accepted | 是否接受退货（product_detail）。 |
| seller | 卖家名。 |
| seller_url | 卖家店铺页链接（product_detail）。 |
| seller_feedback_score | 卖家信用分（累计好评净值）。 |
| seller_positive_percent | 卖家好评率，百分数。 |
| updated_at | 这条报价记录的更新时间（product_detail，ISO，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": "ebay",
  "action": "product_detail",
  "params": {
    "url": "https://www.ebay.com/itm/133576802017"
  }
}'
```

```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": "ebay",
        "action": "product_detail",
        "params": {
            "url": "https://www.ebay.com/itm/133576802017",
        },
    },
    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": "ebay",
  "action": "product_detail",
  "results": {
    "item_id": …,
    "title": …,
    "subtitle": …,
    "url": …,
    "price": …,
    "currency": …,
    "condition": …,
    "availability": …,
    "listing_type": …,
    "bid_count": …,
    "best_offer_enabled": …,
    "ends_at": …,
    "quantity_available": …,
    "quantity_sold": …,
    "watchers": …,
    "brand": …,
    "model": …,
    "mpn": …,
    "gtin": …,
    "product_id": …,
    "categories": …,
    "image_url": …,
    "images": …,
    "item_location": …,
    "shipping_price": …,
    "free_shipping": …,
    "returns_accepted": …,
    "seller": …,
    "seller_url": …,
    "seller_feedback_score": …,
    "seller_positive_percent": …,
    "updated_at": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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