{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Best Sellers Scraper: BSR Rank & New Releases",
    "description": "Amazon Best Sellers and New Releases scraper and BSR rank tracker: rank, ASIN, title, price, rating, review count and category path for the top 100 of any category, on 12 marketplaces. Your category URLs or a whole department tree.",
    "version": "0.1",
    "x-build-id": "FHcH9FDIY8ZNqjkJr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/siteacs~amazon-bestsellers/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-siteacs-amazon-bestsellers",
        "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/siteacs~amazon-bestsellers/runs": {
      "post": {
        "operationId": "runs-sync-siteacs-amazon-bestsellers",
        "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/siteacs~amazon-bestsellers/run-sync": {
      "post": {
        "operationId": "run-sync-siteacs-amazon-bestsellers",
        "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": {
          "categoryUrls": {
            "title": "Chart or category URLs",
            "type": "array",
            "description": "Amazon chart pages, one per line, copied from the browser: Best Sellers (/gp/bestsellers/... or /zgbs/...), New Releases, Movers & Shakers, Most Wished For or Gift Ideas, for a department or any subcategory. Each URL is read as one chart of up to 100 ranked products. The marketplace comes from the URL. A chart's home page (for example amazon.com/gp/bestsellers) is read as every department in it.",
            "items": {
              "type": "string"
            }
          },
          "browseNodeIds": {
            "title": "Browse node ids",
            "type": "array",
            "description": "Or give Amazon category ids (browse nodes), one per line: the number at the end of a chart URL, e.g. 289742 for amazon.com Coffee, Tea & Espresso Appliances. Read on the marketplace below, as Best Sellers unless you pick other charts.",
            "items": {
              "type": "string"
            }
          },
          "allDepartments": {
            "title": "Every department of the marketplace",
            "type": "boolean",
            "description": "On: read the chart of every top-level department of the marketplace below (about 30 to 40 departments, up to 100 products each), from the department list on its Best Sellers page. Combine with \"Subcategory depth\" for the department tree.",
            "default": false
          },
          "marketplace": {
            "title": "Marketplace",
            "enum": [
              "US",
              "UK",
              "DE",
              "FR",
              "ES",
              "IT",
              "BR",
              "JP",
              "IN",
              "CA",
              "MX",
              "AU"
            ],
            "type": "string",
            "description": "The marketplace for \"Every department\" and for browse node ids. URLs above always use their own marketplace.",
            "default": "US"
          },
          "subcategoryDepth": {
            "title": "Subcategory depth",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "0: only the charts given. 1: also every subcategory listed in each chart's navigation tree. 2 or 3: their subcategories too. Each subcategory is its own chart of up to 100 products, so depth multiplies the row count quickly; \"Max charts\" caps it.",
            "default": 0
          },
          "listTypes": {
            "title": "Charts to read",
            "type": "array",
            "description": "Empty: each URL's own chart, and Best Sellers for \"Every department\". With a choice here, every category is read in each chart picked. Movers & Shakers, Most Wished For and Gift Ideas: Amazon currently shows these lists empty to visitors who are not signed in (checked November 2026 on five marketplaces); such a chart ends with status empty_list and costs nothing.",
            "items": {
              "type": "string",
              "enum": [
                "bestsellers",
                "new-releases",
                "movers-and-shakers",
                "most-wished-for",
                "gift-ideas"
              ],
              "enumTitles": [
                "Best Sellers",
                "New Releases",
                "Movers & Shakers",
                "Most Wished For",
                "Gift Ideas"
              ]
            }
          },
          "maxItemsPerCategory": {
            "title": "Max products per chart",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Amazon ranks 100 products per chart, 50 on each page. 50 or less reads only the first page.",
            "default": 100
          },
          "maxCategories": {
            "title": "Max charts",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "No more charts than this are read in one run, counting departments, subcategories and each chart type. Your maximum cost per run also stops the run, at the last product within it.",
            "default": 200
          },
          "maxConcurrency": {
            "title": "Charts at a time",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many charts are read in parallel.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy (the default) works for chart pages; a page Amazon refuses is retried on another IP.",
            "default": {
              "useApifyProxy": true
            }
          },
          "residentialFallback": {
            "title": "Retry refused pages through residential proxy",
            "type": "boolean",
            "description": "On: a page Amazon still refuses after 6 datacenter IPs is tried through Apify residential proxy, at no extra charge to you. Off: the chart ends there and its summary row says why.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}