{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Keyword Suggestions Scraper - Autocomplete, Long Tail",
    "description": "[💰$0.05/1K] Amazon keyword suggestions scraper for Amazon SEO and PPC: expand one seed keyword into long-tail autocomplete phrases on 11 marketplaces. Returns phrase, seed, prefix, position, prefixCount, score and request URL. No proxy, no API key, no login.",
    "version": "0.3",
    "x-build-id": "r37HQXeK19ZCCqLDM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ai-lead-gen-tools~amazon-keywords/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ai-lead-gen-tools-amazon-keywords",
        "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/ai-lead-gen-tools~amazon-keywords/runs": {
      "post": {
        "operationId": "runs-sync-ai-lead-gen-tools-amazon-keywords",
        "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/ai-lead-gen-tools~amazon-keywords/run-sync": {
      "post": {
        "operationId": "run-sync-ai-lead-gen-tools-amazon-keywords",
        "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": [
          "seeds"
        ],
        "properties": {
          "seeds": {
            "title": "Seed keywords",
            "minItems": 1,
            "type": "array",
            "description": "Seed phrases to expand. Each seed is queried on its own and its suggestions are kept apart, so rows from different seeds never mix.",
            "items": {
              "type": "string"
            }
          },
          "marketplace": {
            "title": "Marketplace",
            "enum": [
              "US",
              "UK",
              "DE",
              "FR",
              "IT",
              "ES",
              "CA",
              "MX",
              "BR",
              "JP",
              "AU"
            ],
            "type": "string",
            "description": "Amazon storefront to query. The storefront decides both the domain and the marketplace id, and the two are not interchangeable: the same prefix returns different suggestions per storefront. How many suggestions come back depends on the seed phrase, not only on its language: a phrase popular on this storefront fills the response, a phrase unknown there returns few or none. That is not an error — the run returns fewer rows and the summary shows the counts.",
            "default": "US"
          },
          "alias": {
            "title": "Department alias",
            "type": "string",
            "description": "Department the suggestions are taken from, as Amazon names it. `aps` is the whole store and is what you almost always want. Other values such as electronics, fashion, grocery, kitchen or computers narrow the response: on a test prefix `aps` returned ten suggestions where those returned one, and music returned none. Leave it as aps unless you specifically need a department.",
            "default": "aps"
          },
          "expansionMode": {
            "title": "Expansion mode",
            "enum": [
              "seed",
              "a-z",
              "a-z-0-9",
              "custom"
            ],
            "type": "string",
            "description": "How far to expand each seed. `seed` queries the seed alone, one request. `a-z` adds 26 letters, 27 requests. `a-z-0-9` adds digits too, 37 requests. `custom` uses the suffixes you list below. One request returns at most ten suggestions, so expansion is the only way to get past ten phrases per seed.",
            "default": "a-z"
          },
          "customSuffixes": {
            "title": "Custom suffixes",
            "type": "array",
            "description": "Suffixes appended to every seed as a space plus the suffix, one per request. Used only when expansion mode is custom. The bare seed is always queried first, so there is no need to list an empty string. Duplicates and blanks are dropped. Example: [\"for men\", \"for women\", \"cheap\"].",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxPrefixes": {
            "title": "Max prefixes per seed",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on requests per seed, counted after expansion. Set 0 for no cap. Useful for keeping a custom suffix list or a large seed list inside a time budget.",
            "default": 52
          },
          "maxSuggestionsPerPrefix": {
            "title": "Max suggestions per prefix",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Cap on rows taken from one response. Amazon returns at most ten, so the default changes nothing; raise it only if you know a storefront returns more.",
            "default": 10
          },
          "dedupeSuggestions": {
            "title": "Deduplicate suggestions",
            "type": "boolean",
            "description": "On by default: one row per unique phrase per seed, with the number of distinct prefixes that returned it as a relative popularity signal. Turn it off to get one row per phrase and prefix pair, which keeps every position but loses the score.",
            "default": true
          },
          "requestDelayMs": {
            "title": "Delay between requests",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Pause in milliseconds before each request. The endpoint answered 180 back-to-back requests without a single failure in testing, so this is politeness rather than a limit. Raising it slows the run proportionally.",
            "default": 100
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 5,
            "maximum": 180,
            "type": "integer",
            "description": "Timeout of one HTTP request in seconds.",
            "default": 30
          },
          "runBudgetSecs": {
            "title": "Run budget",
            "minimum": 30,
            "maximum": 3600,
            "type": "integer",
            "description": "Soft time budget for the whole run, in seconds. The run stops requesting new prefixes before the platform timeout, keeps the rows it already has and reports the budget as exhausted in the summary. Leave empty to use the whole platform allowance."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}