{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Product Scraper - Prices, Ratings & Listings",
    "description": "Scrape eBay product listings in one run. Get titles, prices, conditions, ratings, images, and shipping details for marketplace pricing and product research.",
    "version": "0.10",
    "x-build-id": "NX7cxTWL0oCVdOn2I"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~ecommerce-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-ecommerce-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/lentic_clockss~ecommerce-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-ecommerce-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/lentic_clockss~ecommerce-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-ecommerce-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",
        "required": [
          "keyword"
        ],
        "properties": {
          "keyword": {
            "title": "Search keyword",
            "type": "string",
            "description": "What to search for (e.g. 'iphone 15', 'gaming laptop', 'air fryer').",
            "default": "iphone 15"
          },
          "market": {
            "title": "eBay market (country site)",
            "enum": [
              "US",
              "GB",
              "DE",
              "FR",
              "IT",
              "ES",
              "AU",
              "CA",
              "NL",
              "AT",
              "CH",
              "IE",
              "PL",
              "BE",
              "HK",
              "SG",
              "MY"
            ],
            "type": "string",
            "description": "Which eBay country site to scrape. Controls host, currency, and proxy country when proxy is enabled.",
            "default": "US"
          },
          "country": {
            "title": "Country (legacy alias for market)",
            "type": "string",
            "description": "Optional alias for market. Must match market when both are set. Example: US, GB, DE."
          },
          "category": {
            "title": "L1 category",
            "enum": [
              "all",
              "motors",
              "antiques",
              "art",
              "baby",
              "books",
              "business-industrial",
              "cameras-photo",
              "cell-phones",
              "fashion",
              "coins",
              "collectibles",
              "computers",
              "electronics",
              "crafts",
              "dolls-bears",
              "movies-tv",
              "entertainment-memorabilia",
              "health-beauty",
              "home-garden",
              "jewelry-watches",
              "music",
              "musical-instruments",
              "pet-supplies",
              "pottery-glass",
              "real-estate",
              "specialty-services",
              "sporting-goods",
              "sports-memorabilia",
              "stamps",
              "tickets",
              "toys-hobbies",
              "travel",
              "video-games",
              "everything-else"
            ],
            "type": "string",
            "description": "eBay top-level category. Use categoryId to override with any deeper category ID.",
            "default": "all"
          },
          "categoryId": {
            "title": "eBay Category ID (override)",
            "type": "string",
            "description": "Optional raw eBay category ID (_sacat). When set, overrides the L1 category enum. Example: '9355'."
          },
          "useApifyProxy": {
            "title": "Use Apify residential proxy",
            "type": "boolean",
            "description": "Optional. If true, use Apify RESIDENTIAL proxy matched to the market. Default is false. Empty or blocked runs get one bounded Residential recovery retry.",
            "default": false
          },
          "maxResults": {
            "title": "Max results (max 500; free users capped at 500/run)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of eBay listings to collect in this run (1–500). Free Apify plan users are limited to 500 results per run and 10 total runs of this Actor — limits set by the Actor developer.",
            "default": 1
          },
          "condition": {
            "title": "Condition filter",
            "enum": [
              "",
              "new",
              "refurbished",
              "used"
            ],
            "type": "string",
            "description": "Filter eBay by item condition.",
            "default": ""
          },
          "buyItNow": {
            "title": "Buy It Now only",
            "type": "boolean",
            "description": "Only show Buy It Now listings (exclude auctions).",
            "default": false
          },
          "minPrice": {
            "title": "Min price",
            "type": "number",
            "description": "Minimum price in the market currency."
          },
          "maxPrice": {
            "title": "Max price",
            "type": "number",
            "description": "Maximum price in the market currency."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "best_match",
              "price_asc",
              "price_desc",
              "newly_listed",
              "ending_soonest"
            ],
            "type": "string",
            "description": "How to sort eBay results.",
            "default": "best_match"
          },
          "enrichDetails": {
            "title": "Enrich detail pages (seller leads)",
            "type": "boolean",
            "description": "Default on. Fetches each item's /itm/{id} detail page to add seller identity (username, store name, feedback count, positive rate), JSON-LD price, and city-level item location. eBay exposes no phone/email (contact is login-gated intermediated messaging); absence is reported in leadAbsences.",
            "default": true
          },
          "workerBaseUrl": {
            "title": "Worker base URL (optional)",
            "type": "string",
            "description": "Override the Cloud Run worker origin for this run. Defaults to Actor env WORKER_BASE_URL. Use when testing a staging worker; production migrations should update WORKER_BASE_URL in Actor settings (no code change)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}