{
  "openapi": "3.0.1",
  "info": {
    "title": "Keyword Autocomplete Scraper: Google, YouTube, Bing",
    "description": "Keyword suggestions from Google, YouTube, Google Shopping, Images, News and Bing autocomplete in one run. A to Z, 0 to 9, question and modifier expansion, depth up to 3, dedupe, relevance scores. No login.",
    "version": "1.0",
    "x-build-id": "zo9ODlvWmnjWPaMxh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zhtech~keyword-autocomplete-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zhtech-keyword-autocomplete-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/zhtech~keyword-autocomplete-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zhtech-keyword-autocomplete-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/zhtech~keyword-autocomplete-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zhtech-keyword-autocomplete-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": "Seed keywords",
            "type": "array",
            "description": "One seed keyword or phrase per line, for example: coffee maker, best running shoes, how to learn python. Every seed is typed into each selected engine's search box, plus the expansions you turn on below. If you leave the field out entirely (API input {}), the example seed coffee maker is used.",
            "default": [
              "coffee maker"
            ],
            "items": {
              "type": "string"
            }
          },
          "engines": {
            "title": "Engines",
            "type": "array",
            "description": "Which autocomplete sources to query. Google, YouTube, Google Shopping, Google Images and Google News use Google's public suggest endpoint (up to 15 suggestions per query, with Google's relevance score). Bing uses Bing's public suggestion endpoint (up to about 14 per query). Amazon, DuckDuckGo and eBay are not offered because their robots.txt disallows automated access to their autocomplete.",
            "items": {
              "type": "string",
              "enum": [
                "google",
                "youtube",
                "google-shopping",
                "google-images",
                "google-news",
                "bing"
              ],
              "enumTitles": [
                "Google (web search)",
                "YouTube",
                "Google Shopping",
                "Google Images",
                "Google News",
                "Bing"
              ]
            },
            "default": [
              "google"
            ]
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "2 letter country code: us, gb, ca, au, in, de, fr, es, it, br, mx, jp and so on. Sent as gl (Google) and as the market (Bing).",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language code: en, es, de, fr, pt, it, ja, ko, zh-cn, pt-br and so on. Sent as hl (Google) and as the market language (Bing).",
            "default": "en"
          },
          "expandQuestions": {
            "title": "Question expansion",
            "type": "boolean",
            "description": "Also type each question word in front of the seed: \"how coffee maker\", \"what coffee maker\", \"best coffee maker\" and so on. Finds questions and FAQ ideas.",
            "default": false
          },
          "questionPrefixes": {
            "title": "Question words (before the seed)",
            "type": "array",
            "description": "Words typed before the seed when question expansion is on. Edit freely, for example add \"top\" or \"cheap\".",
            "default": [
              "how",
              "what",
              "why",
              "when",
              "where",
              "which",
              "who",
              "can",
              "is",
              "are",
              "does",
              "best"
            ],
            "items": {
              "type": "string"
            }
          },
          "expandModifiers": {
            "title": "Modifier expansion",
            "type": "boolean",
            "description": "Also type the seed followed by each modifier: \"coffee maker vs\", \"coffee maker near me\", \"coffee maker for\" and so on. Finds comparisons, local intent and use cases.",
            "default": false
          },
          "modifierSuffixes": {
            "title": "Modifiers (after the seed)",
            "type": "array",
            "description": "Words typed after the seed when modifier expansion is on.",
            "default": [
              "vs",
              "near me",
              "for",
              "with",
              "without",
              "alternative"
            ],
            "items": {
              "type": "string"
            }
          },
          "expandAlphabet": {
            "title": "A to Z expansion",
            "type": "boolean",
            "description": "Also type the seed with each letter: \"coffee maker a\" to \"coffee maker z\" (26 extra queries per seed and engine). The classic way to collect hundreds of long tail keywords.",
            "default": false
          },
          "alphabetPosition": {
            "title": "A to Z letter position",
            "enum": [
              "after",
              "before",
              "both"
            ],
            "type": "string",
            "description": "Put the letter after the seed (\"coffee maker a\"), before it (\"a coffee maker\"), or both (52 queries).",
            "default": "after"
          },
          "expandNumbers": {
            "title": "0 to 9 expansion",
            "type": "boolean",
            "description": "Also type the seed with each digit: \"coffee maker 1\" to \"coffee maker 9\" (10 extra queries). Finds sizes, models and years.",
            "default": false
          },
          "depth": {
            "title": "Depth",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "1: the seed and its expansions. 2: every new suggestion is typed back into the engine to find its own suggestions (a keyword tree). 3: one more level. Deeper levels stop as soon as Max suggestions per seed is reached.",
            "default": 1
          },
          "maxSuggestionsPerSeed": {
            "title": "Max suggestions per seed",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop querying a seed once this many unique suggestions are saved for it. This is also the most you pay per seed. Engines are interleaved, so the limit is shared fairly between them.",
            "default": 100
          },
          "maxResults": {
            "title": "Max results (whole run)",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on charged suggestion rows for the whole run, a safety limit on cost. 0 means no cap besides your max charge.",
            "default": 0
          },
          "dedupe": {
            "title": "Deduplicate",
            "enum": [
              "engine",
              "seed",
              "run",
              "none"
            ],
            "type": "string",
            "description": "Per engine: a keyword appears once per seed and engine (the same phrase from Google and Bing gives two rows). Per seed: once per seed, with every engine that suggested it in the engines field. Whole run: once in the whole run, even across seeds. None: every occurrence. In every mode the engines field lists all engines that suggested the phrase for that seed.",
            "default": "engine"
          },
          "onlyContainingSeed": {
            "title": "Only keywords that contain the seed",
            "type": "boolean",
            "description": "Drop suggestions that do not contain every word of the seed (for example \"keurig k mini\" for the seed \"coffee maker\").",
            "default": false
          },
          "excludeWords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Drop suggestions that contain any of these words or phrases, for example competitor brands, \"free\", \"reddit\". Case insensitive.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeNavigational": {
            "title": "Keep website suggestions",
            "type": "boolean",
            "description": "Google sometimes suggests a website address (https://www.example.com/) instead of a search phrase. These are dropped unless you turn this on.",
            "default": false
          },
          "includeSeedSummary": {
            "title": "Add a summary row per seed",
            "type": "boolean",
            "description": "After each seed, add one free row (type summary) with the number of suggestions per engine, queries sent and the top 10 keywords. Summary rows are never charged.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Requests in flight at the same time. Keep it low to stay polite: 2 is fast enough for most runs.",
            "default": 2
          },
          "requestDelayMs": {
            "title": "Delay between requests to one host (ms)",
            "minimum": 100,
            "maximum": 10000,
            "type": "integer",
            "description": "Minimum pause between two requests to the same host (Google or Bing), plus a small random jitter.",
            "default": 300
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed for normal runs. Note that autocomplete is localized by the country and language fields, while the proxy location can also shift results a little.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}