{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Product Scraper",
    "description": "Extract Amazon product data at scale; prices, ratings, reviews, specs, seller info, deals, coupons, and 50+ fields. Get 16-48 products p request. 3 data tiers: fast price scans, deep product detail, or full review intelligence. No monthly fee.No Amazon API needed. 100% success rate on US marketplace",
    "version": "1.0",
    "x-build-id": "bs4Orjy6ecJ8oa9mG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/get-leads~amazon-product-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-get-leads-amazon-product-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~amazon-product-scraper/runs": {
      "post": {
        "operationId": "runs-sync-get-leads-amazon-product-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~amazon-product-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-get-leads-amazon-product-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."
          },
          "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": "Paste any Amazon URL(s) and the scraper will auto-detect the correct mode. Supports product pages (/dp/), search results (/s?k=), category pages, seller pages, and bestseller pages. This is the easiest way to use the scraper.",
            "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
          },
          "detailLevel": {
            "title": "Data Depth (selects pricing)",
            "enum": [
              "search",
              "details",
              "seller",
              "reviews",
              "complete"
            ],
            "type": "string",
            "description": "Choose your data depth and pricing. 'search' = $3/1K: 22 fields from search/bestseller pages. 'details' = $1.50/1K: 50+ fields per ASIN (visits product pages). 'seller' = $2.50/1K: seller profile + product listings. 'reviews' = $0.75/1K reviews: customer reviews only. 'complete' = $5/1K: full product details + reviews.",
            "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",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Additional review pages to scrape per product (0-10). Page 0 means embedded reviews only (from product page, no extra requests). Each additional page adds ~10 more reviews per product.",
            "default": 0
          },
          "reviewSort": {
            "title": "Review Sort Order",
            "enum": [
              "helpful",
              "recent"
            ],
            "type": "string",
            "description": "How to sort reviews: 'helpful' = most helpful first (default), 'recent' = newest first.",
            "default": "helpful"
          },
          "marketplace": {
            "title": "Amazon Marketplace",
            "enum": [
              "us",
              "uk",
              "de",
              "fr",
              "it",
              "es",
              "ca",
              "jp"
            ],
            "type": "string",
            "description": "Which Amazon domain to scrape. All 8 marketplaces fully supported with locale-specific parsing (currency, number formats, translations) and automatic WAF bypass for non-US domains.",
            "default": "us"
          },
          "proxyConfig": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify proxy settings. Residential proxies are recommended for best results and required for non-US marketplaces. Smart proxy routing (v0.2.1): for non-US detail pages, the scraper tries datacenter proxy first (free) and falls back to residential only when needed — saving 60-80% on proxy costs."
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Parallel product page requests in Detailed/Review mode. Default 3 balances speed with anti-detection. Increase to 5-10 for faster runs if using 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}