{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Product Scraper — Search, Price, Rating & Reviews",
    "description": "Type a keyword, get Amazon products: ASIN, title, brand, price, currency, rating, review count, sponsored flag and image — plus availability, feature bullets and the full hi-res gallery on demand. 12 marketplaces, keyword or ASIN/URL input, deduped on ASIN. $4.50 per 1,000, no start fee. No login.",
    "version": "0.1",
    "x-build-id": "rSOk9O0hfDrkF3drY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapersdelight~amazon-product-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapersdelight-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/scrapersdelight~amazon-product-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapersdelight-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/scrapersdelight~amazon-product-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapersdelight-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",
        "properties": {
          "searchTerms": {
            "title": "🔍 Search terms",
            "type": "array",
            "description": "Keywords exactly as you would type them into the Amazon search box. Each term is paged through up to the page limit below. Measured 2026-08-13 on amazon.com: a results page carries 16–60 cards depending on the query and the day ('wireless earbuds' 16–22, 'running shoes' 60). Leave the prefilled term to try the actor as-is.",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "🔗 Product URLs or ASINs",
            "type": "array",
            "description": "Paste a browser URL ('https://www.amazon.com/dp/B09B8V1LZ3', with or without the /ref= tail), a /gp/product/ URL, or a bare 10-character ASIN ('B09B8V1LZ3') — all three are accepted, one per line. Every entry here is fetched as a full product page and billed once, whatever the detail toggle says. Optional if you gave search terms.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "💯 Number of products (cost cap)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many unique products across all inputs. You are billed $0.0045 per product returned, so this is your hard cost ceiling: 20 = $0.09, 1,000 = $4.50. Duplicate ASINs are dropped before billing and never count against it. Set 0 for no cap (bounded only by pages-per-term).",
            "default": 20
          },
          "maxPagesPerTerm": {
            "title": "Pages per search term",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many search-result pages to walk for each term. Amazon serves at most ~7 pages per query and then repeats itself, so values above that buy nothing. Measured on a contiguous 5-page walk (2026-08-13): 300 raw cards for 'running shoes' collapsed to 248 unique ASINs — the repeats cost you time, not money.",
            "default": 5
          },
          "includeSponsored": {
            "title": "Include sponsored results",
            "type": "boolean",
            "description": "Keep Amazon's ad placements (they arrive flagged `sponsored: true`). Measured 2026-08-13: 11 of 75 unique products (14.7%) on a 5-page 'wireless earbuds' walk were sponsored. Turn this off for organic results only — dropped cards are never charged.",
            "default": true
          },
          "fetchProductDetails": {
            "title": "Full product detail for search results",
            "type": "boolean",
            "description": "Opens each search result's own product page to add brand, availability, in-stock flag, feature bullets and the full hi-res gallery. Costs one extra request per product and roughly triples run time — but NOT one extra charge: the price is $0.0045 per product either way. Measured on two independent 40-product runs (2026-08-13): brand 90% and 92.5%, availability 100% and 97.5%, features 100% both (median 5 bullets), images 100% both (median 20-21 images).",
            "default": false
          },
          "domain": {
            "title": "Amazon marketplace",
            "enum": [
              "amazon.com",
              "amazon.co.uk",
              "amazon.de",
              "amazon.ca",
              "amazon.com.au",
              "amazon.fr",
              "amazon.es",
              "amazon.it",
              "amazon.in",
              "amazon.co.jp",
              "amazon.com.mx",
              "amazon.com.br"
            ],
            "type": "string",
            "description": "Which Amazon marketplace to scrape. The proxy exit country follows this automatically — amazon.co.uk exhausted 6 of 6 attempts from a US exit and cleared in 2 from a GB one, and amazon.de served USD prices in English to a US exit, so this is load-bearing. Prices are labelled from the marketplace's own currency ($ on amazon.ca is CAD, not USD).",
            "default": "amazon.com"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Residential is REQUIRED. Measured through Apify on 2026-08-13, single attempt, N=20 per rung: Apify datacenter (auto) cleared 2/20 = 10%; Apify RESIDENTIAL cleared 12/20 = 60%; RESIDENTIAL plus the built-in brand-new-session retry delivered 45 of 45 target pages = 100%. Leave this alone. If you do pin a country here it overrides the marketplace default, which is usually a mistake.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "requestConcurrency": {
            "title": "Request concurrency",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Parallel product-page requests during the detail pass. Values above 6 are clamped: Amazon tightens its block rate under burst load, and a higher setting buys retries, not speed. 4 is the tested setting.",
            "default": 4
          },
          "diagnose": {
            "title": "Diagnose (no rows, no charge)",
            "type": "boolean",
            "description": "Fetch two search pages plus one product page, dump the raw HTML to the key-value store (DEBUG_SEARCH_PAGE_1/2, DEBUG_PRODUCT) with a DIAGNOSE report of card counts, parsed fill and how many ASINs page 2 repeats from page 1 — then exit without writing a single dataset row, so nothing is charged. Use this before opening an issue.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}