{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Best Sellers Scraper — Top 100, New Releases — $5.5/1k",
    "description": "Amazon Best Sellers and New Releases scraper: top 100 per category and subcategory on 13 marketplaces, bulk URLs, product details add-on, new-entrant monitor. No login or cookies. MCP-ready for AI agents. $5.5 per 1,000 records.",
    "version": "1.0",
    "x-build-id": "YrlMtaWDi2t0HMydG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/velvety_bedbug~amazon-bestsellers-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-velvety_bedbug-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/velvety_bedbug~amazon-bestsellers-scraper/runs": {
      "post": {
        "operationId": "runs-sync-velvety_bedbug-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/velvety_bedbug~amazon-bestsellers-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-velvety_bedbug-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": "Category URLs (bulk)",
            "type": "array",
            "description": "Amazon Best Sellers or New Releases URLs, e.g. https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics/ or https://www.amazon.de/gp/new-releases/kitchen/3167641/. Category slugs like electronics/281407 also work. The Amazon site is taken from each URL.",
            "items": {
              "type": "string"
            }
          },
          "listUrl": {
            "title": "List URL (CSV or Google Sheet)",
            "type": "string",
            "description": "Optional link to a CSV file or a Google Sheet shared as \"anyone with the link\" with one category URL or slug per row (first column)."
          },
          "listTypes": {
            "title": "Charts",
            "type": "array",
            "description": "Charts to scrape for every category. Empty = the chart in each URL (or the List field). Most Wished For and Gift Ideas are currently rendered client-side by Amazon and come back empty.",
            "items": {
              "type": "string",
              "enum": [
                "bestsellers",
                "new-releases",
                "most-wished-for",
                "gift-ideas"
              ],
              "enumTitles": [
                "Best Sellers",
                "New Releases",
                "Most Wished For",
                "Gift Ideas (Most Gifted)"
              ]
            }
          },
          "depthOfCrawl": {
            "title": "Subcategory depth",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "0 = only the given categories. 1 = also every direct subcategory, 2 = their subcategories too, up to 3. Each subcategory has its own top 100.",
            "default": 0
          },
          "category": {
            "title": "Category (single, legacy)",
            "type": "string",
            "description": "Category slug or node ID from the Best Sellers URL, e.g. electronics, books, beauty, toys-and-games, or electronics/172282. Leave empty for the all-departments list. Used only when Category URLs and List URL are empty.",
            "default": "electronics"
          },
          "listType": {
            "title": "List (single)",
            "enum": [
              "bestsellers",
              "new-releases",
              "most-wished-for",
              "most-gifted"
            ],
            "type": "string",
            "description": "Which Amazon chart to scrape.",
            "default": "bestsellers"
          },
          "domain": {
            "title": "Amazon site",
            "enum": [
              "com",
              "co.uk",
              "de",
              "fr",
              "it",
              "es",
              "ca",
              "com.au",
              "co.jp",
              "in",
              "com.mx",
              "nl",
              "se"
            ],
            "type": "string",
            "description": "Amazon marketplace for category slugs (URLs carry their own site).",
            "default": "com"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Optional Amazon language code, e.g. es_US on amazon.com or en_GB on amazon.de. Leave empty for the site default."
          },
          "detailedInformation": {
            "title": "Product details",
            "type": "boolean",
            "description": "Open each product page to add brand, manufacturer, model, list price, availability, Best Sellers Rank in every category, dimensions, weight, date first available, bullet points, variant count and the full details table. Extra charge per product (Product details event).",
            "default": false
          },
          "onlyNew": {
            "title": "Only new chart entries (monitor)",
            "type": "boolean",
            "description": "Remember products between runs and return only ones that newly entered each chart under the same Monitor ID. Schedule daily to track new entrants.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Name of the saved state for Only new chart entries."
          },
          "maxItems": {
            "title": "Max products (total)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum products across all categories and charts.",
            "default": 10
          },
          "maxItemsPerCategory": {
            "title": "Max products per category",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Cap per category chart (each chart has up to 100). Alias: maxItemsPerStartUrl.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Residential proxy is required.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}