eBay Sold listings API

POST

API health

24h health
Normal
24h average time
—
  • Healthy / normal
  • Available
  • Limited
  • Mostly down
Normal

Track completed eBay sales for a keyword over a lookback window in days, with 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.

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

Paste this into your AI assistant. It already holds this endpoint's parameters, response fields and an example request, so the assistant can ask what you need and then write the scraper.

Please help me write a data collection script with the EveryInfra eBay Sold listings endpoint (ebay/sold).

Endpoint contract:
- 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

NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYesebayPlatform identifier, fixed value.
actionbodystringYessoldCapability identifier, fixed value.
keywordbody.paramsNot declaredYes-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.
daysbody.paramsNot declaredNo-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_pricebody.paramsNot declaredNo-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.
sitebody.paramsNot declaredNo-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.
sortbody.paramsenumNo-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
limitbody.paramsinteger (1–200)No20The 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

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"
  }
}'

[OpenAPI definition (JSON)]Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.

Response example

Real response

Captured September 26, 2026 at 08:56 (UTC) by calling this API with the parameters in the code sample above. results and count are that call's real response with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2. id, billing and quota differ on every call, so only their shape is shown.

json
{
  "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.

FieldMeaning
idThe record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms.
urlLink to the record on the platform.
nameName of the object itself, for account, product and business capabilities.
sold_priceKeeps the platform's own meaning
shipping_priceKeeps the platform's own meaning
total_priceKeeps the platform's own meaning
currencyCurrency code of the price (for example CNY, USD). If price is present but currency is null, do not assume a currency.
sold_atKeeps the platform's own meaning
conditionKeeps the platform's own meaning
listing_typeKeeps the platform's own meaning
best_offer_acceptedKeeps the platform's own meaning
categoryCategory name in the platform's own taxonomy, not normalized across platforms.
seller_usernameKeeps the platform's own meaning
seller_feedback_scoreKeeps the platform's own meaning
seller_positive_percentKeeps the platform's own meaning
image_urlImage link. Capabilities with several images may return an image_urls array.
platformSource platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).

Errors and billing

401
Missing or invalid key. Authentication runs before parameter checks, so unauthenticated requests never see the parameter schema.
422
Wrong parameter name or value. The error lists the parameters and allowed values this capability accepts and the closest match; it happens before any charge.
402
Insufficient balance. Top up first.
429
The account's per-minute request limit was reached (all of its API keys count together; a key's own lower limit applies first). Wait for Retry-After and try again; a rate package in the console raises the limit.
503
Could not complete right now. Any charge for the call goes back to your balance automatically, and the billing receipt in the response states the actual outcome, including when it is not yet known. Do not resend blindly.
200 empty
The request completed without data and is not charged (billing.reason = empty_result_refunded).