{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Sold Listings Scraper - Sold Prices & Dates",
    "description": "Real eBay sold prices for any search: sold price and currency, sale date, end time in UTC, shipping and total price, condition, auction bids, best offer accepted, seller. 8 eBay sites. Variants one by one, duplicates removed. Free run summary. Pay per sold listing.",
    "version": "0.1",
    "x-build-id": "frPq3vLeWem9el5fX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hexagone-data~ebay-sold-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hexagone-data-ebay-sold-listings-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/hexagone-data~ebay-sold-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hexagone-data-ebay-sold-listings-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/hexagone-data~ebay-sold-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hexagone-data-ebay-sold-listings-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searchQueries": {
            "title": "Search words",
            "type": "array",
            "description": "One search per line, as you would type it in eBay's search box (for example: iphone 13, leica m3, pokemon charizard psa 10). Searched among SOLD listings on the eBay site chosen below, with the filters below. Up to 100 searches per run; the same line twice is read once. Give search words, search URLs, or both.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "eBay search URLs",
            "type": "array",
            "description": "eBay search results links (https://www.ebay.com/sch/i.html?_nkw=...), from www.ebay.com, .co.uk, .de, .fr, .it, .es, .ca or .com.au: the eBay site of the link is used, and the filters of the link are kept (words _nkw, sort _sop, auction LH_Auction, buy it now LH_BIN, best offer LH_BO, condition LH_ItemCondition, price _udlo/_udhi, location LH_PrefLoc, seller _ssn, category _sacat). Sold listings are always asked for. A link with any other filter (item specifics such as Model=..., brand or size filters) is refused and named in the run summary, never read wider than you see it. Category page links (/b/... or /sch/<category>/i.html) are refused: use _sacat=<category id>. Up to 100 URLs per run.",
            "items": {
              "type": "string"
            }
          },
          "marketplace": {
            "title": "eBay site (for search words)",
            "enum": [
              "www.ebay.com",
              "www.ebay.co.uk",
              "www.ebay.de",
              "www.ebay.fr",
              "www.ebay.it",
              "www.ebay.es",
              "www.ebay.ca",
              "www.ebay.com.au"
            ],
            "type": "string",
            "description": "The eBay site the search words are searched on; prices come in its currency. Search URLs use their own site.",
            "default": "www.ebay.com"
          },
          "maxItemsPerSearch": {
            "title": "Max sold listings per search",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Sold listings to deliver per search, in eBay's order. 0 = everything eBay serves for the search, up to 10,000 (50 pages of 200). The Actor stops reading as soon as the number is reached.",
            "default": 100
          },
          "soldWithinDays": {
            "title": "Sold within the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only listings sold on or after (today in UTC minus N days), by the sale date eBay shows on the card. 0 = no date limit. With the sort 'Ended recently', reading stops at the first page that ended entirely before that date. Listings left out are counted (filteredOutByDate), not charged.",
            "default": 0
          },
          "sort": {
            "title": "Sort (search words)",
            "enum": [
              "endedRecently",
              "priceLowest",
              "priceHighest",
              "newlyListed"
            ],
            "type": "string",
            "description": "eBay's sort order for the search words. Search URLs keep their own (_sop).",
            "default": "endedRecently"
          },
          "condition": {
            "title": "Condition (search words)",
            "enum": [
              "any",
              "new",
              "openBox",
              "refurbished",
              "used",
              "forParts"
            ],
            "type": "string",
            "description": "eBay's condition filter for the search words.",
            "default": "any"
          },
          "buyingFormat": {
            "title": "Buying format (search words)",
            "enum": [
              "any",
              "auction",
              "buyItNow",
              "bestOffer"
            ],
            "type": "string",
            "description": "eBay's buying format filter for the search words.",
            "default": "any"
          },
          "minPrice": {
            "title": "Min price (search words)",
            "minimum": 0,
            "type": "number",
            "description": "Lowest item price, in the currency of the eBay site. Empty = no minimum."
          },
          "maxPrice": {
            "title": "Max price (search words)",
            "minimum": 0,
            "type": "number",
            "description": "Highest item price, in the currency of the eBay site. Empty = no maximum."
          },
          "categoryId": {
            "title": "Category id (search words)",
            "type": "string",
            "description": "eBay category number to search in (the _sacat= number of an eBay search link, for example 9355 for cell phones). Empty = all categories."
          },
          "itemLocation": {
            "title": "Item location (search words)",
            "enum": [
              "default",
              "domestic",
              "worldwide"
            ],
            "type": "string",
            "description": "eBay's item location filter for the search words.",
            "default": "default"
          },
          "postalCode": {
            "title": "Delivery postal code (shipping estimate)",
            "type": "string",
            "description": "The shipping cost (shippingPrice, so totalPrice) is eBay's estimate for a buyer at this postal code. It applies to the eBay site chosen above only: the search words and the URLs of that site without _stpos. A URL of another eBay site uses its own _stpos, otherwise the default of its country (never this code). Give a real postal code of that site's country: a code eBay does not know makes it estimate from the proxy's location. Spaces and dashes are removed (SW1A 1AA = SW1A1AA); letters and digits only, 3 to 10. Empty = the default of the eBay site: 10001 (US, New York), SW1A1AA (UK, London), 10115 (DE, Berlin), 75001 (FR, Paris), 00118 (IT, Rome), 28001 (ES, Madrid), M5V3L9 (CA, Toronto), 2000 (AU, Sydney)."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "The default (Apify datacenter proxy) works. The shipping estimate follows the postal code above, not the proxy; eBay's capacity for this data source follows the access token, not the proxy: another proxy changes neither.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}