{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Scraper & API | EveryInfra",
    "description": "Unofficial eBay data via one Actor: search, store, reviews, sold, product_detail. Pay per request, no start fee. First 3 requests free across EveryInfra Actors.",
    "version": "0.1",
    "x-build-id": "R6rw5jhgSF7ishz48"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/blushing_parachute~everyinfra-ebay-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-blushing_parachute-everyinfra-ebay-api",
        "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/blushing_parachute~everyinfra-ebay-api/runs": {
      "post": {
        "operationId": "runs-sync-blushing_parachute-everyinfra-ebay-api",
        "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/blushing_parachute~everyinfra-ebay-api/run-sync": {
      "post": {
        "operationId": "run-sync-blushing_parachute-everyinfra-ebay-api",
        "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",
        "required": [
          "action"
        ],
        "properties": {
          "action": {
            "title": "Action",
            "enum": [
              "search",
              "store",
              "reviews",
              "sold",
              "product_detail"
            ],
            "type": "string",
            "description": "What to fetch. Each action uses only the fields listed for it below; other fields are ignored when empty.",
            "default": "search"
          },
          "keyword": {
            "title": "keyword",
            "type": "string",
            "description": "Used by `search` (required), `sold` (required). Search term for active listings in `search` actions, or ended/sold listings in `sold` actions. Asking prices in active listings should not be assumed to match final transaction amounts."
          },
          "condition": {
            "title": "condition",
            "type": "string",
            "description": "Used by `search`. Filters search results by item condition. Preserve capitalization and spaces: New, Used, Refurbished, or For parts or not working. This is an item-condition filter, not a positive or negative review filter."
          },
          "country": {
            "title": "country",
            "type": "string",
            "description": "Used by `search`, `store`, `reviews`. A compatibility input for domain that also takes an eBay site domain such as ebay.com, not a country code such as US or DE. When both are present, domain takes precedence."
          },
          "domain": {
            "title": "domain",
            "type": "string",
            "description": "Used by `search`, `store`, `reviews`. Selects the eBay site domain, such as ebay.com, ebay.de, or ebay.co.uk, without a scheme or path. It defaults to ebay.com and is used to build pages for search, store, and reviews."
          },
          "max_price": {
            "title": "max_price",
            "type": "number",
            "description": "Used by `search`. Sets a numeric upper bound for item prices in search. Use it with min_price to define a range, and do not assume that shipping or taxes are included."
          },
          "min_price": {
            "title": "min_price",
            "type": "number",
            "description": "Used by `search`, `sold`. Sets a numeric lower bound for item prices. Filters active listing prices in `search` actions and ended/sold listing prices in `sold` actions. Currency is determined by the target marketplace site and listing data, not API billing. In `sold`, filtering uses whole numbers and decimals round down."
          },
          "sold_only": {
            "title": "sold_only",
            "type": "boolean",
            "description": "Used by `search`. Boolean toggle in `search` actions to return only completed sales when set to `true`. Must be passed as a JSON boolean, not a string (`\"false\"`)."
          },
          "seller": {
            "title": "seller",
            "type": "string",
            "description": "Used by `store` (required), `reviews` (required). The exact eBay seller account username, not a store display title or company name. Used in `store` queries to fetch seller item listings, and in `reviews` queries paired with `item_id` to retrieve buyer feedback."
          },
          "store": {
            "title": "store",
            "type": "string",
            "description": "Used by `store`. Compatibility alias for `seller` representing the seller account username, not an arbitrary shop title. The `store` action still requires the primary `seller` parameter."
          },
          "url": {
            "title": "url",
            "type": "string",
            "description": "Used by `store`, `reviews`, `product_detail` (required). Overrides automatic URL construction with a direct eBay store/seller listing page in `store` actions, or a `/fdbk/` feedback page in `reviews` actions. Providing a URL does not waive the requirement for `seller` or `item_id` parameters."
          },
          "username": {
            "title": "username",
            "type": "string",
            "description": "Used by `store`, `reviews`. Compatibility alias for the `seller` account username in `store` and `reviews` actions. The `seller` parameter takes precedence and remains required; this field does not represent buyer or reviewer handles."
          },
          "item_id": {
            "title": "item_id",
            "type": "string",
            "description": "Used by `reviews` (required). The numeric eBay item identifier associated with a seller listing (typically extracted from `/itm/` URLs), used paired with `seller` in `reviews` queries. Represents a specific listing, not a generalized catalog product ID or review entry ID."
          },
          "product_id": {
            "title": "product_id",
            "type": "string",
            "description": "Used by `reviews`. Compatibility alias for `item_id` accepting the numeric eBay item identifier. `reviews` actions still require `item_id`."
          },
          "q": {
            "title": "q",
            "type": "string",
            "description": "Used by `reviews`. Compatibility alias for `item_id` accepting the numeric eBay item identifier in `reviews` actions. Does not serve as a free-text search query; use `keyword` for product searches."
          },
          "seller_name": {
            "title": "seller_name",
            "type": "string",
            "description": "Used by `reviews`. The eBay seller account username."
          },
          "days": {
            "title": "days",
            "type": "integer",
            "description": "Used by `sold`. Integer representing the historical lookback window in days for `sold` queries (defaults to `30`). Indicates time range rather than listing duration or returned item counts; complete records are not guaranteed for arbitrary day spans."
          },
          "site": {
            "title": "site",
            "type": "string",
            "description": "Used by `sold`. Specifies the eBay domain for `sold` queries (for example, `ebay.com` or `ebay.co.uk`), defaulting to `ebay.com`. Distinct from the `domain` parameter used in `search`, `store`, or `reviews` actions; price currencies correspond to returned listing records."
          },
          "sort": {
            "title": "sort",
            "enum": [
              "distance",
              "newest"
            ],
            "type": "string",
            "description": "Used by `sold`. Sort order for `sold` actions; allowed values are `newest` (most recently ended first) and `distance` (proximity). Does not sort by original listing creation date. Defaults to recently ended order if omitted."
          },
          "limit": {
            "title": "limit",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many results to request for list actions. Defaults and maximums per action: `search` 20 (max 50); `store` 20 (max 50); `reviews` 20 (max 100); `sold` 20 (max 200). Billing: `search` one event per started block of 20 results; `store` one event per started block of 20 results; `reviews` one event per started block of 20 results; `sold` one event per started block of 20 results."
          },
          "params": {
            "title": "params (advanced)",
            "type": "object",
            "description": "Optional JSON object with the same fields as above, for API and integration use. Flat fields and params must not disagree."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}