{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Sold Listings Scraper — Completed Prices",
    "description": "Extract public eBay sold/completed listings, prices, dates, conditions, sellers, shipping, and item specifics for resale price research.",
    "version": "1.0",
    "x-build-id": "C4Nyh0vGYbTfAf3QB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/junipr~ebay-sold-listings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-junipr-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/junipr~ebay-sold-listings/runs": {
      "post": {
        "operationId": "runs-sync-junipr-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/junipr~ebay-sold-listings/run-sync": {
      "post": {
        "operationId": "run-sync-junipr-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": {
          "searchTerms": {
            "title": "Search Terms",
            "type": "array",
            "description": "Keywords to search in eBay sold listings. Each term is searched independently. Example: [\"pokemon charizard psa 9\", \"vintage rolex submariner\"].",
            "items": {
              "type": "string"
            },
            "default": [
              "vintage rolex submariner"
            ]
          },
          "listingUrls": {
            "title": "Direct Listing URLs",
            "type": "array",
            "description": "Direct eBay listing URLs to scrape individually. Leave empty to use Search Terms instead.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxListings": {
            "title": "Max Listings",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of sold listings to extract per search term.",
            "default": 1
          },
          "marketplace": {
            "title": "Marketplace",
            "enum": [
              "US",
              "UK",
              "DE",
              "FR",
              "AU",
              "CA",
              "IT",
              "ES"
            ],
            "type": "string",
            "description": "Which eBay marketplace to search. US uses ebay.com, UK uses ebay.co.uk, etc.",
            "default": "US"
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "date_desc",
              "date_asc",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Sort order for sold listing results.",
            "default": "date_desc"
          },
          "listingType": {
            "title": "Listing Type",
            "enum": [
              "all",
              "auction",
              "buy_it_now",
              "best_offer"
            ],
            "type": "string",
            "description": "Filter by listing format. 'all' returns auction, Buy It Now, and Best Offer listings.",
            "default": "all"
          },
          "condition": {
            "title": "Condition Filter",
            "type": "array",
            "description": "Filter by item condition. Leave empty to include all conditions.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "priceMin": {
            "title": "Minimum Price",
            "minimum": 0,
            "type": "number",
            "description": "Minimum sold price filter. Leave empty for no minimum."
          },
          "priceMax": {
            "title": "Maximum Price",
            "minimum": 0,
            "type": "number",
            "description": "Maximum sold price filter. Leave empty for no maximum."
          },
          "dateFrom": {
            "title": "Date From",
            "type": "string",
            "description": "Only return listings sold on or after this date. ISO 8601 format (YYYY-MM-DD). eBay only stores 90 days of sold data."
          },
          "dateTo": {
            "title": "Date To",
            "type": "string",
            "description": "Only return listings sold on or before this date. ISO 8601 format (YYYY-MM-DD)."
          },
          "category": {
            "title": "Category ID",
            "type": "string",
            "description": "eBay category ID to limit search scope. Find category IDs in eBay's category tree. Leave empty to search all categories.",
            "default": ""
          },
          "freeShippingOnly": {
            "title": "Free Shipping Only",
            "type": "boolean",
            "description": "Only return listings with free shipping.",
            "default": false
          },
          "includeItemSpecifics": {
            "title": "Include Item Specifics",
            "type": "boolean",
            "description": "Extract item specifics (Brand, Model, Color, Size, etc.) from listing pages.",
            "default": false
          },
          "includeSellerInfo": {
            "title": "Include Seller Info",
            "type": "boolean",
            "description": "Extract seller username, feedback score, and top-rated seller status.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Residential proxy is required — eBay blocks datacenter IP addresses. Apify paid plans include residential proxy. Free-plan users: provide your own residential proxy URL.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "maxChargeUsd": {
            "title": "Max Charge USD",
            "minimum": 0,
            "type": "number",
            "description": "Stop before paid output would exceed the configured max charge.",
            "default": 50
          },
          "debugMode": {
            "title": "Debug Mode",
            "type": "boolean",
            "description": "Write extra free diagnostics to the key-value store.",
            "default": false
          },
          "saveRawHtmlToKvs": {
            "title": "Save Raw HTML to KVS",
            "type": "boolean",
            "description": "Save raw snapshots as free debug artifacts when enabled.",
            "default": false
          },
          "requestTimeout": {
            "title": "Request Timeout (ms)",
            "minimum": 1000,
            "maximum": 120000,
            "type": "integer",
            "description": "Maximum time to wait for a request or page load.",
            "default": 30000
          },
          "maxRetries": {
            "title": "Max Retries",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Maximum retry attempts per source.",
            "default": 1
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Maximum concurrent requests. High-risk marketplace and SERP actors default to a low value.",
            "default": 1
          },
          "requestDelay": {
            "title": "Request Delay",
            "type": "string",
            "description": "Run setting used to control cost, runtime, and output size."
          },
          "sourceMode": {
            "title": "Source Mode",
            "enum": [
              "livePublic",
              "suppliedSnapshot",
              "provider"
            ],
            "type": "string",
            "description": "Use public live targets, supplied snapshots, or provider-backed source data when supported.",
            "default": "livePublic"
          },
          "suppliedSnapshotHtml": {
            "title": "Supplied Snapshot HTML",
            "type": "string",
            "description": "Optional HTML snapshot for deterministic public-data extraction tests or controlled source capture."
          },
          "suppliedSnapshotJson": {
            "title": "Supplied Snapshot JSON",
            "type": "string",
            "description": "Optional JSON snapshot/provider response for deterministic public-data extraction tests or controlled source capture."
          },
          "suppliedSnapshotText": {
            "title": "Supplied Snapshot Text",
            "type": "string",
            "description": "Optional plain text snapshot for text-analysis actors."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}