# eBay 已售商品 API (ebay.sold)

- Canonical page: https://everyinfra.com/ebay-api/sold
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "ebay", "action": "sold", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 200 per call
- 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=sold

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | search 的在售商品搜索词；sold 的已结束/售出商品搜索词。两者的价格含义不同，不把挂牌价当作实际成交价。 |
| days | integer | no | not declared | sold 向前查看的历史天数，整数，默认 30；不是商品上架天数或返回条数。不能保证任意天数都有完整记录。 |
| min_price | not declared | no | not declared | 商品价格下限，数值；search 指搜索列表价格，sold 指已结束/售出列表价格，币种以站点及记录为准，不是 API 计费金额。sold 按整数筛选，带小数时向下取整。 |
| site | not declared | no | not declared | sold 使用的 eBay 站点域名，例如 ebay.com、ebay.co.uk，默认 ebay.com。它与 search/store/reviews 使用的 domain 是不同参数，价格币种仍以返回记录为准。 |
| sort | enum: distance / newest | no | not declared | sold 的排序：newest 按最近结束优先，distance 按距离近优先；不是商品最新上架时间。未提供时按最近结束排序。 |
| limit | integer (1–200) | no | 20 | 这次调用最多返回的条数，整数，1–200；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| sold_price | 成交价。 |
| shipping_price | 运费金额。 |
| total_price | 含运费总价。跨卖家比价用它，不要只比裸价。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| sold_at | 成交时间。 |
| condition | 成色（全新/翻新/二手）。**eBay 上价格差异的第一决定因素**。 |
| listing_type | 上架方式（拍卖/一口价）。 |
| best_offer_accepted | 是否接受议价（Best Offer）。 |
| category | 分类名称，取值为原平台的分类体系，未做跨平台归一。 |
| seller_username | 卖家用户名。 |
| seller_feedback_score | 卖家信用分（累计好评净值）。 |
| seller_positive_percent | 卖家好评率，百分数。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| 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": "sold",
  "params": {
    "keyword": "rtx 4080"
  }
}'
```

```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": "sold",
        "params": {
            "keyword": "rtx 4080",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "ebay",
  "action": "sold",
  "results": [
    {
      "id": "•••",
      "url": "https://www.ebay.com/itm/137780446385?nordt=true",
      "name": "PNY  Geforce RTX 4080 VERTO EPIC-X RGB 16GB XLR8 Gaming Graphic card",
      "currency": "USD",
      "sold_at": "2026-09-26T00:00:00+00:00",
      "condition": "Pre-Owned",
      "listing_type": "best_offer_accepted",
      "best_offer_accepted": true,
      "platform": "ebay"
    },
    {
      "id": "•••",
      "url": "https://www.ebay.com/itm/178426927732?nordt=true",
      "name": "ASUS ROG Strix GeForce RTX® 4080 OC Edition PCIe 4.0, 16GB GDDR6X",
      "currency": "USD",
      "sold_at": "2026-09-25T00:00:00+00:00",
      "condition": "Pre-Owned",
      "listing_type": "buy_it_now",
      "best_offer_accepted": false,
      "platform": "ebay"
    }
  ],
  "count": 20,
  "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
