{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Scraper",
    "description": "Amazon scraper for products: search by keyword or paste search, category, Best Sellers or product links and ASINs. Price, rating, review count, badges, rank, monthly sales, plus optional product details (description, images, variants, BSR, seller). Export to JSON, CSV or Excel, or via API.",
    "version": "1.0",
    "x-build-id": "Tcp2OKNp1FrCNhieR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~amazon-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-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/steadyscrape~amazon-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-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/steadyscrape~amazon-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-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",
        "properties": {
          "keywords": {
            "title": "Keywords",
            "maxItems": 1000,
            "type": "array",
            "description": "One search per line, searched on the marketplace below: <code>wireless earbuds</code>, <code>yoga mat</code>, <code>atomic habits</code>. Each keyword gives the products of Amazon's search results, page after page, with their position. A link of any kind or an ASIN works here too.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Amazon links or ASINs",
            "maxItems": 1000,
            "type": "array",
            "description": "One per line, on any marketplace: a search results link (<code>https://www.amazon.co.uk/s?k=desk+lamp&rh=p_72%3A419153031</code>, with its own filters and sort), a category link (<code>https://www.amazon.com/b?node=172541</code>, or a department filtered by brand or price), a seller's storefront (<code>/s?me=…</code>), a Best Sellers or New Releases link (<code>https://www.amazon.com/gp/bestsellers/books</code>; the Best Sellers home reads every department), a product link (<code>/dp/B00FLYWNYQ</code>) or a bare ASIN (on the marketplace below). A product link or ASIN always gives the product's full page. Short links (<code>amzn.to/…</code>, <code>a.co/d/…</code>) and the text a share button copies work too.",
            "items": {
              "type": "string"
            }
          },
          "scrapeDetails": {
            "title": "Product details (open each product's page)",
            "type": "boolean",
            "description": "Off: each product as the search, category or chart lists it (title, price, rating, reviews, badges, position), charged as <code>product</code>. On: each product's own page is read too and added as <code>details</code> (description, bullet points, all images, variants, Best Sellers rank, seller, availability, specifications), charged as <code>product-with-details</code>; a page Amazon refuses leaves the row as listed, with <code>detailsError</code>, at the listing price. Product links and ASINs always come with details.",
            "default": false
          },
          "marketplace": {
            "title": "Marketplace for keywords and ASINs",
            "enum": [
              "com",
              "ca",
              "com.mx",
              "com.br",
              "co.uk",
              "de",
              "fr",
              "it",
              "es",
              "nl",
              "com.be",
              "ie",
              "se",
              "pl",
              "com.tr",
              "co.jp",
              "in",
              "com.au",
              "sg",
              "ae",
              "sa",
              "eg"
            ],
            "type": "string",
            "description": "Where keywords are searched and bare ASINs are read (links carry their own). Measured from Apify's cloud in September and October 2026: amazon.com, .ca, .com.mx, .com.br, .co.jp and .com.au answered through datacenter proxies; .co.uk, .de, .it, .es and .in search pages through residential proxies of their own country; amazon.fr answered a challenge on every route (a free <code>blocked</code> row).",
            "default": "com"
          },
          "department": {
            "title": "Department (optional)",
            "pattern": "^\\s*([A-Za-z0-9-]{2,40})?\\s*$",
            "type": "string",
            "description": "Search one department only, by the alias Amazon puts after <code>i=</code> in a search link: on amazon.com <code>electronics</code>, <code>stripbooks</code> (Books), <code>digital-text</code> (Kindle Store), <code>fashion</code>, <code>beauty</code>, <code>garden</code> (Home & Kitchen), <code>hpc</code> (Health & Household), <code>sporting</code>, <code>toys-and-games</code>, <code>tools</code>, <code>pets</code>, <code>automotive</code>, <code>office-products</code>. Empty: all departments. Applies to keywords only; links keep their own."
          },
          "sort": {
            "title": "Sort by (keywords)",
            "enum": [
              "relevance",
              "price-asc",
              "price-desc",
              "rating",
              "newest",
              "best-sellers"
            ],
            "type": "string",
            "description": "The order of Amazon's own \"Sort by\" menu. Applies to keywords; a link keeps its own.",
            "default": "relevance"
          },
          "maxResults": {
            "title": "Max products per keyword or link",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop each search, category or chart after this many product rows (sponsored ones included unless they are turned off below). Amazon shows 16 to 60 products a results page; a chart ends at 100.",
            "default": 100
          },
          "maxPagesPerSearch": {
            "title": "Max pages per search or category",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "The most results pages read per keyword, search link or category link. Amazon usually ends a search at 7 pages of 48 or 20 of 16; within a department it can go further.",
            "default": 5
          },
          "includeSponsored": {
            "title": "Include sponsored results",
            "type": "boolean",
            "description": "Sponsored products in search results come back flagged <code>sponsored: true</code>. Off: they are left out (and not charged), while <code>position</code> still counts them so it matches what a shopper sees.",
            "default": true
          },
          "residentialFallback": {
            "title": "Fall back to residential proxies",
            "type": "boolean",
            "description": "When Amazon refuses the run's own IP and the datacenter proxies, retry through residential proxies of the marketplace's country (included in the price: you pay per product, not per proxy byte). Off: those inputs come back with status <code>blocked</code>, unpaid.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}