{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Search Scraper API – Keyword Rank Tracker, $0.40/1K",
    "description": "Amazon product scraper for search results by keyword, 22 marketplaces: organic rank, sponsored products (ads) rank, ASIN, price, rating, reviews, bought past month. Track your ASINs' keyword rank. No login. $0.40/1K results, 500 free monthly.",
    "version": "0.2",
    "x-build-id": "l9p9ANYL3yG13R6il"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/k-data-lab~amazon-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-k-data-lab-amazon-search-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/k-data-lab~amazon-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-k-data-lab-amazon-search-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/k-data-lab~amazon-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-k-data-lab-amazon-search-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": "🔎 Search keywords",
            "type": "array",
            "description": "What a shopper types in the Amazon search box, one per line, e.g. \"wireless earbuds\" or \"iphone 17 case\". Each keyword is searched on every marketplace you pick below.",
            "items": {
              "type": "string"
            }
          },
          "marketplaces": {
            "title": "🌍 Marketplaces",
            "type": "array",
            "description": "One or more Amazon stores. Every keyword is searched on each of them (2 keywords × 3 marketplaces = 6 searches). Prices come in the store's own currency.",
            "items": {
              "type": "string",
              "enum": [
                "com",
                "co.uk",
                "de",
                "fr",
                "it",
                "es",
                "ca",
                "com.mx",
                "com.br",
                "co.jp",
                "in",
                "com.au",
                "nl",
                "pl",
                "se",
                "com.be",
                "ie",
                "com.tr",
                "ae",
                "sa",
                "eg",
                "sg"
              ],
              "enumTitles": [
                "United States (amazon.com)",
                "United Kingdom (amazon.co.uk)",
                "Germany (amazon.de)",
                "France (amazon.fr)",
                "Italy (amazon.it)",
                "Spain (amazon.es)",
                "Canada (amazon.ca)",
                "Mexico (amazon.com.mx)",
                "Brazil (amazon.com.br)",
                "Japan (amazon.co.jp)",
                "India (amazon.in)",
                "Australia (amazon.com.au)",
                "Netherlands (amazon.nl)",
                "Poland (amazon.pl)",
                "Sweden (amazon.se)",
                "Belgium (amazon.com.be)",
                "Ireland (amazon.ie)",
                "Turkey (amazon.com.tr)",
                "UAE (amazon.ae)",
                "Saudi Arabia (amazon.sa)",
                "Egypt (amazon.eg)",
                "Singapore (amazon.sg)"
              ]
            },
            "default": [
              "com"
            ]
          },
          "searchUrls": {
            "title": "🔗 Amazon search URLs (optional)",
            "type": "array",
            "description": "Paste search result links copied from your browser, with any department, brand or filter you picked on Amazon, e.g. https://www.amazon.com/s?k=yoga+mat&i=sporting or https://www.amazon.de/s?k=handyhülle&rh=p_72%3A419122031. The marketplace comes from the link. Tracking parameters (ref, crid, qid) are dropped.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "↕️ Sort by",
            "enum": [
              "relevance",
              "price-asc",
              "price-desc",
              "reviews",
              "newest",
              "best-sellers"
            ],
            "type": "string",
            "description": "Amazon's own sort options. Keep \"Featured\" to see the ranking shoppers see, which is what keyword rank tracking measures.",
            "default": "relevance"
          },
          "department": {
            "title": "🗂️ Department (search alias)",
            "type": "string",
            "description": "Optional. Limit the search to one department with Amazon's search alias, the i= value in a search URL: electronics, beauty, fashion, hpc (health), kitchen, toys-and-games, sporting, automotive, pets, stripbooks (books), office-products, tools, baby-products, grocery. Leave empty for All Departments."
          },
          "minPrice": {
            "title": "💲 Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Whole number in the marketplace's currency (Amazon's low-price filter)."
          },
          "maxPrice": {
            "title": "💲 Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Whole number in the marketplace's currency (Amazon's high-price filter)."
          },
          "maxResultsPerSearch": {
            "title": "Max results per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many products to return per keyword and marketplace, organic and sponsored together. Amazon shows 16–60 products per page and at most 20 pages (often only 7), so a search ends at about 300 products.",
            "default": 50
          },
          "maxPagesPerSearch": {
            "title": "Max pages per search",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Safety cap on result pages per search. Page 1 is what most shoppers see; rank tracking usually needs 1–3 pages.",
            "default": 20
          },
          "includeSponsored": {
            "title": "📣 Include sponsored products",
            "type": "boolean",
            "description": "Keep the \"Sponsored\" product ads in the results, each with its own sponsoredRank. Turn off to get (and pay for) organic results only; organic ranks stay the same either way.",
            "default": true
          },
          "trackAsins": {
            "title": "🎯 Your ASINs to track",
            "type": "array",
            "description": "Optional. ASINs or product links you want to find in these searches (yours or competitors'). For each search you get one free TRACKED_ASIN row per ASIN: organic rank, sponsored rank and page, or NOT_FOUND within the pages scanned.",
            "items": {
              "type": "string"
            }
          },
          "trackRankChanges": {
            "title": "📈 Track rank changes",
            "type": "boolean",
            "description": "Remember each search's ranks and add previousRank, rankChange (+3 = climbed 3 places) and isNewEntry compared with your previous run of the same search. Schedule the actor daily to monitor keywords. The ranks are stored in your own Apify storage, never shared.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}