{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Best Sellers Scraper - New Releases, Movers & Ranks",
    "description": "Scrape Amazon Best Sellers, New Releases, Movers & Shakers, Most Wished For and Gift Ideas by list link or category, subcategories included, on 22 Amazon sites: rank, ASIN, title, price, rating, reviews, image, category path. Rank-change monitor. $0.31 per 1,000 products, no start fee.",
    "version": "0.1",
    "x-build-id": "BaW3fmMRk76fpFhsK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/topapi~amazon-bestsellers-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-topapi-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/topapi~amazon-bestsellers-scraper/runs": {
      "post": {
        "operationId": "runs-sync-topapi-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/topapi~amazon-bestsellers-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-topapi-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": {
          "categoryUrls": {
            "title": "Lists or categories",
            "type": "array",
            "description": "A ranking list link (e.g. https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics), a category slug or slug/node (\"electronics\", \"electronics/172541\") or a department name (\"Home & Kitchen\"). A link keeps its own marketplace.",
            "items": {
              "type": "string"
            }
          },
          "listTypes": {
            "title": "List types",
            "type": "array",
            "description": "Lists to read for every category. Empty = the list in each link (Best Sellers for names). Amazon currently shows Movers & Shakers, Most Wished For and Gift Ideas empty in most categories; empty lists are never charged.",
            "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"
              ]
            }
          },
          "marketplace": {
            "title": "Marketplace",
            "enum": [
              "amazon.com",
              "amazon.co.uk",
              "amazon.de",
              "amazon.fr",
              "amazon.it",
              "amazon.es",
              "amazon.nl",
              "amazon.se",
              "amazon.pl",
              "amazon.com.be",
              "amazon.ie",
              "amazon.com.tr",
              "amazon.ca",
              "amazon.com.mx",
              "amazon.com.br",
              "amazon.co.jp",
              "amazon.in",
              "amazon.com.au",
              "amazon.sg",
              "amazon.ae",
              "amazon.sa",
              "amazon.eg"
            ],
            "type": "string",
            "description": "Amazon site for category names and \"All departments\". Links always use their own site.",
            "default": "amazon.com"
          },
          "allDepartments": {
            "title": "All departments",
            "type": "boolean",
            "description": "Read the list of every top-level department of the marketplace (about 40 on amazon.com), on top of any links given.",
            "default": false
          },
          "depthOfCrawl": {
            "title": "Subcategory depth",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "1 = only the lists you give. 2 = also their direct subcategories, 3 = two levels down, up to 10 (every level). Each subcategory has its own top 100.",
            "default": 1
          },
          "maxCategories": {
            "title": "Max lists",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Most lists (categories x list types) one run reads. A department at depth 2 is ~20-40 lists; all of amazon.com at depth 3 is several thousand.",
            "default": 100
          },
          "language": {
            "title": "Language",
            "enum": [
              "auto",
              "en",
              "de",
              "fr",
              "it",
              "es",
              "nl",
              "sv",
              "pl",
              "tr",
              "pt",
              "ja",
              "ar",
              "zh",
              "hi",
              "cs"
            ],
            "type": "string",
            "description": "Language of titles and category names. Auto = the marketplace's own (German on amazon.de). Amazon falls back to its default when a site lacks the language.",
            "default": "auto"
          },
          "minRating": {
            "title": "Min stars",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep products rated at least this many stars (0-5). Products with no rating are dropped when set."
          },
          "minReviews": {
            "title": "Min ratings",
            "minimum": 0,
            "type": "integer",
            "description": "Keep products with at least this many ratings, e.g. 100."
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "number",
            "description": "Keep products priced at or above this, in the marketplace currency."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "number",
            "description": "Keep products priced at or below this, in the marketplace currency."
          },
          "dedupeAsins": {
            "title": "One row per product",
            "type": "boolean",
            "description": "A product ranked in several lists (a department and its subcategory) is delivered once, from the first list read.",
            "default": false
          },
          "detailedInformation": {
            "title": "Product details",
            "type": "boolean",
            "description": "Open each product page: brand, list price, availability, bought in past month, every Best Sellers Rank, date first available, bullets, description, images, variant ASINs. $0.001 per row that gets them.",
            "default": false
          },
          "monitorMode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "Remember each list between runs and add previousRank, rankChange, movement (new/up/down/same/dropped), firstSeenAt and daysOnChart.",
            "default": false
          },
          "monitorOutput": {
            "title": "Monitor delivers",
            "enum": [
              "new",
              "changes",
              "all"
            ],
            "type": "string",
            "description": "Which rows a monitored run delivers. The first run of a list delivers the whole list.",
            "default": "new"
          },
          "includeDroppedOut": {
            "title": "Dropped-out rows",
            "type": "boolean",
            "description": "Also deliver one row per product that left the list since the last run (movement \"dropped\", previousRank).",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store",
            "type": "string",
            "description": "Named key-value store that keeps the lists between runs. Use one name per schedule.",
            "default": "amazon-bestsellers-monitor"
          },
          "maxItemsPerStartUrl": {
            "title": "Products per list",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Top N of each list. Amazon ranks at most 100 per list (50 per page).",
            "default": 100
          },
          "maxItems": {
            "title": "Max products",
            "minimum": 0,
            "type": "integer",
            "description": "Most rows in the whole run. 0 = no limit (lists x products per list).",
            "default": 0
          },
          "compact": {
            "title": "Compact rows",
            "type": "boolean",
            "description": "Core fields only (rank, ASIN, title, link, price, stars, ratings, image, list, category) - trimmed for AI/MCP pipelines.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Requests go direct first, then Apify datacenter exits; this proxy is the last step, inside a small per-run budget. Your own proxy URLs are used for every request.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "maxConcurrency": {
            "title": "Parallel lists",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Lists (and product pages) fetched at the same time.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}