{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Autocomplete Scraper - YouTube, Bing, Amazon & 14 More",
    "description": "Scrape Google autocomplete keyword suggestions plus YouTube, Bing, Amazon, TikTok, DuckDuckGo, Yahoo, eBay, Walmart, Yandex, Baidu, Naver, Wikipedia, App Store and Google Play. A-Z, question and preposition expansion, any country and language, relevance and intent per row. $0.72 per 1,000.",
    "version": "0.1",
    "x-build-id": "V3rOdknxvbDz4QWdL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/topapi~google-autocomplete-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-topapi-google-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/topapi~google-autocomplete-scraper/runs": {
      "post": {
        "operationId": "runs-sync-topapi-google-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/topapi~google-autocomplete-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-topapi-google-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": "🔎 Keywords",
            "type": "array",
            "description": "Seed keywords, one per line, as you would start typing them, e.g. \"coffee grinder\", \"how to learn python\". Each keyword is looked up in every search box you pick, with the expansions below.",
            "items": {
              "type": "string"
            }
          },
          "seedUrls": {
            "title": "🌐 Keywords from web pages",
            "type": "array",
            "description": "Web page links, one per line. Each page's title, H1 headings and meta keywords become keywords (up to 10 per page). Rows from them carry the page in seedUrl.",
            "items": {
              "type": "string"
            }
          },
          "engines": {
            "title": "🧭 Search boxes",
            "type": "array",
            "description": "Which search boxes to read. Google (web, images, news, shopping), Bing, Amazon, DuckDuckGo, Yahoo, eBay, Walmart, Yandex, Baidu, Naver and Wikipedia rows are 'suggestion' events; YouTube, TikTok and the app stores have their own prices.",
            "items": {
              "type": "string",
              "enum": [
                "google",
                "google-images",
                "google-news",
                "google-shopping",
                "youtube",
                "bing",
                "amazon",
                "tiktok",
                "duckduckgo",
                "yahoo",
                "ebay",
                "walmart",
                "yandex",
                "baidu",
                "naver",
                "wikipedia",
                "appstore",
                "googleplay"
              ],
              "enumTitles": [
                "Google Search",
                "Google Images",
                "Google News",
                "Google Shopping",
                "YouTube",
                "Bing",
                "Amazon",
                "TikTok",
                "DuckDuckGo",
                "Yahoo",
                "eBay",
                "Walmart (US)",
                "Yandex",
                "Baidu (China)",
                "Naver (Korea)",
                "Wikipedia",
                "App Store",
                "Google Play"
              ]
            },
            "default": [
              "google"
            ]
          },
          "country": {
            "title": "🌍 Country",
            "type": "string",
            "description": "Two-letter country code, e.g. US, GB, DE, FR, IN, JP. Sets Google/YouTube gl, the Bing market, the DuckDuckGo and Yahoo region, the eBay site, the App Store storefront, the TikTok region and the Amazon marketplace (unless set below).",
            "default": "US"
          },
          "language": {
            "title": "🗣️ Language",
            "type": "string",
            "description": "Language code, e.g. en, de, fr, es, ja, zh-CN. Sets Google/YouTube hl, the Bing market, the Wikipedia edition, the TikTok app language and the question words and prepositions used for expansion.",
            "default": "en"
          },
          "countries": {
            "title": "🌐 More countries",
            "type": "array",
            "description": "Several countries in one run, one code per line (replaces Country). Each one is a separate set of lookups and rows.",
            "items": {
              "type": "string"
            }
          },
          "languages": {
            "title": "🔤 More languages",
            "type": "array",
            "description": "Several languages in one run, one code per line (replaces Language).",
            "items": {
              "type": "string"
            }
          },
          "amazonMarketplace": {
            "title": "🛒 Amazon marketplace",
            "enum": [
              "auto",
              "US",
              "CA",
              "MX",
              "BR",
              "UK",
              "DE",
              "FR",
              "IT",
              "ES",
              "NL",
              "SE",
              "PL",
              "BE",
              "IE",
              "TR",
              "AE",
              "SA",
              "EG",
              "IN",
              "JP",
              "AU",
              "SG"
            ],
            "type": "string",
            "description": "The Amazon store to read. \"Match the country\" picks it from Country (US if Amazon has no store there).",
            "default": "auto"
          },
          "amazonMarketplaces": {
            "title": "🛍️ More Amazon marketplaces",
            "type": "array",
            "description": "Compare several Amazon stores in one run, one code per line (US, UK, DE, FR, IT, ES, CA, MX, BR, NL, SE, PL, BE, IE, TR, AE, SA, EG, IN, JP, AU, SG). Replaces the marketplace above.",
            "items": {
              "type": "string"
            }
          },
          "amazonDepartment": {
            "title": "🏬 Amazon department",
            "type": "string",
            "description": "Amazon search department alias: aps (all departments), stripbooks, electronics, fashion, grocery, beauty, toys-and-games, sporting, tools, garden, automotive, pets, baby-products, videogames, digital-text (Kindle) ...",
            "default": "aps"
          },
          "amazonDepartments": {
            "title": "🗂️ More Amazon departments",
            "type": "array",
            "description": "Several departments in one run, one alias per line (replaces the department above).",
            "items": {
              "type": "string"
            }
          },
          "expandAlphabet": {
            "title": "🔤 A to Z after the keyword",
            "type": "boolean",
            "description": "Also look up \"keyword a\", \"keyword b\" ... \"keyword z\" (26 lookups per keyword and search box). The classic way to get hundreds of long-tail suggestions.",
            "default": true
          },
          "expandQuestions": {
            "title": "❓ Question words in front",
            "type": "boolean",
            "description": "Also look up \"how keyword\", \"what keyword\", \"why keyword\" ... (13 English question words; German, French, Spanish, Italian, Portuguese and Dutch get their own).",
            "default": true
          },
          "expandPrefixAlphabet": {
            "title": "🔡 A to Z in front of the keyword",
            "type": "boolean",
            "description": "Also look up \"a keyword\" ... \"z keyword\" (26 more lookups). Finds what people type before your keyword.",
            "default": false
          },
          "expandNumbers": {
            "title": "🔢 0 to 9 after the keyword",
            "type": "boolean",
            "description": "Also look up \"keyword 0\" ... \"keyword 9\" (years, sizes, model numbers).",
            "default": false
          },
          "expandPrepositions": {
            "title": "🔗 Prepositions",
            "type": "boolean",
            "description": "Also look up \"keyword for\", \"keyword with\", \"keyword without\", \"keyword near\", \"keyword to\", \"keyword can\", \"keyword is\".",
            "default": false
          },
          "expandComparisons": {
            "title": "⚖️ Comparisons",
            "type": "boolean",
            "description": "Also look up \"keyword vs\", \"keyword versus\", \"keyword or\", \"keyword and\", \"keyword like\".",
            "default": false
          },
          "expandBuyerModifiers": {
            "title": "💳 Buyer words",
            "type": "boolean",
            "description": "Also look up \"best keyword\", \"cheap keyword\", \"top keyword\", \"buy keyword\", \"keyword price\", \"keyword review\", \"keyword deals\", \"keyword for sale\", \"keyword near me\", \"keyword online\" (in the run's language).",
            "default": false
          },
          "cursorBeforeSeed": {
            "title": "⬅️ Google: complete in front of the keyword",
            "type": "boolean",
            "description": "Google only: ask Google to complete the text BEFORE your keyword (cursor at the start), e.g. \"best coffee grinder\", \"burr coffee grinder\". One extra lookup per keyword.",
            "default": false
          },
          "addTrailingSpace": {
            "title": "␣ Keyword followed by a space",
            "type": "boolean",
            "description": "Also look up the keyword with a trailing space, which some search boxes complete differently.",
            "default": false
          },
          "questionWords": {
            "title": "❔ Your own question words",
            "type": "array",
            "description": "Replace the built-in question words, one per line, e.g. how, what, is, best way to.",
            "items": {
              "type": "string"
            }
          },
          "customPrefixes": {
            "title": "⏮️ Your own words in front",
            "type": "array",
            "description": "Words to put in front of every keyword, one per line, e.g. \"best\", \"cheap\", \"used\".",
            "items": {
              "type": "string"
            }
          },
          "customSuffixes": {
            "title": "⏭️ Your own words after",
            "type": "array",
            "description": "Words to put after every keyword, one per line, e.g. \"for women\", \"under 50\", \"2026\".",
            "items": {
              "type": "string"
            }
          },
          "maxDepth": {
            "title": "🌳 Levels",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "1 = the keyword's own lookups. 2 = the strongest suggestions found are looked up again as keywords (deeper long tail). 3 = once more.",
            "default": 1
          },
          "recursionMaxTermsPerLevel": {
            "title": "🌿 Suggestions followed per level",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "With Levels 2 or 3: how many of the most-surfaced suggestions are looked up again, per keyword and search box.",
            "default": 20
          },
          "includeSeed": {
            "title": "🌱 Keep the keyword itself",
            "type": "boolean",
            "description": "Keep a row when a search box suggests exactly your keyword. Off = only new phrases.",
            "default": true
          },
          "mustContainSeed": {
            "title": "🧷 Must contain every keyword word",
            "type": "boolean",
            "description": "Keep only suggestions that contain every word of the keyword (in any order).",
            "default": false
          },
          "mustIncludeTerms": {
            "title": "✅ Must include any of",
            "type": "array",
            "description": "Keep only suggestions that contain at least one of these words or phrases.",
            "items": {
              "type": "string"
            }
          },
          "excludeTerms": {
            "title": "🚫 Exclude",
            "type": "array",
            "description": "Drop suggestions that contain any of these words or phrases, e.g. brand names, \"near me\", \"reddit\".",
            "items": {
              "type": "string"
            }
          },
          "onlyQuestions": {
            "title": "❓ Questions only",
            "type": "boolean",
            "description": "Keep only suggestions that start with a question word or end with a question mark.",
            "default": false
          },
          "onlyLongTail": {
            "title": "🦒 Long tail only",
            "type": "boolean",
            "description": "Keep only suggestions of 3 words or more.",
            "default": false
          },
          "minWordCount": {
            "title": "🔢 Minimum words",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Keep only suggestions with at least this many words (0 = any).",
            "default": 0
          },
          "maxWordCount": {
            "title": "🔢 Maximum words",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only suggestions with at most this many words (0 = any).",
            "default": 0
          },
          "maxResults": {
            "title": "💯 Max suggestions (total)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many rows in the whole run (0 = no limit). One keyword on one search box with the default expansions gives about 200-400.",
            "default": 1000
          },
          "maxResultsPerKeyword": {
            "title": "🎯 Max suggestions per keyword",
            "minimum": 0,
            "type": "integer",
            "description": "At most this many rows per keyword per search box and country (0 = no limit). The most-surfaced suggestions are kept.",
            "default": 0
          },
          "maxSuggestionsPerQuery": {
            "title": "🔟 Max suggestions per lookup",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only the first N suggestions of each lookup (0 = all the search box returns: Google 15, YouTube 14, Bing up to 25, most others 8-10).",
            "default": 0
          },
          "maxLookups": {
            "title": "🧮 Max lookups",
            "minimum": 1,
            "type": "integer",
            "description": "Safety cap on lookups (requests to the search boxes) in one run.",
            "default": 10000
          },
          "dedupe": {
            "title": "🧹 De-duplicate",
            "type": "boolean",
            "description": "One row per suggestion per keyword and search box, however many lookups returned it (volumeProxy counts them). Off = one row per lookup that returned it.",
            "default": true
          },
          "dedupeAcrossKeywords": {
            "title": "🧹 De-duplicate across keywords",
            "type": "boolean",
            "description": "A suggestion already delivered for one keyword is not delivered (or charged) again for the next.",
            "default": false
          },
          "mergeEngines": {
            "title": "🔀 One row per suggestion across search boxes",
            "type": "boolean",
            "description": "Merge the same suggestion found in several search boxes into one row (engines, engineCount, positionsByEngine). It is charged once, at the cheapest of those search boxes' prices.",
            "default": false
          },
          "resultOrder": {
            "title": "↕️ Order",
            "enum": [
              "popularity",
              "engine",
              "alphabetical"
            ],
            "type": "string",
            "description": "Most surfaced first (volumeProxy, then rank), the order the search boxes returned them, or A to Z.",
            "default": "popularity"
          },
          "groupSimilar": {
            "title": "🧩 Group near-duplicates",
            "type": "boolean",
            "description": "Tag suggestions that use the same words (plurals and word order ignored) with one clusterId; the first of each group gets isClusterRepresentative = true.",
            "default": false
          },
          "includeEntities": {
            "title": "🏷️ Google entity names and images",
            "type": "boolean",
            "description": "For Google: also read the google.com search box's entity data (entityName, entityDescription, thumbnail, e.g. \"Taylor Swift - American singer-songwriter\"). One extra request per Google lookup, no extra charge.",
            "default": false
          },
          "googleClient": {
            "title": "🧪 Google suggest client",
            "enum": [
              "chrome",
              "firefox",
              "gws-wiz"
            ],
            "type": "string",
            "description": "chrome: 15 suggestions with Google's relevance score (default). firefox: the plain 10. gws-wiz: the 10 google.com shows, with entity data.",
            "default": "chrome"
          },
          "outputFormat": {
            "title": "🗃️ Row format",
            "enum": [
              "detailed",
              "simple",
              "grouped"
            ],
            "type": "string",
            "description": "detailed = every field. simple = keyword, suggestion, engine, position, volumeProxy, country, language. grouped = detailed rows plus a KEYWORDS record (key-value store) with each keyword's top suggestions.",
            "default": "detailed"
          },
          "summaryTopN": {
            "title": "🏆 Top N per keyword in the KEYWORDS record",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Writes a KEYWORDS record with each keyword's lookups, counts and its top N suggestions (0 = no record unless the row format is grouped).",
            "default": 0
          },
          "monitorMode": {
            "title": "🔁 Only new suggestions",
            "type": "boolean",
            "description": "Deliver only suggestions this monitor has not delivered before (per keyword, search box and country). Run it on a schedule to see what is new in the search boxes.",
            "default": false
          },
          "monitorStoreName": {
            "title": "🗄️ Monitor name",
            "type": "string",
            "description": "Name of the key-value store that remembers delivered suggestions. Use one name per watch list.",
            "default": "autocomplete-monitor"
          },
          "resetMonitor": {
            "title": "♻️ Forget earlier runs",
            "type": "boolean",
            "description": "Start the monitor from empty (everything found counts as new).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy",
            "type": "object",
            "description": "Default: the run's own IP first; if a search box refuses it, one Apify datacenter session, then one Apify residential session. Pick a group or your own proxy to use only that.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "⚡ Parallel lookups per search box",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many lookups run at once against one search box.",
            "default": 10
          },
          "requestDelayMs": {
            "title": "⏱️ Delay between lookups (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Wait this long before each lookup (per parallel slot).",
            "default": 0
          },
          "maxRequestRetries": {
            "title": "🔁 Retries per lookup",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Retries of a failed lookup (timeouts, server errors) before it is reported as failed. Failed lookups are never charged.",
            "default": 3
          },
          "writeRunSummary": {
            "title": "🧾 Always write RUN_SUMMARY",
            "type": "boolean",
            "description": "Write the RUN_SUMMARY record (lookups per search box, egress, what was skipped) on every run. Without it, it is written for Console runs, large runs and runs with a problem.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}