{
  "openapi": "3.0.1",
  "info": {
    "title": "All-in-One Amazon Scraper",
    "description": "Stop paying $40/month for Amazon data. 5 pay-per-result tiers from $0.75/1K, 15 marketplaces, 6 scraping modes, 100+ fields. Search, details, reviews, sellers — all in one actor. 4x cheaper reviews. MCP-ready for AI agents (Claude, GPT & Cursor). No Amazon API needed. Integrates w n8n, Make, Zapier.",
    "version": "1.0",
    "x-build-id": "jQwrN2nNa0LTPAVdr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/get-leads~all-in-one-amazon-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-get-leads-all-in-one-amazon-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/get-leads~all-in-one-amazon-scraper/runs": {
      "post": {
        "operationId": "runs-sync-get-leads-all-in-one-amazon-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/get-leads~all-in-one-amazon-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-get-leads-all-in-one-amazon-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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Scraping Mode",
            "enum": [
              "search",
              "asins",
              "bestsellers",
              "categoryUrl",
              "offers",
              "seller"
            ],
            "type": "string",
            "description": "How to find products. 'search' = keyword search (16-48 products/page). 'asins' = lookup specific products by ASIN code. 'bestsellers' = Amazon Best Sellers by category. 'categoryUrl' = any Amazon browse/category URL. 'offers' = all sellers/prices for an ASIN. 'seller' = seller storefront products.",
            "default": "search"
          },
          "keyword": {
            "title": "Search Keyword",
            "type": "string",
            "description": "Amazon search term (required for search mode). Examples: 'wireless headphones', 'protein powder', 'usb c charger 65w'. Each page returns 16-48 products. Also accepts aliases: searchTerms, searchQuery, query, search, q."
          },
          "asins": {
            "title": "Product ASINs",
            "type": "array",
            "description": "List of Amazon ASINs to look up (for asins and offers modes). Find the ASIN in any Amazon product URL after '/dp/' — e.g. amazon.com/dp/B0DGHMNQ5Z → ASIN is B0DGHMNQ5Z.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Best Sellers Category",
            "type": "string",
            "description": "Amazon Best Sellers category path (for bestsellers mode). Examples: 'electronics', 'books', 'computers-accessories/headphones'."
          },
          "categoryUrl": {
            "title": "Category / Browse URL",
            "type": "string",
            "description": "Full Amazon category or browse URL (for categoryUrl mode). Paste any Amazon category page URL. Example: 'https://www.amazon.com/s?rh=n%3A172282'."
          },
          "sellerIds": {
            "title": "Seller IDs",
            "type": "array",
            "description": "List of Amazon Seller IDs (for seller mode). Find in seller page URL after 'seller=' parameter. Example: 'A2R2RITDJNW1Q6'.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Amazon URLs (auto-detect mode)",
            "type": "array",
            "description": "Easiest way to start — paste any Amazon URL(s) and the scraper auto-detects the correct mode and marketplace. Supports product pages (/dp/), search results (/s?k=), category pages, seller pages, bestseller pages, and offer listings. Paste an amazon.de link and it scrapes in German mode automatically.",
            "items": {
              "type": "string"
            }
          },
          "pages": {
            "title": "Pages to Scrape",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of search result pages to scrape (1-20). Each page has 16-48 products. Start with 1-3 pages for most use cases. Only applies to search and categoryUrl modes.",
            "default": 1
          },
          "maxItems": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Limit the number of results returned. Results beyond this limit are not scraped or billed. Useful for testing or when you only need a specific number of products. Leave empty for all results. Also accepts aliases: maxResults, limit, max."
          },
          "detailLevel": {
            "title": "Data Depth (selects pricing tier)",
            "enum": [
              "reviews",
              "details",
              "seller",
              "search",
              "complete"
            ],
            "type": "string",
            "description": "Choose your data depth and pricing tier (cheapest first). Reviews ($0.75/1K): ~6 inline reviews per product with Vine badges, images, videos. Details ($1.50/1K): 60+ fields per product including specs, seller, variants, AI review insights. Seller ($2.50/1K): 24-field seller profiles with business info, email, VAT, ratings. Search ($3/1K): 26 fields from search pages. Complete ($5/1K): full details + inline reviews — best value.",
            "default": "search"
          },
          "includeReviews": {
            "title": "Include Customer Reviews (deprecated)",
            "type": "boolean",
            "description": "DEPRECATED: Use detailLevel='reviews' or 'complete' instead. Kept for backward compatibility — setting this to true with detailLevel='standard' or 'detailed' will auto-map to 'complete'.",
            "default": false
          },
          "reviewPages": {
            "title": "Dedicated Review Pages (deprecated)",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "DEPRECATED: Since Nov 2024, Amazon requires login for /product-reviews/ pages, so this setting has no effect. All review tiers now extract ~6 inline reviews directly from the product page (no login required). Kept for backward compatibility.",
            "default": 0
          },
          "reviewSort": {
            "title": "Review Sort Order",
            "enum": [
              "helpful",
              "recent"
            ],
            "type": "string",
            "description": "How to sort inline reviews: 'helpful' = most helpful first (default), 'recent' = newest first. Applies to Reviews and Complete tiers.",
            "default": "helpful"
          },
          "marketplace": {
            "title": "Amazon Marketplace",
            "enum": [
              "com",
              "ca",
              "co.uk",
              "in",
              "de",
              "fr",
              "it",
              "es",
              "co.jp",
              "com.au",
              "com.br",
              "nl",
              "se",
              "com.mx",
              "ae",
              "us",
              "uk",
              "jp",
              "usa",
              "gb",
              "br",
              "au",
              "mx",
              "uae",
              "united states",
              "america",
              "canada",
              "united kingdom",
              "england",
              "britain",
              "india",
              "germany",
              "france",
              "italy",
              "spain",
              "japan",
              "australia",
              "brazil",
              "netherlands",
              "holland",
              "sweden",
              "mexico"
            ],
            "type": "string",
            "description": "Which Amazon domain to scrape. All 15 marketplaces fully supported with locale-specific parsing (rating, delivery, free delivery, bought count in 10+ languages) and automatic WAF bypass. Non-US marketplaces include a one-time $0.01 WAF setup fee per run. Default memory: 512 MB. Accepts many aliases: short codes (us, uk, jp), ISO codes (usa, gb, br, au, mx, uae), and full country names (germany, france, japan, brazil, etc.).",
            "default": "com"
          },
          "proxyConfig": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional — free residential proxies are included automatically. Only configure this if you want to use your own Apify residential proxies for potentially faster speeds. When left empty, the scraper uses built-in residential proxy routing with automatic country targeting for all 15 marketplaces at no extra cost."
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Parallel requests. Default 3 balances speed with anti-detection. Increase to 5-10 for faster runs with residential proxies.",
            "default": 3
          },
          "maxRetries": {
            "title": "Max Retries",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Retry attempts per failed request. Each retry rotates to a fresh proxy session. Auto-increased for non-US marketplaces.",
            "default": 3
          },
          "minDelay": {
            "title": "Min Delay (ms)",
            "minimum": 500,
            "maximum": 10000,
            "type": "integer",
            "description": "Minimum delay between requests in milliseconds. Lower = faster but higher block risk.",
            "default": 1500
          },
          "maxDelay": {
            "title": "Max Delay (ms)",
            "minimum": 1000,
            "maximum": 30000,
            "type": "integer",
            "description": "Maximum delay between requests in milliseconds. Actual delay is randomized between min and max.",
            "default": 4000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}