{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Best Sellers Scraper - Top 100 by Category",
    "description": "Get the full top 100 of any Amazon Best Sellers or New Releases list in 22 stores, by list URL or category, whole category trees to any depth, no login. Rank, ASIN, title, price in local currency, rating, ratings count, node id and category path. JSON, CSV, real-time API, pay per product.",
    "version": "0.1",
    "x-build-id": "WkycMr6md83SXb4L7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~amazon-best-sellers-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-amazon-best-sellers-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/automation_craft~amazon-best-sellers-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-amazon-best-sellers-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/automation_craft~amazon-best-sellers-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-amazon-best-sellers-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": {
          "startUrls": {
            "title": "List URLs",
            "type": "array",
            "description": "Amazon ranked list URLs, one per line: Best Sellers, New Releases, Movers and Shakers, Most Wished For or Most Gifted, of any of the 22 stores, in every form Amazon links (https://www.amazon.com/gp/bestsellers/electronics, the long /Best-Sellers-.../zgbs/... form, a category node such as https://www.amazon.de/gp/bestsellers/ce-de/3578331, or https://www.amazon.com/gp/bestsellers for every department of the store). A search, product or other Amazon page is skipped with a free status row. Left empty with no categories, the run reads the electronics Best Sellers of amazon.com.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Categories read in each store of 'Stores', one per line: a department slug (electronics, books, ce-de), a slug and node id (electronics/172541), a bare node id (172541), a department name as the store writes it (Electronics, Home & Kitchen), a path of names (Electronics > Headphones > Earbud Headphones), or all (every department of the store). A name or path the store does not have gives a free status row with the store's department names.",
            "items": {
              "type": "string"
            }
          },
          "stores": {
            "title": "Stores",
            "type": "array",
            "description": "The Amazon stores the categories are read in. List URLs are always read in their own store.",
            "items": {
              "type": "string",
              "enum": [
                "com",
                "ca",
                "com.mx",
                "com.br",
                "co.uk",
                "de",
                "fr",
                "it",
                "es",
                "nl",
                "com.be",
                "ie",
                "se",
                "pl",
                "com.tr",
                "ae",
                "sa",
                "eg",
                "in",
                "co.jp",
                "sg",
                "com.au"
              ],
              "enumTitles": [
                "amazon.com (United States)",
                "amazon.ca (Canada)",
                "amazon.com.mx (Mexico)",
                "amazon.com.br (Brazil)",
                "amazon.co.uk (United Kingdom)",
                "amazon.de (Germany)",
                "amazon.fr (France)",
                "amazon.it (Italy)",
                "amazon.es (Spain)",
                "amazon.nl (Netherlands)",
                "amazon.com.be (Belgium)",
                "amazon.ie (Ireland)",
                "amazon.se (Sweden)",
                "amazon.pl (Poland)",
                "amazon.com.tr (Turkey)",
                "amazon.ae (United Arab Emirates)",
                "amazon.sa (Saudi Arabia)",
                "amazon.eg (Egypt)",
                "amazon.in (India)",
                "amazon.co.jp (Japan)",
                "amazon.sg (Singapore)",
                "amazon.com.au (Australia)"
              ]
            },
            "default": [
              "com"
            ]
          },
          "listKinds": {
            "title": "List kinds",
            "type": "array",
            "description": "Read every list URL's category and every category in each of these kinds. Left empty, a URL is read in its own kind and a category as Best Sellers. Amazon serves Movers and Shakers, Most Wished For and Most Gifted empty on many categories today; an empty list gives a free status row and costs nothing.",
            "items": {
              "type": "string",
              "enum": [
                "bestsellers",
                "new-releases",
                "movers-and-shakers",
                "most-wished-for",
                "most-gifted"
              ],
              "enumTitles": [
                "Best Sellers",
                "New Releases",
                "Movers and Shakers",
                "Most Wished For",
                "Most Gifted (Gift Ideas)"
              ]
            }
          },
          "maxRank": {
            "title": "Top N of each list",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "The ranks read from each list, from rank 1: up to 100 (Amazon's lists hold at most 100). Every rank Amazon's own ranked list names up to this number is delivered; the free list row says how many ranks Amazon lists.",
            "default": 100
          },
          "subcategoryDepth": {
            "title": "Subcategory depth",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Also read the subcategories of each list, breadth first, this many levels down (0 = only the lists given). The subcategories come from each page's own category tree, at no extra request.",
            "default": 0
          },
          "maxListsPerInput": {
            "title": "Max lists per input",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "The most lists one list URL or category reads, its subcategories and stores included.",
            "default": 200
          },
          "maxLists": {
            "title": "Max lists in the run",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "The most lists the whole run reads.",
            "default": 5000
          },
          "maxItems": {
            "title": "Max products in the run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most product rows the whole run delivers, over every list.",
            "default": 100000
          },
          "dedupeAcrossLists": {
            "title": "One row per product",
            "type": "boolean",
            "description": "Deliver each product (per store) once in the run: the first list (in input order) that ranks it owns its row; a later list that ranks it names it on its own free list row (alsoRanked, with the owning list) and never delivers it, even when the owning list could not.",
            "default": false
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Amazon's own language code for the pages, written like en_US, es_US, de_DE, fr_CA, nl_BE or ar_AE: titles, category names and price text change, ranks do not. A code a store does not offer still answers (Amazon falls back to its default); the row's language field says which language Amazon served."
          },
          "deliveryPostcode": {
            "title": "Delivery postcode",
            "type": "string",
            "description": "A postcode or ZIP code set as the delivery location on every store of the run, through Amazon's own location form (no login), so prices are the ones a shopper there sees. Left empty, amazon.de, co.uk, fr, co.jp, com.au and sg use a postcode of their capital (10115, SW1A 1AA, 75001, 100-0001, 2000, 018956) because a US address sees export prices there; the other stores show local prices to a US address without it. Not possible on amazon.it and amazon.es (Amazon asks shoppers to sign in to change the location there): a run that reads them refuses a postcode, free. One value for the whole run."
          },
          "localPrices": {
            "title": "Local prices on amazon.it and amazon.es",
            "type": "boolean",
            "description": "amazon.it and amazon.es show a US address export prices and give no guest delivery location, so their list pages are read through Apify residential proxies in Italy or Spain to get the local prices; each such list page that delivers a charged product carries the Residential page event. Turn it off to read them like every other store: no Residential page event, prices as Amazon shows them to a US address, marked priceIsLocal: false. Product details, offers and variants of these two stores are never read through residential and say priceIsLocal: false.",
            "default": true
          },
          "includeProductDetails": {
            "title": "Product details",
            "type": "boolean",
            "description": "Read each delivered product's own page: brand, bullets, description, A+ text, every Best Sellers Rank, list price, savings, unit price, coupon, deal badge, availability, bought in past month, seller and fulfilment, Prime, Amazon's Choice, variations, all images, product tables, rating histogram, breadcrumbs, and the reviews the page shows (its top reviews with text, stars, date and verified purchase, and Amazon's Customers say summary with its aspects). Billed per product whose page gave at least its title or a price (Product details event).",
            "default": false
          },
          "maxVariantsPerProduct": {
            "title": "Variants per product",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "With Product details: read this many variants of each product on their own pages for their price, currency, availability, title and image. Billed per variant whose price was read (Variant event). 0 = the variation list only (in Product details).",
            "default": 0
          },
          "includeOffers": {
            "title": "Offers",
            "type": "boolean",
            "description": "Read the product's offers from every seller: seller name and id, price, condition, ships from, delivery promise, seller rating, the buy box flag, and the total count. Billed per offer delivered (Offer event).",
            "default": false
          },
          "maxOffersPerProduct": {
            "title": "Max offers per product",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "The most offers delivered per product with Offers on.",
            "default": 10
          },
          "downloadImages": {
            "title": "Image files",
            "type": "boolean",
            "description": "Store each product's full size main image in the run's key-value store (image-<store>-<ASIN>.jpg) and put its link on the row. Billed per image stored (Image file event).",
            "default": false
          },
          "includeSellerProfile": {
            "title": "Seller profile",
            "type": "boolean",
            "description": "Read the public seller page of each product's buy box seller (once per seller per run) and put its profile on the row: name, business name and address, VAT and registration numbers, phone and email where the seller shows them, star rating and ratings per time window, positive share and About text. Needs Product details or Offers (the seller id comes from them). Billed per product row that carries a profile (Seller profile event); Amazon itself as the seller is free.",
            "default": false
          },
          "fields": {
            "title": "Fields to keep",
            "type": "array",
            "description": "Keep only these keys of the product rows (for example title, price, rating); the identity keys type, store, listKind, categoryNodeId, rank and asin always stay. Left empty, every field is delivered. An unknown key refuses the run, free.",
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Lists at once",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many lists are read at the same time.",
            "default": 4
          },
          "maxRetries": {
            "title": "Retries",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "How many times a read is asked again after a network error or an Amazon server error. A refusal from Amazon is never asked again.",
            "default": 3
          },
          "maxRequestsPerMinute": {
            "title": "Requests per minute",
            "minimum": 10,
            "maximum": 300,
            "type": "integer",
            "description": "A fixed pace of the whole run's requests.",
            "default": 120
          },
          "maxTrafficMb": {
            "title": "Max traffic",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop the run when the bytes it has read pass this many megabytes (useful with your own or residential proxies). Left empty: no limit."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Left empty, the run reads Amazon from its own address, which answered 198 of 200 list pages in our tests. Apify datacenter proxies (US for amazon.com), Apify residential proxies (each store's own country; each residential page that delivers a billed product carries the Residential page event) or your own proxy links can be used instead."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}