# eBay Sold listings API (ebay.sold)

- Canonical page: https://everyinfra.com/en/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 term for active listings in `search` actions, or ended/sold listings in `sold` actions. Asking prices in active listings should not be assumed to match final transaction amounts. |
| days | integer | no | not declared | Integer representing the historical lookback window in days for `sold` queries (defaults to `30`). Indicates time range rather than listing duration or returned item counts; complete records are not guaranteed for arbitrary day spans. |
| min_price | not declared | no | not declared | Sets a numeric lower bound for item prices. Filters active listing prices in `search` actions and ended/sold listing prices in `sold` actions. Currency is determined by the target marketplace site and listing data, not API billing. In `sold`, filtering uses whole numbers and decimals round down. |
| site | not declared | no | not declared | Specifies the eBay domain for `sold` queries (for example, `ebay.com` or `ebay.co.uk`), defaulting to `ebay.com`. Distinct from the `domain` parameter used in `search`, `store`, or `reviews` actions; price currencies correspond to returned listing records. |
| sort | enum: distance / newest | no | not declared | Sort order for `sold` actions; allowed values are `newest` (most recently ended first) and `distance` (proximity). Does not sort by original listing creation date. Defaults to recently ended order if omitted. |
| limit | integer (1–200) | no | 20 | The most rows to return in this call, an integer from 1 to 200. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| url | Link to the record on the platform. |
| name | Name of the object itself, for account, product and business capabilities. |
| sold_price | platform-native meaning |
| shipping_price | platform-native meaning |
| total_price | platform-native meaning |
| currency | Currency code of the price (for example CNY, USD). If price is present but currency is null, do not assume a currency. |
| sold_at | platform-native meaning |
| condition | platform-native meaning |
| listing_type | platform-native meaning |
| best_offer_accepted | platform-native meaning |
| category | Category name in the platform's own taxonomy, not normalized across platforms. |
| seller_username | platform-native meaning |
| seller_feedback_score | platform-native meaning |
| seller_positive_percent | platform-native meaning |
| image_url | Image link. Capabilities with several images may return an image_urls array. |
| 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": "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
