{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Search Results Scraper & Keyword Rank Tracker",
    "description": "Amazon search results for any keyword or search link on 22 Amazon stores: ASIN, title, price, list price, rating, ratings count, sponsored flag, organic rank, bought in past month, badges, delivery, images. Filters, ship-to zip, ASIN rank tracking, optional product pages. Misses free.",
    "version": "0.1",
    "x-build-id": "codUmfpnKfpHiyXzb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~amazon-search-results-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-amazon-search-results-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/hyperbach~amazon-search-results-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-amazon-search-results-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/hyperbach~amazon-search-results-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-amazon-search-results-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": {
          "keywords": {
            "title": "Keywords",
            "maxItems": 1000,
            "type": "array",
            "description": "What you would type in Amazon's search box, one search per line, in any language and script. A product code (UPC, EAN, GTIN or ISBN) works too: the row then says whether the first product's page shows that code. An Amazon link typed here is read as a link.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Amazon search or category links",
            "maxItems": 1000,
            "type": "array",
            "description": "Links of Amazon search pages (`/s?k=…`), category pages (`/b?node=…`, `/s?rh=n:…`) or short links (amzn.to, a.co, amzn.eu) of any of the 22 stores. Amazon's own filter names in the link are kept; tracking names (ref, crid, qid, tag, …) are dropped and listed on the search row. A product page (`/dp/…`) is not a search: it gets a free row.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "marketplace": {
            "title": "Amazon store",
            "enum": [
              "us",
              "uk",
              "de",
              "fr",
              "es",
              "it",
              "ca",
              "au",
              "jp",
              "in",
              "mx",
              "br",
              "nl",
              "se",
              "pl",
              "ae",
              "sa",
              "sg",
              "tr",
              "eg",
              "be",
              "ie"
            ],
            "type": "string",
            "description": "The store your keywords are searched on. Each store is read from an exit in its own country, so prices come in its own currency and language. Links in searchUrls keep their own store.",
            "default": "us"
          },
          "maxResultsPerKeyword": {
            "title": "Max results per search",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "The most result rows of each keyword or link. Amazon's own list ends near page 20 (about 300 results); the search row says when it ended first. 0 = to the end of the list.",
            "default": 50
          },
          "maxItems": {
            "title": "Max results (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most charged rows of the whole run; 0 = no cap beyond the per-search cap and your charge limit.",
            "default": 0
          },
          "startPage": {
            "title": "Start at page",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "The first results page to read (1 = the top of the list).",
            "default": 1
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "price-asc",
              "price-desc",
              "rating",
              "newest",
              "bestselling"
            ],
            "type": "string",
            "description": "Amazon's own sort orders.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "In the store's own currency. Sent to Amazon as its price filter, and checked on every card: a card priced outside the range, or with no price, is left out and not charged."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "In the store's own currency; checked on every card as minPrice is."
          },
          "minRating": {
            "title": "Minimum star rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "1 to 5. 4 uses Amazon's own \"4 Stars & Up\" filter of the store; every value is checked on the card's rating, and a card below it or with no rating is left out and not charged."
          },
          "minReviews": {
            "title": "Minimum number of ratings",
            "minimum": 0,
            "type": "integer",
            "description": "Cards with fewer ratings (or none shown) are left out and not charged."
          },
          "excludeSponsored": {
            "title": "Leave out sponsored results",
            "type": "boolean",
            "description": "Sponsored cards are left out and not charged; the search row still counts them.",
            "default": false
          },
          "department": {
            "title": "Department",
            "pattern": "^$|^[A-Za-z0-9-]{2,40}$",
            "type": "string",
            "description": "Amazon's own search index name, as in its links' `i=` (electronics, stripbooks, fashion, beauty, …)."
          },
          "categoryNode": {
            "title": "Category (browse node)",
            "type": "string",
            "description": "A browse node number (the `node=` of an Amazon category link). Without keywords, the category's own listing is read."
          },
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "Amazon's brand filter. Where the card shows its brand (clothing and shoes), it is checked on the card too.",
            "items": {
              "type": "string"
            }
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used",
              "renewed"
            ],
            "type": "string",
            "description": "Amazon's condition filter of the store. A store whose own filter panel has no such choice (amazon.ie has none) gets a free row that says so.",
            "default": "any"
          },
          "zipCode": {
            "title": "Ship-to postal code",
            "type": "string",
            "description": "Prices, delivery dates and stock as Amazon shows them for this postal code. Set once a store a run, and checked on every page: a page that does not show it is read again on another exit and never charged. nl, com.be, ae, sa and eg set a location only for signed-in customers and are read at their default."
          },
          "deliveryCountry": {
            "title": "Ship-to country (amazon.com)",
            "pattern": "^$|^[A-Za-z]{2}$",
            "type": "string",
            "description": "A two-letter country code: amazon.com's prices and delivery for shipping to that country, import charges included where Amazon shows them."
          },
          "language": {
            "title": "Page language",
            "pattern": "^$|^[a-z]{2}[_-][A-Z]{2}$",
            "type": "string",
            "description": "The language of the store's pages, as Amazon names it (es_US on amazon.com, fr_CA on amazon.ca, ar_AE on amazon.ae, nl_BE on amazon.com.be). Empty: the store's own. Every page is checked for it."
          },
          "trackAsins": {
            "title": "Track these ASINs",
            "type": "array",
            "description": "Product ASINs to find in each search: the search row gives each one's page, position, organic position and sponsored flag, or \"not found\" in the pages read.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Add each product's page",
            "type": "boolean",
            "description": "Reads each result's product page and adds it to the row as `details` (description, bullets, Best Sellers rank, seller, specs, Amazon's review summary, images, videos), the same fields as our Amazon Product Details Scraper. One more page a row, charged as its own event only on rows that carry the full page.",
            "default": false
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "maxLength": 2000,
            "type": "string",
            "description": "A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}