{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Product Scraper API - ASINs, Reviews & Price Tracker",
    "description": "Amazon products, search and ranked lists with marketplace-aware prices, ASINs, ratings, public reviews, sellers, offers, A+ content, variants and price snapshot comparisons. Streams unique results and respects combined result/detail spending limits. No browser or login.",
    "version": "0.2",
    "x-build-id": "mluZg7x8K7uBNuKWW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/trakk~amazon-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-trakk-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/trakk~amazon-scraper/runs": {
      "post": {
        "operationId": "runs-sync-trakk-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/trakk~amazon-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-trakk-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": {
          "scrapeMode": {
            "title": "⚡ Collection mode",
            "enum": [
              "fast",
              "full"
            ],
            "type": "string",
            "description": "Fast collects fields published on search/category/ranked-list cards. Full opens each selected product for descriptions, specifications, images, variants and visible reviews. Direct product links and ASINs always return full products at the existing full-product price."
          },
          "startUrls": {
            "title": "🔗 Amazon links or ASINs",
            "type": "array",
            "description": "One product link, ASIN, search/category link or ranked-list link per line. Mix input types and marketplaces. URLs retain their own marketplace and search filters; bare ASINs use Marketplace below. a.co and amzn.to product links are accepted.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "🔎 Search keywords",
            "type": "array",
            "description": "One literal search phrase per line. Searches Marketplace below; commas are not split into extra searches. Can be combined with Amazon links or ASINs.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "🌍 Marketplace",
            "enum": [
              "us",
              "uk",
              "de",
              "fr",
              "es",
              "it",
              "ca",
              "in",
              "mx",
              "br",
              "nl",
              "jp",
              "au",
              "ae",
              "sa",
              "sg",
              "se",
              "pl",
              "tr"
            ],
            "type": "string",
            "description": "Marketplace for bare ASINs and keyword searches. Explicit product, search and ranked-list URLs keep their own marketplace. Source availability and delivery eligibility vary by marketplace.",
            "default": "us"
          },
          "maxItems": {
            "title": "🔢 Maximum saved products",
            "minimum": 0,
            "type": "integer",
            "description": "Total unique saved product/card rows across the whole run, including optional variant rows. Duplicates and rejected candidates do not consume this limit. 0 means no global result cap; source/page/spending limits still apply.",
            "default": 0
          },
          "sortBy": {
            "title": "Sort results",
            "enum": [
              "relevance",
              "price_low",
              "price_high",
              "rating",
              "newest"
            ],
            "type": "string",
            "description": "Order for keyword searches. Pasted search URLs retain their own order and source filters. Price, rating and sponsored filters below apply to discovered search/category/ranked-list products; direct product inputs are kept.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "Keep only search products at or above this price."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "Keep only search products at or below this price."
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 1,
            "maximum": 5,
            "type": "number",
            "description": "Keep only products rated at least this many stars."
          },
          "excludeSponsored": {
            "title": "Hide sponsored products",
            "type": "boolean",
            "description": "Exclude cards with an explicit sponsored label. Source positions and organic positions are retained.",
            "default": false
          },
          "includeReviews": {
            "title": "💬 Include reviews",
            "type": "boolean",
            "description": "Include review texts published on full product pages. Fast listing cards have no review texts. This does not unlock sign-in-only review history.",
            "default": true
          },
          "includeSellerDetails": {
            "title": "🏪 Public seller business profile",
            "type": "boolean",
            "description": "For full product records, read the linked buy-box seller profile once per seller in this run. Business name, address, phone, email or VAT are included only when published. Amazon retail has no third-party profile.",
            "default": false
          },
          "maxOffersPerProduct": {
            "title": "🛒 Seller offers per product",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "For full product records, fetch up to this many public offers, with price, condition, seller and delivery. 0 disables offer requests. No separate offer event is added.",
            "default": 0
          },
          "maxVariants": {
            "title": "🎨 Additional variant product rows",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Additional child ASIN product pages per saved root product. Each unique delivered variant is a normal full product row and uses existing result + detail events. Global result and spending limits still apply.",
            "default": 0
          },
          "postalCode": {
            "title": "📍 Delivery ZIP / postal code",
            "type": "string",
            "description": "Optional delivery area, applied through Amazon’s guest location selector and verified on the returned page. Use separate runs for different countries/postcodes. A rejected area is reported rather than silently substituted."
          },
          "trackingKey": {
            "title": "📈 Price snapshot name",
            "type": "string",
            "description": "Optional name for comparing fresh results with your own previous run. Adds previous price, price/rating/review-count changes and stock changes within the same marketplace, currency, seller and delivery context. No continuous polling loop or schedule is created."
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "The default suits most runs. Existing custom proxy settings remain supported.",
            "default": {
              "useApifyProxy": true
            }
          },
          "searchDeep": {
            "title": "🧬 Deep search",
            "type": "boolean",
            "description": "Visit each search result's product page for complete data (specs, images, reviews). Slower and pulls more per result."
          },
          "maxSearchResults": {
            "title": "Max results per keyword",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Cap on products returned per search keyword."
          },
          "maxPagesPerSearch": {
            "title": "Max search pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many result pages to page through per keyword."
          },
          "minReviews": {
            "title": "🗳️ Min review count",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only products with at least this many ratings."
          },
          "maxConcurrency": {
            "title": "⚡ Concurrency",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "How many pages to scrape in parallel."
          },
          "maxRetries": {
            "title": "🔁 Retries per page",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "Additional bounded attempts after the first request. US defaults to 14, other markets to 30 when omitted. Not-found and sign-in-required pages do not trigger proxy rotation. Repeated blocked pages can retire a source for this run."
          },
          "selfTest": {
            "title": "🩺 Self-test",
            "type": "boolean",
            "description": "Scrape a known product and verify Amazon still works — fails the run if the layout/anti-bot changed. For scheduled monitoring."
          },
          "maxListResults": {
            "title": "Max results per ranked list",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Saved unique products per list input. Duplicates and filtered products do not spend this allowance."
          },
          "maxPagesPerList": {
            "title": "Max ranked-list pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Source pagination cap. Desktop lazy batches belong to their parent page."
          },
          "listDeep": {
            "title": "🧬 Full details for ranked lists",
            "type": "boolean",
            "description": "Visit selected list products for full detail records. Each delivered full product uses the existing product-detail event in addition to the result-row event."
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Timeout for one HTTP request; retries remain bounded separately."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}