{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Product Scraper",
    "description": "Amazon scraper for product data: price, Buy Box seller, monthly sales, BSR, full specs, ratings, variants, seller offers and delivery dates by ZIP code. Search by keyword, ASIN, URL or Best Sellers list. A real run returned 10 products in 92 seconds, 60 fields each, ready for JSON, CSV or Excel.",
    "version": "1.0",
    "x-build-id": "UtQ2FLGp61Mslx4XV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~amazon-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-amazon-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/silentflow~amazon-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-amazon-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/silentflow~amazon-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-amazon-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": {
          "searches": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords to search for on Amazon (e.g. \"wireless headphones\", \"iphone case\"). Each query runs as a separate search.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Amazon marketplace",
            "enum": [
              "US",
              "UK",
              "DE",
              "FR",
              "ES",
              "IT",
              "JP",
              "CA",
              "AU",
              "IN",
              "BR",
              "MX",
              "NL",
              "SE",
              "PL",
              "BE",
              "SG"
            ],
            "type": "string",
            "description": "Which Amazon marketplace to search.",
            "default": "US"
          },
          "asins": {
            "title": "Product ASINs",
            "type": "array",
            "description": "Scrape specific products by ASIN (the 10-character Amazon product ID, e.g. B071S5NPG9). You can find it in the product URL after /dp/. Every ASIN of the list is returned, whatever the maximum results.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Amazon URLs",
            "type": "array",
            "description": "Scrape Amazon URLs directly: product pages (/dp/ASIN), search result pages (/s?k=...) and ranked lists (Best Sellers, New Releases, Movers & Shakers, Most Wished For, e.g. <code>https://www.amazon.com/gp/bestsellers/electronics</code>). The marketplace is detected from the URL domain.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "zipCode": {
            "title": "📍 Deliver to (ZIP or postal code)",
            "type": "string",
            "description": "Postal code of the delivery address on the chosen marketplace, e.g. <code>10001</code> (New York) on amazon.com or <code>10115</code> (Berlin) on amazon.de. Price, stock, Buy Box seller, shipping price and delivery dates are then those shown for this address. Leave empty for the marketplace's default address."
          },
          "language": {
            "title": "🗣️ Page language",
            "enum": [
              "en",
              "es",
              "de",
              "fr",
              "it",
              "nl",
              "pt",
              "sv",
              "pl",
              "tr",
              "cs",
              "da",
              "ja",
              "ko",
              "zh_CN",
              "zh_TW",
              "he",
              "ar",
              "hi",
              "ta",
              "te",
              "kn",
              "ml",
              "bn",
              "mr"
            ],
            "type": "string",
            "description": "Language of titles, descriptions and specifications, among those the marketplace offers (e.g. Spanish on amazon.com, English on amazon.de, French on amazon.ca). Leave empty for the marketplace's own language."
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of products returned from searches, search URLs and ranked lists. Products you list by ASIN or product URL are always all returned.",
            "default": 50
          },
          "includeDetails": {
            "title": "Include full product details",
            "type": "boolean",
            "description": "Fetch each product's detail page for richer data: Buy Box seller, specifications, monthly sales, delivery dates, AI review summary, BSR ranking, variants, A+ content and all images. Disable for faster results with basic data only (title, price, rating, image, monthly sales).",
            "default": true
          },
          "maxOffers": {
            "title": "🏷️ Seller offers per product",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Also return the offers of other sellers for each product (price, condition, seller, seller rating, ships from, shipping price, delivery date), up to this number. <code>0</code> returns none. Needs full product details.",
            "default": 0
          },
          "maxVariants": {
            "title": "🎨 Variants as separate rows",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Also return up to this number of variants (sizes, colors, styles) of each product as rows of their own, with their price, stock and details. Their prices are added to the product's variant list. <code>0</code> returns none. Needs full product details.",
            "default": 0
          },
          "sort": {
            "title": "Sort results by",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc",
              "avg_review",
              "newest"
            ],
            "type": "string",
            "description": "How to order search results. Only applies to keyword searches.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "Only return products priced at or above this value."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "Only return products priced at or below this value."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}