{
  "openapi": "3.0.1",
  "info": {
    "title": "Keyword Research Tool: Google, YouTube, Amazon Autocomplete",
    "description": "Find thousands of long-tail keywords from 7 autocomplete engines: Google, YouTube, Google Shopping, Bing, DuckDuckGo, Amazon, eBay. A-Z, question, preposition and buyer-intent expansion, depth 1-3, 8 countries. Ranked by engine count. $0.30 per 1,000 keywords.",
    "version": "1.0",
    "x-build-id": "qRogKTA4KXcnnQIip"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/1stbtln~keyword-autocomplete-expander/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-1stbtln-keyword-autocomplete-expander",
        "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/1stbtln~keyword-autocomplete-expander/runs": {
      "post": {
        "operationId": "runs-sync-1stbtln-keyword-autocomplete-expander",
        "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/1stbtln~keyword-autocomplete-expander/run-sync": {
      "post": {
        "operationId": "run-sync-1stbtln-keyword-autocomplete-expander",
        "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": "Seed keywords",
            "type": "array",
            "description": "One seed per line, e.g. running shoes, crm software.",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Autocomplete sources",
            "type": "array",
            "description": "Which engines to query.",
            "items": {
              "type": "string",
              "enum": [
                "google",
                "youtube",
                "googleShopping",
                "bing",
                "duckduckgo",
                "amazon",
                "ebay"
              ],
              "enumTitles": [
                "Google",
                "YouTube",
                "Google Shopping",
                "Bing",
                "DuckDuckGo",
                "Amazon",
                "eBay"
              ]
            },
            "default": [
              "google",
              "youtube",
              "bing",
              "amazon"
            ]
          },
          "expansion": {
            "title": "Expansion modes",
            "type": "array",
            "description": "How to expand each seed. alphabet = 'seed a'…'seed z'; alphabetPrefix = 'a seed'…; questions = how/what/why… seed; prepositions = seed for/with/vs…; commercial = best/cheap/review/price…",
            "items": {
              "type": "string",
              "enum": [
                "alphabet",
                "alphabetPrefix",
                "numbers",
                "questions",
                "prepositions",
                "commercial"
              ],
              "enumTitles": [
                "A–Z suffix",
                "A–Z prefix",
                "0–9 suffix",
                "Questions",
                "Prepositions",
                "Buyer intent"
              ]
            },
            "default": [
              "alphabet",
              "questions"
            ]
          },
          "depth": {
            "title": "Depth",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "1 = expand seeds only. 2–3 = also expand discovered keywords (much bigger output).",
            "default": 1
          },
          "country": {
            "title": "Country",
            "enum": [
              "us",
              "uk",
              "ca",
              "au",
              "de",
              "fr",
              "es",
              "it"
            ],
            "type": "string",
            "description": "Market for suggestions (also selects the Amazon/eBay marketplace).",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Two-letter language code, e.g. en, de, fr, es.",
            "default": "en"
          },
          "maxKeywords": {
            "title": "Max keywords",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many unique keywords (also capped by your max cost per run).",
            "default": 2000
          },
          "mustContainSeed": {
            "title": "Keywords must contain the seed words",
            "type": "boolean",
            "description": "Drop suggestions that don't include every word of the seed.",
            "default": false
          },
          "excludeWords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Drop keywords containing any of these.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "dedupeAcrossSources": {
            "title": "Merge duplicates across sources",
            "type": "boolean",
            "description": "One row per keyword with a list of every engine that suggested it (recommended). Off = one row per keyword per source.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Concurrent autocomplete requests.",
            "default": 6
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}