{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Autocomplete Scraper - Keyword Suggestions & Relevance",
    "description": "Scrape Google Autocomplete suggestions for any keyword across Web, Images, News, Shopping and YouTube: Google relevance scores, suggestion types, entity data, plus question, preposition, commercial and a-z keyword expansions. 40+ countries. Independent tool, not affiliated with Google LLC.",
    "version": "0.1",
    "x-build-id": "R8XpEzMsKshwSZCmV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~google-autocomplete-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-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/scrapesage~google-autocomplete-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-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/scrapesage~google-autocomplete-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-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": "Seed keywords",
            "type": "array",
            "description": "One seed keyword per line, e.g. `best laptop`, `how to lose weight`, `iphone 15`. Each seed is queried as typed, then expanded with the modes you pick below.",
            "items": {
              "type": "string"
            }
          },
          "keywordsFromFile": {
            "title": "Seed keywords from a file",
            "type": "string",
            "description": "Optional. Either paste a block of keywords (one per line) or a single link to a .txt/.csv file (or a Google Sheet share link) that lists them."
          },
          "verticals": {
            "title": "Google verticals",
            "type": "array",
            "description": "Which Google surfaces to query. Each vertical has its own suggestion set.",
            "items": {
              "type": "string",
              "enum": [
                "web",
                "images",
                "news",
                "shopping",
                "youtube"
              ],
              "enumTitles": [
                "Google Web Search (web)",
                "Google Images (images)",
                "Google News (news)",
                "Google Shopping (shopping)",
                "YouTube (youtube)"
              ]
            },
            "default": [
              "web"
            ]
          },
          "expansions": {
            "title": "Expansion modes",
            "type": "array",
            "description": "How to expand every seed into more queries. `questions` prefixes what/why/how…, `prepositions` appends for/with/vs…, `commercial` prefixes best/cheap/buy…, `alphabet` appends a-z, `prefix-alphabet` prepends a-z, `numbers` appends 0-9. Leave empty to query the seeds only.",
            "items": {
              "type": "string",
              "enum": [
                "questions",
                "prepositions",
                "commercial",
                "alphabet",
                "prefix-alphabet",
                "numbers"
              ],
              "enumTitles": [
                "Question prefixes (questions)",
                "Preposition suffixes (prepositions)",
                "Commercial modifiers (commercial)",
                "Alphabet suffix a-z (alphabet)",
                "Alphabet prefix a-z (prefix-alphabet)",
                "Number suffix 0-9 (numbers)"
              ]
            },
            "default": [
              "questions",
              "prepositions",
              "commercial"
            ]
          },
          "recursiveDepth": {
            "title": "Recursion depth",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "0 = query the seeds and their expansions only. 1 = also query every suggestion found as a new seed (no expansions), 2 = twice. Each level multiplies the request count by up to 10-15x - keep `maxResults` in mind.",
            "default": 0
          },
          "countryCode": {
            "title": "Country (gl)",
            "enum": [
              "us",
              "gb",
              "ca",
              "au",
              "nz",
              "ie",
              "in",
              "sg",
              "ae",
              "za",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "be",
              "ch",
              "at",
              "se",
              "no",
              "dk",
              "fi",
              "pl",
              "pt",
              "br",
              "mx",
              "ar",
              "cl",
              "co",
              "jp",
              "kr",
              "hk",
              "ph",
              "my",
              "id",
              "th",
              "vn",
              "tr",
              "il",
              "eg",
              "ng",
              "ke"
            ],
            "type": "string",
            "description": "Google country edition - suggestions differ by country.",
            "default": "us"
          },
          "language": {
            "title": "Language (hl)",
            "enum": [
              "en",
              "de",
              "fr",
              "es",
              "it",
              "pt",
              "nl",
              "sv",
              "no",
              "da",
              "fi",
              "pl",
              "tr",
              "ja",
              "ko",
              "id",
              "th",
              "vi",
              "ar",
              "he",
              "hi"
            ],
            "type": "string",
            "description": "Suggestion language. Question/preposition/commercial expansions are localised for en, de, fr, es, it, pt and nl; other languages use the English modifiers.",
            "default": "en"
          },
          "questionsOnly": {
            "title": "Questions only",
            "type": "boolean",
            "description": "Keep only suggestions that read as questions (what/why/how/can/is… or ending with ?). Handy for FAQ and content research.",
            "default": false
          },
          "mustContainSeed": {
            "title": "Must contain the seed",
            "type": "boolean",
            "description": "Drop suggestions that do not contain the seed keyword's words (Google sometimes suggests loosely related queries).",
            "default": false
          },
          "maxResults": {
            "title": "Maximum suggestions",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Stop after this many unique suggestions across all seeds, expansions and verticals."
          },
          "monitorMode": {
            "title": "Only new suggestions (monitor mode)",
            "type": "boolean",
            "description": "Remember every suggestion seen in earlier runs and output only new ones. Pair with a Schedule to watch how Google's suggestions for your keywords change over time.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Key-value store that keeps the seen suggestions (lowercase letters, numbers and dashes).",
            "default": "google-autocomplete-monitor"
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many suggestion requests run at the same time.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy settings. Datacenter proxies (default) are enough; switch to residential only if Google starts rate-limiting a very large run."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}