eBay Sold listings API
API health
- 24h health
- Normal
- Healthy / normal
- Available
- Limited
- Mostly down
Last 24 hours
Last 30 days
Track completed eBay sales for a keyword over a lookback window in days. Get sold price, shipping, total price, sale date, listing type and seller feedback. These describe each closed listing. They do not estimate net revenue or future demand.
Send POST https://api.everyinfra.com/api/v1/social with platform set to ebay and action set to sold. Price $1.39 per 1,000 requests ($0.001389 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.
AI prompt
#Please help me write a data collection script with the EveryInfra eBay Sold listings endpoint (ebay/sold).
How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to ebay and action to sold, and put the parameters inside params.
- Required parameters:
- keyword: 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.
- Optional parameters:
- days: 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.
- min_price: Sets a numeric lower bound for item prices. Filters active listing prices in search actions and ended/sold listing prices in sold actions.
- site: 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.
- sort: 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. (allowed: distance / newest)
- limit: 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. (default: 20)
- Returns a list of records. Main fields of each record: id, url, name, sold_price, shipping_price, total_price, currency, sold_at, condition, listing_type, best_offer_accepted, category; 16 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=ebay.
- Example request body:
{
"platform": "ebay",
"action": "sold",
"params": {
"keyword": "rtx 4080"
}
}
- Price: $1.39 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | ebay | Platform identifier, fixed value. |
action | body | string | Yes | sold | Capability identifier, fixed value. |
keyword | body.params | string | Yes | - | 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 | body.params | integer | No | - | 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 | body.params | number | No | - | 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 | body.params | string | No | - | 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 | body.params | string (enum) | No | - | 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.Allowed valuesdistancenewest |
limit | body.params | 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. |
Code samples
#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"
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "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": { … }}
Response fields
#Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.
| 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 | Keeps the platform's own meaning |
shipping_price | Keeps the platform's own meaning |
total_price | Keeps the platform's own 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 | Keeps the platform's own meaning |
condition | Keeps the platform's own meaning |
listing_type | Keeps the platform's own meaning |
best_offer_accepted | Keeps the platform's own meaning |
category | Category name in the platform's own taxonomy, not normalized across platforms. |
seller_username | Keeps the platform's own meaning |
seller_feedback_score | Keeps the platform's own meaning |
seller_positive_percent | Keeps the platform's own 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). |
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.