{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Best Sellers Scraper: Top 100, New Releases & Movers",
    "description": "Top 100 Amazon Best Sellers, New Releases, Movers & Shakers, Most Wished For and Gift Ideas for any category on 20+ Amazon marketplaces: rank, ASIN, title, author/brand, price, rating, reviews, image. Crawl subcategories. Fast HTTP, no browser.",
    "version": "1.0",
    "x-build-id": "Aunk2JnAzaaBJLmLv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ksvan~amazon-bestsellers-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ksvan-amazon-bestsellers-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/ksvan~amazon-bestsellers-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ksvan-amazon-bestsellers-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/ksvan~amazon-bestsellers-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ksvan-amazon-bestsellers-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": {
          "marketplace": {
            "title": "Amazon marketplace",
            "enum": [
              "amazon.com",
              "amazon.co.uk",
              "amazon.de",
              "amazon.fr",
              "amazon.it",
              "amazon.es",
              "amazon.ca",
              "amazon.com.au",
              "amazon.co.jp",
              "amazon.in",
              "amazon.com.mx",
              "amazon.com.br",
              "amazon.nl",
              "amazon.se",
              "amazon.pl",
              "amazon.com.be",
              "amazon.ie",
              "amazon.com.tr",
              "amazon.ae",
              "amazon.sa",
              "amazon.sg",
              "amazon.eg"
            ],
            "type": "string",
            "description": "Which Amazon store to read. Prices come in the store's local currency.",
            "default": "amazon.com"
          },
          "listTypes": {
            "title": "Lists",
            "type": "array",
            "description": "One or more Amazon ranking lists. Each list is scraped for every category below.",
            "items": {
              "type": "string",
              "enum": [
                "bestsellers",
                "new-releases",
                "movers-and-shakers",
                "most-wished-for",
                "most-gifted"
              ],
              "enumTitles": [
                "Best Sellers",
                "New Releases",
                "Movers & Shakers",
                "Most Wished For",
                "Gift Ideas (Most Gifted)"
              ]
            },
            "default": [
              "bestsellers"
            ]
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Category path as it appears in the Amazon URL after /bestsellers/, e.g. books, electronics, digital-text/154606011 (Kindle eBooks), books/17 (Literature & Fiction). Empty = every top-level department (Any Department), one list each. A full list URL works too.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Or: list URLs",
            "type": "array",
            "description": "Optional. Paste any Amazon Best Sellers / New Releases / Movers & Shakers / Most Wished For / Gift Ideas URL from any marketplace. When filled, Marketplace, Lists and Categories are ignored.",
            "items": {
              "type": "string"
            }
          },
          "asins": {
            "title": "Product ASINs",
            "type": "array",
            "description": "Optional. Amazon ASINs (or ISBN-10) to read directly: title, Best Sellers Rank, product details and the featured customer reviews from each product page. If you fill this and leave Categories and Start URLs empty, only these products are read.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Optional. Amazon search phrases, e.g. 'air fryer cookbook for two'. Every result is saved with its page position, organic position, sponsored flag, price, rating and reviews. If you fill this and leave Categories and Start URLs empty, only the search runs.",
            "items": {
              "type": "string"
            }
          },
          "searchIndex": {
            "title": "Search department",
            "enum": [
              "",
              "stripbooks",
              "digital-text",
              "aps",
              "kitchen",
              "toys-and-games",
              "beauty",
              "electronics",
              "fashion",
              "garden",
              "tools",
              "pets",
              "baby-products",
              "hpc",
              "sporting"
            ],
            "type": "string",
            "description": "Amazon search index (the i= parameter).",
            "default": ""
          },
          "searchPages": {
            "title": "Search pages per keyword",
            "minimum": 1,
            "maximum": 7,
            "type": "integer",
            "description": "About 16–48 results per page.",
            "default": 1
          },
          "keywordSeeds": {
            "title": "Keyword research seeds",
            "type": "array",
            "description": "Optional. Seed phrases, e.g. 'cozy mystery'. Each seed is expanded through Amazon's own search-box suggestions (seed, seed + a..z) and every suggestion is saved as a 'keyword' record with how many prefixes returned it (autocompleteHits) and its best position: a popularity signal straight from what buyers type.",
            "items": {
              "type": "string"
            }
          },
          "keywordAlias": {
            "title": "Autocomplete department",
            "enum": [
              "",
              "stripbooks",
              "digital-text",
              "aps"
            ],
            "type": "string",
            "description": "Which Amazon search box to read suggestions from.",
            "default": ""
          },
          "keywordAlphabet": {
            "title": "Expand seeds a..z",
            "type": "boolean",
            "description": "Also query 'seed a' ... 'seed z' (26 extra requests per seed).",
            "default": true
          },
          "keywordQuestions": {
            "title": "Expand with modifiers",
            "type": "boolean",
            "description": "Also query 'best seed', 'how to seed', 'easy seed' and similar.",
            "default": false
          },
          "analyzeKeywords": {
            "title": "Analyze top suggestions",
            "type": "boolean",
            "description": "Run an Amazon search for the top suggestions of every seed and save a 'search-summary' record per phrase (results count, median reviews, books under 100 reviews; with Product details also sales estimate, weak and fresh sellers, big publishers, Kindle Unlimited share, opportunity score).",
            "default": false
          },
          "maxKeywordsToAnalyze": {
            "title": "Suggestions analyzed per seed",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Cap for Analyze top suggestions.",
            "default": 30
          },
          "reverseAsins": {
            "title": "Reverse ASIN: competitor books",
            "type": "array",
            "description": "Optional. ASINs of books whose search phrases you want to discover. Candidate phrases are built from each title/subtitle and your keyword seeds, expanded with Amazon autocomplete, then searched; every phrase where the book appears is saved as an 'asin-keyword' record with its organic position, or sponsored = true when the book is advertised on that phrase. Amazon does not publish the 7 backend keywords of a book; this shows the phrases it actually ranks or advertises for. Use Search pages per keyword 2-3 for deeper positions.",
            "items": {
              "type": "string"
            }
          },
          "maxReverseKeywords": {
            "title": "Candidate phrases (reverse ASIN)",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "How many candidate phrases are searched in reverse ASIN mode.",
            "default": 40
          },
          "summaries": {
            "title": "Summary records",
            "type": "boolean",
            "description": "Save one 'search-summary' per search phrase and, with Product details, one 'list-summary' per ranked list (Best Sellers Rank needed for #1/#10/#20/#50/#100, sales estimates, indie vs big publishers, Kindle Unlimited and series share).",
            "default": true
          },
          "fetchDetails": {
            "title": "Product details (Best Sellers Rank)",
            "type": "boolean",
            "description": "Open every product page and add Best Sellers Rank (overall and per category), publisher, publication date, pages, language, ISBN, Kindle Unlimited flag (e-books), series name/number/length and estimated copies and royalty per day (approximate, from Best Sellers Rank). One extra request per product.",
            "default": false
          },
          "detailsConcurrency": {
            "title": "Product pages in parallel",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many product pages are read at the same time.",
            "default": 6
          },
          "residentialFallback": {
            "title": "Residential fallback for search and product pages",
            "type": "boolean",
            "description": "Amazon often answers search and product pages from datacenter IPs with a captcha. When on, the last 3 tries of such a page use Apify residential proxy.",
            "default": true
          },
          "maxItemsPerList": {
            "title": "Products per list",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Amazon shows up to 100 ranked products per list (two pages of 50).",
            "default": 100
          },
          "subcategoryDepth": {
            "title": "Subcategory depth",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "0 = only the lists above. 1 = also every direct subcategory, 2 = and their subcategories, and so on. Depth 1 on Books = about 30 extra lists.",
            "default": 0
          },
          "maxLists": {
            "title": "Max lists",
            "minimum": 1,
            "type": "integer",
            "description": "Safety cap on how many lists (category pages) one run scrapes, useful with subcategory crawling.",
            "default": 200
          },
          "maxItems": {
            "title": "Max products (total)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many products in total. 0 = no limit.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy works well for Amazon list pages.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxRetries": {
            "title": "Max retries per page",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many times a page is retried with a fresh proxy IP before it is reported as an error (errors are not charged).",
            "default": 6
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}