{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Sold Listings Scraper: Completed, Best Offer & Seller",
    "description": "Scrape verified eBay Sold & Completed listings by keyword, seller (_ssn), category or price across 8 sites (.com, .co.uk, .de, .ca, .com.au, .fr, .it, .es). Detects Best Offer deals, strips parts/box noise & computes free Fair Market Value (FMV) comps ($1.50/1K).",
    "version": "1.0",
    "x-build-id": "3wknOKGZbTzuyJcS9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zenonnnnnn~ebay-sold-listings-comps/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zenonnnnnn-ebay-sold-listings-comps",
        "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/zenonnnnnn~ebay-sold-listings-comps/runs": {
      "post": {
        "operationId": "runs-sync-zenonnnnnn-ebay-sold-listings-comps",
        "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/zenonnnnnn~ebay-sold-listings-comps/run-sync": {
      "post": {
        "operationId": "run-sync-zenonnnnnn-ebay-sold-listings-comps",
        "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 to search in eBay Sold & Completed listings (e.g., 'macbook m3 16gb', 'psa 10 charizard'). Can be left empty when 'seller' or 'categoryId' is specified.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "seller": {
            "title": "eBay Seller Username Filter (_ssn)",
            "type": "string",
            "description": "Optional eBay seller username to filter Sold & Completed listings (via _ssn=<seller>&_saslop=1). Leave 'queries' empty to audit all recent sold items from a single competitor seller!",
            "default": ""
          },
          "categoryId": {
            "title": "eBay Category ID (_sacat)",
            "type": "string",
            "description": "Optional numeric eBay Category ID filter (_sacat, e.g. '9355' for Cell Phones & Smartphones, '183454' for Collectible Card Games).",
            "default": ""
          },
          "searchUrls": {
            "title": "Direct eBay Search URLs",
            "type": "array",
            "description": "Optional full eBay search URLs (any supported regional domain). Sold & Completed flags (LH_Sold=1&LH_Complete=1) are enforced automatically.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "marketplace": {
            "title": "eBay Marketplace",
            "enum": [
              "ebay.com",
              "ebay.co.uk",
              "ebay.de",
              "ebay.ca",
              "ebay.com.au",
              "ebay.fr",
              "ebay.it",
              "ebay.es"
            ],
            "type": "string",
            "description": "Regional eBay marketplace used for keyword queries.",
            "default": "ebay.com"
          },
          "maxItemsPerQuery": {
            "title": "Max Sold Items per Query",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of clean sold listings to return per query or search URL.",
            "default": 120
          },
          "maxPages": {
            "title": "Max Pages per Query",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Optional hard cap on the number of search result pages fetched per query or URL."
          },
          "condition": {
            "title": "Item Condition Filter",
            "enum": [
              "any",
              "new",
              "open_box",
              "refurbished",
              "used",
              "for_parts"
            ],
            "type": "string",
            "description": "Filter eBay listings by standardized item condition.",
            "default": "any"
          },
          "buyingFormat": {
            "title": "Buying Format Filter",
            "enum": [
              "all",
              "auction",
              "buy_it_now",
              "accepts_offers"
            ],
            "type": "string",
            "description": "Filter Sold & Completed items by buying format: all, auction (LH_Auction=1), buy_it_now (LH_BIN=1), or accepts_offers (LH_BO=1).",
            "default": "all"
          },
          "listingType": {
            "title": "Listing Format Alias (Legacy)",
            "enum": [
              "all",
              "auction",
              "buy_it_now",
              "accepts_offers"
            ],
            "type": "string",
            "description": "Backward-compatible alias for buyingFormat (All, Auction only, Buy It Now only, or Best Offer enabled).",
            "default": "all"
          },
          "minPrice": {
            "title": "Minimum Price",
            "minimum": 0,
            "type": "number",
            "description": "Optional minimum listing price in the target marketplace currency (_udlo)."
          },
          "maxPrice": {
            "title": "Maximum Price",
            "minimum": 0,
            "type": "number",
            "description": "Optional maximum listing price in the target marketplace currency (_udhi)."
          },
          "daysBack": {
            "title": "Incremental Lookback (Days)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Stop paginating as soon as sold listings are older than N days from today (UTC)."
          },
          "sinceDate": {
            "title": "Since Date (ISO YYYY-MM-DD)",
            "type": "string",
            "description": "Incremental date cutoff (e.g. '2026-11-15'). Pagination halts immediately once listings fall before this date."
          },
          "filterNoise": {
            "title": "Exclude Broken / Box-Only Noise",
            "type": "boolean",
            "description": "Automatically discard parts-only, broken, damaged, and empty-box listings so Fair Market Value stats stay uncorrupted.",
            "default": true
          },
          "excludeNoiseKeywords": {
            "title": "Noise Exclusion Keywords",
            "type": "array",
            "description": "Case-insensitive phrases excluded from titles when 'Exclude Broken / Box-Only Noise' is enabled.",
            "default": [
              "for parts",
              "parts only",
              "not working",
              "broken",
              "cracked screen",
              "box only",
              "empty box",
              "read description",
              "icloud locked",
              "mdm locked",
              "bios locked",
              "water damage",
              "defekt",
              "nur ovp",
              "pour pièces",
              "per ricambi",
              "solo caja"
            ],
            "items": {
              "type": "string"
            }
          },
          "includeCompsSummaryInDataset": {
            "title": "Include Comps Summary Row in Dataset ($0 Charge)",
            "type": "boolean",
            "description": "In addition to saving Fair Market Value statistics to Key-Value Store 'COMPS_SUMMARY', emit an unbilled summary record per query at the top of the dataset.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "eBay gates datacenter IPs behind /splashui/challenge. For reliable extraction on Apify Cloud, select Apify Residential Proxy (apifyProxyGroups: ['RESIDENTIAL'], available on Apify Paid / $1 Creator plans) or supply your own residential proxy URL. Blocked/challenged runs always charge $0.00.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}