{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Sold Listings Scraper - Sold Prices & Dates",
    "description": "Get eBay sold and completed listings by keyword: sold price, sale date, shipping, condition, bids, listing type and photo. Use your own eBay session or your own key from a sold-data API. 8 eBay sites.",
    "version": "0.2",
    "x-build-id": "AUf6aPVVMHzLEHCOI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cliqtomedia~ebay-sold-listings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cliqtomedia-ebay-sold-listings",
        "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/cliqtomedia~ebay-sold-listings/runs": {
      "post": {
        "operationId": "runs-sync-cliqtomedia-ebay-sold-listings",
        "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/cliqtomedia~ebay-sold-listings/run-sync": {
      "post": {
        "operationId": "run-sync-cliqtomedia-ebay-sold-listings",
        "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": {
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords as you would type them on eBay. One search per line, up to 20.",
            "items": {
              "type": "string"
            }
          },
          "site": {
            "title": "eBay site",
            "enum": [
              "com",
              "co.uk",
              "de",
              "fr",
              "it",
              "es",
              "ca",
              "com.au"
            ],
            "type": "string",
            "description": "Which eBay marketplace to search. Empty = ebay.com. trawl covers only ebay.com and ebay.co.uk."
          },
          "maxItems": {
            "title": "Max sold listings per query",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Stop each query after this many saved listings. Default 100. Each saved listing is one paid result."
          },
          "soldWithinDays": {
            "title": "Sold within the last N days",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Keep only sales from the last N days (eBay shows about 90 days of sales). Empty = everything eBay shows."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used",
              "open_box",
              "refurbished",
              "for_parts"
            ],
            "type": "string",
            "description": "Filter by item condition. Open box, Refurbished and For parts or not working work only with your eBay session (dataSource ebayCookies); API services filter only New or Used.",
            "default": "any"
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "number",
            "description": "Lowest sale price, in the site currency."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "number",
            "description": "Highest sale price, in the site currency."
          },
          "buyingFormat": {
            "title": "Buying format",
            "enum": [
              "all",
              "auction",
              "buy_it_now"
            ],
            "type": "string",
            "description": "Only auctions or only fixed-price sales.",
            "default": "all"
          },
          "acceptsOffersOnly": {
            "title": "Accepts offers only",
            "type": "boolean",
            "description": "Only listings where the seller accepts Best Offer. Works only with your eBay session (dataSource ebayCookies).",
            "default": false
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Only listings with free shipping. Works only with your eBay session (dataSource ebayCookies).",
            "default": false
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "ended_recently",
              "price_high",
              "price_low",
              "best_match",
              "newly_listed"
            ],
            "type": "string",
            "description": "Order of the sold listings. Works only with your eBay session (dataSource ebayCookies). Any order other than Ended recently reads all pages up to the limit, because older sales are not at the end.",
            "default": "ended_recently"
          },
          "strictTitleMatch": {
            "title": "Every query word must be in the title",
            "type": "boolean",
            "description": "eBay mixes in other models (an iPhone 12 or 5s for \"iphone 13\") and accessories. Turn on to keep only titles that contain every word of the query; skipped rows are not charged. Off (default): everything eBay shows.",
            "default": false
          },
          "excludeWords": {
            "title": "Skip titles with these words",
            "type": "array",
            "description": "Words or phrases that must not be in the title, e.g. case, box only, for parts. Works with every data source; skipped rows are not charged. Up to 50.",
            "items": {
              "type": "string"
            }
          },
          "categoryId": {
            "title": "eBay category number",
            "type": "string",
            "description": "Only listings from this eBay category, e.g. 9355 for Cell Phones & Smartphones. Open the category on eBay and copy the number from the link (_sacat= or after /b/…/). Works only with \"My eBay session\"."
          },
          "dataSource": {
            "title": "Data source",
            "enum": [
              "ebayCookies",
              "compsniper",
              "trawl",
              "openwebninja",
              "esl",
              "soldcomps"
            ],
            "type": "string",
            "description": "Where the sold data comes from.",
            "default": "ebayCookies"
          },
          "ebayCookies": {
            "title": "eBay cookies",
            "type": "string",
            "description": "For \"My eBay session\": export cookies with the Cookie-Editor extension while signed in to the chosen eBay site (Export → JSON) and paste them here. Stored encrypted; the Actor deletes its copy of the input at start and never logs them."
          },
          "userAgent": {
            "title": "Browser User-Agent",
            "type": "string",
            "description": "For \"My eBay session\": the User-Agent of the same browser. In Chrome open chrome://version and copy the \"User agent\" line."
          },
          "apiKey": {
            "title": "API key",
            "type": "string",
            "description": "For an API data source: your own key from that service. You pay the service directly; the Actor checks the remaining quota first and never asks for more than is left."
          },
          "deliveryConnector": {
            "title": "Send results to (optional)",
            "type": "string",
            "description": "Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors."
          },
          "deliveryTarget": {
            "title": "Notion page or channel (optional)",
            "type": "string",
            "description": "Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Notion needs a page here; without it the summary is not sent and the run summary says why."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}