{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Best Sellers Scraper & Bestsellers Tracker",
    "description": "Amazon Best Sellers and bestsellers scraper: top-100 Best Sellers and New Releases (plus Movers & Shakers, Most Wished For, Gift Ideas) in 21 marketplaces and every subcategory, with rank changes, new entries, dropped products and review growth between runs.",
    "version": "0.1",
    "x-build-id": "cnjwWAHodWTjYmqsJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rastriq~amazon-bestsellers-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rastriq-amazon-bestsellers-tracker",
        "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/rastriq~amazon-bestsellers-tracker/runs": {
      "post": {
        "operationId": "runs-sync-rastriq-amazon-bestsellers-tracker",
        "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/rastriq~amazon-bestsellers-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-rastriq-amazon-bestsellers-tracker",
        "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": "🔗 Amazon list URLs",
            "type": "array",
            "description": "Any Amazon ranking page from a supported marketplace — mix countries and list types freely. Examples:<br>• <code>https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics/</code><br>• <code>https://www.amazon.de/gp/new-releases/books/</code><br>• <code>https://www.amazon.co.uk/gp/movers-and-shakers/kitchen/</code><br>• <code>https://www.amazon.es/gp/most-wished-for/toys/</code><br>A list home page (no category) scrapes the top list of <b>every department</b>.",
            "items": {
              "type": "string"
            }
          },
          "marketplaces": {
            "title": "🌍 …or whole marketplaces",
            "type": "array",
            "description": "Scrape the top list of every department (~30-45 per marketplace) in these marketplaces, for each list type selected below. Capped by <b>Max lists per run</b>. Leave empty if you only use URLs.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "UK",
                "DE",
                "FR",
                "ES",
                "IT",
                "NL",
                "BE",
                "SE",
                "PL",
                "IE",
                "CA",
                "MX",
                "BR",
                "JP",
                "IN",
                "AU",
                "AE",
                "SA",
                "SG",
                "TR"
              ],
              "enumTitles": [
                "🇺🇸 United States (amazon.com)",
                "🇬🇧 United Kingdom (amazon.co.uk)",
                "🇩🇪 Germany (amazon.de)",
                "🇫🇷 France (amazon.fr)",
                "🇪🇸 Spain (amazon.es)",
                "🇮🇹 Italy (amazon.it)",
                "🇳🇱 Netherlands (amazon.nl)",
                "🇧🇪 Belgium (amazon.com.be)",
                "🇸🇪 Sweden (amazon.se)",
                "🇵🇱 Poland (amazon.pl)",
                "🇮🇪 Ireland (amazon.ie)",
                "🇨🇦 Canada (amazon.ca)",
                "🇲🇽 Mexico (amazon.com.mx)",
                "🇧🇷 Brazil (amazon.com.br)",
                "🇯🇵 Japan (amazon.co.jp)",
                "🇮🇳 India (amazon.in)",
                "🇦🇺 Australia (amazon.com.au)",
                "🇦🇪 UAE (amazon.ae)",
                "🇸🇦 Saudi Arabia (amazon.sa)",
                "🇸🇬 Singapore (amazon.sg)",
                "🇹🇷 Turkey (amazon.com.tr)"
              ]
            }
          },
          "listTypes": {
            "title": "📋 List types (for marketplaces)",
            "type": "array",
            "description": "Which Amazon lists to scrape for the marketplaces above. URLs already carry their own list type.<br>⚠️ In late 2026 Amazon shows <b>Movers &amp; Shakers, Most Wished For and Gift Ideas</b> empty in most categories. They are supported and empty lists are free, but expect few or no rows.",
            "items": {
              "type": "string",
              "enum": [
                "best_sellers",
                "new_releases",
                "movers_and_shakers",
                "most_wished_for",
                "gift_ideas"
              ],
              "enumTitles": [
                "🏆 Best Sellers",
                "🆕 New Releases",
                "🚀 Movers & Shakers (24h gainers) — Amazon often shows it empty",
                "💝 Most Wished For — Amazon often shows it empty",
                "🎁 Gift Ideas — Amazon often shows it empty"
              ]
            },
            "default": [
              "best_sellers"
            ]
          },
          "subcategoryDepth": {
            "title": "🌳 Subcategory depth",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "0 = only the lists you entered. 1 = also their direct subcategories, 2 = two levels down, and so on.<br>⚠️ Each level multiplies the number of lists by roughly <b>10-20×</b> (every subcategory is its own top-100). Keep <b>Max lists per run</b> in mind.",
            "default": 0
          },
          "maxItemsPerList": {
            "title": "🔢 Products per list",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Amazon ranks up to 100 products per list. The example is set to 10 for a fast first test (a few seconds); raise it to 100 for the full top-100. 50 or less needs half the requests.",
            "default": 100
          },
          "maxLists": {
            "title": "🧮 Max lists per run",
            "minimum": 1,
            "type": "integer",
            "description": "Safety cap on category lists per run, shared fairly between your inputs.<br>💰 Results charged ≈ <b>lists × products per list</b> (20 lists × 100 = up to 2,000 products). Raise it when you crawl whole marketplaces or deep subcategories.",
            "default": 20
          },
          "maxItems": {
            "title": "💰 Max products per run",
            "minimum": 1,
            "type": "integer",
            "description": "Optional hard cap on rows saved (and charged) in this run. Empty = no cap beyond <b>Max lists per run</b>."
          },
          "trackTrends": {
            "title": "📈 Track trends between runs",
            "type": "boolean",
            "description": "Remembers each list in a storage of <b>your</b> account and adds to every row: previous rank, rank change, new entry, days in list, best rank, price change and reviews gained.<br>📅 Save this input as a <b>Task</b> and add a <b>Schedule</b> (daily or weekly) — trend fields fill in from the second run.",
            "default": true
          },
          "trendStoreName": {
            "title": "History name (one per tracked project)",
            "type": "string",
            "description": "Name of the key-value store in your account that keeps the history. Runs with the same name compare with each other; use a different name per client or project.",
            "default": "amazon-bestsellers-history"
          },
          "onlyChanges": {
            "title": "🔔 Output only changes",
            "type": "boolean",
            "description": "Save only products that <b>entered</b> a list, <b>climbed</b> or <b>fell</b> (3+ positions) since the previous run. Stable products are not saved and <b>not charged</b>; the history is still updated with the full list. The first run (no history yet) saves everything. Ideal for daily alerts via webhooks, Slack, Make or Zapier.",
            "default": false
          },
          "includeDroppedProducts": {
            "title": "Output products that dropped out",
            "type": "boolean",
            "description": "Adds a row (<code>recordType: dropped</code>) for every product that was in a list last run and is gone now. Charged like any other row.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Datacenter proxy works for most marketplaces. Blocked pages are retried with a fresh session automatically.",
            "default": {
              "useApifyProxy": true
            }
          },
          "residentialFallback": {
            "title": "Residential fallback",
            "type": "boolean",
            "description": "Only kicks in if a marketplace keeps blocking (half of recent pages): that marketplace switches to residential IPs of its country, if your account has them. Normal runs stay on datacenter.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Parallel requests. 5 is gentle on Amazon and fast enough for hundreds of lists.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}