SoldComps.io Sold comps API

Completed eBay sales for a keyword

GitHub OpenAPI

Operations 1

GET /sold Get sold comps for a keyword #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/soldcomps-io:soldcomps-io-sold-comps-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

soldcomps-io-sold-comps-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SoldComps.io Sold comps API
  version: 1.0.0
  summary: 'eBay sold comps as JSON: median and quartiles precomputed, up to 200 completed sales per search. 20 credits per search + 1 per sale returned.'
  description: 'SoldComps.io is a sold comps API. Sold comps (sold comparables) are recent completed sales of the same item, used to price it from what buyers actually paid rather than asking prices.


    One GET request to /sold returns up to 200 completed eBay sales (eBay US, UK or Germany, last 90 days, newest first) plus stats computed only from clean sales. Lots, for-parts listings, boxes, replicas, cheap accessories and outliers are flagged and left out of the stats but still returned.


    Billing is in credits. 20 credits per search plus 1 credit per sale returned: a 50-sale search costs 70, a 200-sale search costs 220, a search with no sales costs 20. Failed calls and usage checks cost nothing. Each response reports credits.charged and credits.remaining (also in X-Credits-Charged and X-Credits-Remaining headers), and GET /usage lists your balance and the cost of each call type, so the price of a call is always known before you make it. Plans: Free $0/mo for 2,000 credits; Starter $5/mo for 50,000 credits; Growth $29/mo for 300,000 credits; Scale $79/mo for 850,000 credits. Pay as you go: $6 per 50,000 credits, never expire.


    For AI agents: call /sold for any ''what is this item worth'' question with an eBay-style q (model number, size, grade, -lot), keep limit low (10-20) since stats always use every match, report stats.median with stats.p25-p75 and count, and treat count < 10 as low confidence. Errors carry retryable and docs_url; errors are never billed. Agent guide: https://www.soldcomps.io/agents.md. MCP server: https://www.soldcomps.io/mcp.


    Get a free key at https://www.soldcomps.io/signup. Human-readable docs: https://www.soldcomps.io/docs. SoldComps.io is independent and not affiliated with eBay.'
  contact:
    name: SoldComps.io
    email: hello@soldcomps.io
    url: https://www.soldcomps.io
servers:
- url: https://www.soldcomps.io/v1
  description: Production
security:
- bearerAuth: []
tags:
- name: Sold comps
  description: Completed eBay sales for a keyword
paths:
  /sold:
    get:
      operationId: getSoldComps
      tags:
      - Sold comps
      summary: Get sold comps for a keyword
      description: Returns completed eBay sales matching a keyword, newest first, plus summary stats computed from every matching sale found (up to 200). Costs 20 credits plus 1 per sale returned (at most 20 + limit; 70 at the default limit of 50); a failed call costs nothing. If you have fewer credits than 20 + limit, fewer sales are listed rather than failing. A sale is kept only if every number in the query appears in the title as a whole number, quoted phrases appear exactly, and at least 80% of the other words appear; minus words exclude a sale.
      parameters:
      - name: q
        in: query
        required: true
        description: What you'd type in eBay's search box. Put exact phrases in quotes ("psa 10") and exclude words with a minus (-lot).
        schema:
          type: string
          minLength: 1
        example: rolex submariner 126610ln
      - name: site
        in: query
        description: 'eBay site: EBAY_US (ebay.com), EBAY_GB (ebay.co.uk) or EBAY_DE (ebay.de). Prices come back in that site''s currency.'
        schema:
          type: string
          enum:
          - EBAY_US
          - EBAY_GB
          - EBAY_DE
          default: EBAY_US
      - name: condition
        in: query
        description: Only sales in this condition. Omit for any condition.
        schema:
          type: string
          enum:
          - new
          - open_box
          - refurbished
          - used
          - for_parts
      - name: min_price
        in: query
        description: Only sales at or above this price, in the site's currency.
        schema:
          type: number
          minimum: 0
      - name: max_price
        in: query
        description: Only sales at or below this price, in the site's currency.
        schema:
          type: number
          minimum: 0
      - name: buying_format
        in: query
        description: auction, or fixed_price (Buy It Now and Best Offer). Omit for any format.
        schema:
          type: string
          enum:
          - auction
          - fixed_price
      - name: days
        in: query
        description: Look-back window in days.
        schema:
          type: integer
          minimum: 1
          maximum: 90
          default: 90
      - name: limit
        in: query
        description: 'How many sales to list in items. Sets the maximum price: 20 credits + 1 per sale returned. Stats always use every matching sale found, so a 50-sale call has the same median as a 200-sale call.'
        schema:
          type: integer
          minimum: 1
          maximum: 200
          default: 50
      responses:
        '200':
          description: Sold comps for the query.
          headers:
            X-Request-Id:
              description: Unique id for this request; quote it when contacting support.
              schema:
                type: string
            X-Credits-Charged:
              description: 'Credits this call cost: 20 per search + 1 per sale returned; 0 for failed calls.'
              schema:
                type: integer
            X-Credits-Remaining:
              description: 'Credits left: monthly allowance plus prepaid credits.'
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left in the current one-minute window.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SoldResponse'
        '400':
          description: 'invalid_param: Bad or missing parameter; error.param names it. Not billed.'
          headers:
            X-Request-Id:
              description: Unique id for this request; quote it when contacting support.
              schema:
                type: string
            X-Credits-Charged:
              description: 'Credits this call cost: 20 per search + 1 per sale returned; 0 for failed calls.'
              schema:
                type: integer
            X-Credits-Remaining:
              description: 'Credits left: monthly allowance plus prepaid credits.'
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left in the current one-minute window.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: invalid_param
                  param: q
        '401':
          description: 'unauthorized: Missing or revoked key. Not billed.'
          headers:
            X-Request-Id:
              description: Unique id for this request; quote it when contacting support.
              schema:
                type: string
            X-Credits-Charged:
              description: 'Credits this call cost: 20 per search + 1 per sale returned; 0 for failed calls.'
              schema:
                type: integer
            X-Credits-Remaining:
              description: 'Credits left: monthly allowance plus prepaid credits.'
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left in the current one-minute window.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: unauthorized
        '402':
          description: 'quota_exceeded: Not enough credits for this call; error.credits_needed and error.credits_remaining say why. Not billed.'
          headers:
            X-Request-Id:
              description: Unique id for this request; quote it when contacting support.
              schema:
                type: string
            X-Credits-Charged:
              description: 'Credits this call cost: 20 per search + 1 per sale returned; 0 for failed calls.'
              schema:
                type: integer
            X-Credits-Remaining:
              description: 'Credits left: monthly allowance plus prepaid credits.'
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left in the current one-minute window.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: quota_exceeded
        '429':
          description: 'rate_limited: Over your per-minute limit; honor Retry-After. Not billed.'
          headers:
            X-Request-Id:
              description: Unique id for this request; quote it when contacting support.
              schema:
                type: string
            X-Credits-Charged:
              description: 'Credits this call cost: 20 per search + 1 per sale returned; 0 for failed calls.'
              schema:
                type: integer
            X-Credits-Remaining:
              description: 'Credits left: monthly allowance plus prepaid credits.'
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left in the current one-minute window.
              schema:
                type: integer
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: rate_limited
        '502':
          description: 'upstream_unavailable: eBay didn''t answer cleanly; safe to retry with backoff. Not billed.'
          headers:
            X-Request-Id:
              description: Unique id for this request; quote it when contacting support.
              schema:
                type: string
            X-Credits-Charged:
              description: 'Credits this call cost: 20 per search + 1 per sale returned; 0 for failed calls.'
              schema:
                type: integer
            X-Credits-Remaining:
              description: 'Credits left: monthly allowance plus prepaid credits.'
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left in the current one-minute window.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: upstream_unavailable
        '503':
          description: 'daily_capacity_reached: Free-tier daily capacity for new searches used up; resets at midnight UTC (paid accounts unaffected). Not billed.'
          headers:
            X-Request-Id:
              description: Unique id for this request; quote it when contacting support.
              schema:
                type: string
            X-Credits-Charged:
              description: 'Credits this call cost: 20 per search + 1 per sale returned; 0 for failed calls.'
              schema:
                type: integer
            X-Credits-Remaining:
              description: 'Credits left: monthly allowance plus prepaid credits.'
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left in the current one-minute window.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: daily_capacity_reached
components:
  schemas:
    SoldResponse:
      type: object
      required:
      - query
      - site
      - window_days
      - count
      - stats
      - items
      properties:
        query:
          type: string
          description: The q you sent
        site:
          type: string
          enum:
          - EBAY_US
          - EBAY_GB
          - EBAY_DE
        window_days:
          type: integer
          description: Look-back window used, in days
        count:
          type: integer
          description: Matching sales found (max 200); stats are computed from these
        returned:
          type: integer
          description: Sales listed in items (at most limit)
        attribution:
          type: object
          description: Show text with a followed link to url wherever you display this data (Terms, section 3).
          properties:
            text:
              type: string
              example: Sold data by SoldComps.io
            url:
              type: string
              format: uri
            note:
              type: string
        credits:
          type: object
          description: What this call cost (20 + sales returned). limit_requested/limit_applied appear when your balance only covered fewer sales.
          properties:
            charged:
              type: integer
              example: 70
            remaining:
              type: integer
              example: 630
            limit_requested:
              type: integer
            limit_applied:
              type: integer
            rule:
              type: string
        stats:
          $ref: '#/components/schemas/Stats'
        items:
          type: array
          maxItems: 200
          items:
            $ref: '#/components/schemas/SoldItem'
    SoldItem:
      type: object
      required:
      - item_id
      - title
      - sold_price
      - shipping
      - sold_at
      - condition
      - buying_format
      - best_offer_accepted
      - best_offer_price_known
      - url
      - image
      - flags
      properties:
        item_id:
          type: string
          description: eBay item number
        title:
          type: string
          description: Listing title at the time of sale
        sold_price:
          type: object
          description: Sale price shown by eBay
          required:
          - value
          - currency
          properties:
            value:
              type: number
            currency:
              type: string
              description: 'ISO 4217 code: USD, GBP or EUR, depending on site'
        shipping:
          type: object
          description: Shipping the buyer paid
          required:
          - value
          - currency
          properties:
            value:
              type:
              - number
              - 'null'
              description: 0 = free shipping, null = not shown
            currency:
              type: string
        sold_at:
          type: string
          format: date
          description: Day the item sold, YYYY-MM-DD
        condition:
          type: string
          description: eBay's condition label, e.g. "Pre-Owned", "Brand New", "New (Other)", "Parts Only"
        buying_format:
          type: string
          enum:
          - auction
          - fixed_price
        best_offer_accepted:
          type: boolean
          description: true when the sale was an accepted Best Offer
        best_offer_price_known:
          type: boolean
          description: false when the accepted offer amount isn't shown (the list price is returned); these sales are left out of stats
        url:
          type: string
          format: uri
          description: Link to the eBay listing
        image:
          type:
          - string
          - 'null'
          format: uri
          description: Listing photo URL
        flags:
          type: array
          description: 'Why a sale is left out of stats. Empty = counted. lot: several items sold together; for_parts: broken, untested or for repair (not applied when condition=for_parts, so those searches get real stats); box_only: packaging without the item; replica: described as fake, replica or homage; accessory: a part or add-on far below the typical price; outlier: more than 1.5x the interquartile range from the middle.'
          items:
            type: string
            enum:
            - lot
            - for_parts
            - box_only
            - replica
            - accessory
            - outlier
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          properties:
            code:
              type: string
              enum:
              - invalid_param
              - unauthorized
              - daily_capacity_reached
              - quota_exceeded
              - rate_limited
              - upstream_unavailable
            message:
              type: string
              description: Human- and agent-readable explanation, including what to do next
            param:
              type: string
              description: 'For invalid_param: the parameter that was bad or missing'
            retryable:
              type: boolean
              description: 'true for 429 and 502: retrying the same call with backoff can succeed (honor Retry-After on 429). false for 402 and 503 daily_capacity_reached'
            billed:
              type: boolean
              description: 'Always false: errors never cost credits'
            docs_url:
              type: string
              format: uri
            credits_needed:
              type: integer
              description: 'For quota_exceeded: credits this call needs'
            credits_remaining:
              type: integer
              description: 'For quota_exceeded: credits left'
            upgrade_url:
              type: string
              format: uri
              description: 'For quota_exceeded: one-click upgrade or credit purchase'
    Stats:
      type: object
      description: Computed only from sales with an empty flags array and a known price. Values are null when no sale qualifies.
      required:
      - median
      - p25
      - p75
      - min
      - max
      - excluded
      - currency
      properties:
        median:
          type:
          - number
          - 'null'
          description: Median sold price
        p25:
          type:
          - number
          - 'null'
          description: 25th percentile sold price
        p75:
          type:
          - number
          - 'null'
          description: 75th percentile sold price
        min:
          type:
          - number
          - 'null'
        max:
          type:
          - number
          - 'null'
        excluded:
          type: integer
          description: How many sales in items were left out of stats
        currency:
          type: string
          description: Currency of all stats values
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API key from https://www.soldcomps.io/signup, e.g. sh_live_xxxxxxxx. Send as Authorization: Bearer <key>.'
externalDocs:
  description: API documentation
  url: https://www.soldcomps.io/docs