{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Keyword Scraper",
    "description": "Amazon Keyword Scraper gets Amazon search-box keyword suggestions in bulk for 10 marketplaces: seed, a-z, a-z + 0-9 or custom expansion, department filter, rank, suggestion type and metadata for every long-tail keyword. Export JSON, CSV or Excel, or use the API.",
    "version": "0.1",
    "x-build-id": "PqgIQiAUbjqkNStsU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fastdataapi~amazon-keyword-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fastdataapi-amazon-keyword-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/fastdataapi~amazon-keyword-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fastdataapi-amazon-keyword-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/fastdataapi~amazon-keyword-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fastdataapi-amazon-keyword-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",
        "required": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "🔎 Keywords",
            "type": "array",
            "description": "Seed keywords to expand, one per line (e.g. \"laptop stand\"). Each keyword runs on its own in every chosen marketplace; duplicates are removed (case-insensitive).",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "🔢 Max suggestions per keyword",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum suggestion rows per keyword in each marketplace. A keyword ends earlier when its expansion has no more suggestions (a-z usually gives up to about 490). Free plan: up to 20 suggestions per run (all keywords together) and 200 per month; paid plans have no limit.",
            "default": 20
          },
          "marketplace": {
            "title": "📍 Marketplace",
            "enum": [
              "US",
              "CA",
              "UK",
              "DE",
              "FR",
              "IT",
              "ES",
              "IN",
              "AU",
              "JP"
            ],
            "type": "string",
            "description": "Amazon store to get suggestions from. Ignored when Marketplaces below has any value.",
            "default": "US"
          },
          "marketplaces": {
            "title": "📍 Marketplaces",
            "type": "array",
            "description": "Several Amazon stores in one run; every keyword is expanded in each of them. Overrides Marketplace when set.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "CA",
                "UK",
                "DE",
                "FR",
                "IT",
                "ES",
                "IN",
                "AU",
                "JP"
              ],
              "enumTitles": [
                "United States (amazon.com)",
                "Canada (amazon.ca)",
                "United Kingdom (amazon.co.uk)",
                "Germany (amazon.de)",
                "France (amazon.fr)",
                "Italy (amazon.it)",
                "Spain (amazon.es)",
                "India (amazon.in)",
                "Australia (amazon.com.au)",
                "Japan (amazon.co.jp)"
              ]
            }
          },
          "alias": {
            "title": "🎯 Department",
            "type": "string",
            "description": "Amazon search department to limit suggestions to: aps = all departments; e.g. stripbooks (books), electronics, grocery, fashion, toys-and-games.",
            "default": "aps"
          },
          "expansionMode": {
            "title": "🔧 Expansion mode",
            "enum": [
              "seed",
              "a-z",
              "a-z-0-9",
              "custom"
            ],
            "type": "string",
            "description": "seed = only the keyword itself (up to 10 suggestions). a-z = the keyword plus every letter after and before it (\"laptop stand a\", \"a laptop stand\"). a-z-0-9 = the same with digits too. custom = the keyword followed by each of your custom suffixes.",
            "default": "a-z"
          },
          "customSuffixes": {
            "title": "🔧 Custom suffixes",
            "type": "array",
            "description": "Used with expansion mode custom: each is added after the keyword (\"laptop stand\" + \"for desk\"). Every suffix is queried; with an empty list only the keyword itself is queried.",
            "items": {
              "type": "string"
            }
          },
          "maxSuggestionsPerPrefix": {
            "title": "🔢 Max suggestions per query",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many of Amazon's suggestions to keep from each query, 1-10 (Amazon shows at most 10).",
            "default": 10
          },
          "maxPrefixes": {
            "title": "🔢 Max expanded queries",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum expanded queries (e.g. \"laptop stand a\") per keyword in each marketplace, not counting the keyword itself. 0 = no cap.",
            "default": 0
          },
          "dedupeSuggestions": {
            "title": "✅ Remove duplicate suggestions",
            "type": "boolean",
            "description": "On: each suggestion appears once per keyword and marketplace. Off: a row each time a different expanded query returns it (shows which queries surface it).",
            "default": true
          },
          "requestDelayMs": {
            "title": "⏳ Delay between queries (ms)",
            "minimum": 0,
            "type": "integer",
            "description": "Pause before each query, in milliseconds. 0 = as fast as possible.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy configuration",
            "type": "object",
            "description": "Proxy to start with. By default no proxy is used; when Amazon blocks a query the run moves to a datacenter and then a residential proxy on its own."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}