{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Autocomplete Scraper & API - Keyword Suggestions",
    "description": "Google Autocomplete (Google Suggest) scraper and keyword suggestion API: seed keywords in, one row per suggestion with relevance score, type, rank and search link; a-z, 0-9, question and preposition expansions, depth, YouTube / Images / News / Shopping, any language. $0.04 per 1,000, no start fee.",
    "version": "1.0",
    "x-build-id": "VvHUC9gesUhv8rGj4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rel8ble~google-autocomplete-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rel8ble-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/rel8ble~google-autocomplete-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rel8ble-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/rel8ble~google-autocomplete-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rel8ble-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 phrase per line, as you would type it into Google (up to 1,000 per run). Each seed is queried on every selected surface, language and country. End a seed with a space-word such as \"for\" or \"vs\" to steer the suggestions.",
            "items": {
              "type": "string"
            }
          },
          "surfaces": {
            "title": "Google surfaces",
            "type": "array",
            "description": "Where the suggestions come from: Google Search (web), YouTube, Google Images, Google News or Google Shopping. Several at once = one row set per surface.",
            "items": {
              "type": "string",
              "enum": [
                "web",
                "youtube",
                "images",
                "news",
                "shopping"
              ],
              "enumTitles": [
                "Google Search",
                "YouTube",
                "Google Images",
                "Google News",
                "Google Shopping"
              ]
            },
            "default": [
              "web"
            ]
          },
          "languages": {
            "title": "Languages (hl)",
            "type": "array",
            "description": "Interface language codes such as en, de, fr, es, it, pt-BR, ja, hi. One row set per language.",
            "default": [
              "en"
            ],
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries (gl)",
            "type": "array",
            "description": "Two-letter country codes such as us, gb, de, in, br, au. One row set per country. Google also uses the IP location of the request: set apifyProxyCountry in proxyConfiguration for fully country-true results.",
            "default": [
              "us"
            ],
            "items": {
              "type": "string"
            }
          },
          "expansions": {
            "title": "Expansions",
            "type": "array",
            "description": "Extra queries per seed: \"keyword a\" ... \"keyword z\" (alphabet, 26 queries), \"a keyword\" ... (alphabetBefore, 26), \"keyword 0\" ... \"keyword 9\" (numbers, 10), \"how keyword\", \"what keyword\" ... (questions, 13), \"keyword for\", \"keyword with\" ... (prepositions, 13), \"keyword vs\", \"keyword or\" ... (comparisons, 8). Each extra query returns up to 15 more suggestions.",
            "items": {
              "type": "string",
              "enum": [
                "alphabet",
                "alphabetBefore",
                "numbers",
                "questions",
                "prepositions",
                "comparisons"
              ],
              "enumTitles": [
                "keyword + a..z",
                "a..z + keyword",
                "keyword + 0..9",
                "question word + keyword",
                "keyword + preposition",
                "keyword + comparison word"
              ]
            },
            "default": []
          },
          "customPrefixes": {
            "title": "Custom prefixes",
            "type": "array",
            "description": "Optional words put before each seed (\"cheap\", \"best\", \"wie\" ...), one per line, for your own language or niche.",
            "items": {
              "type": "string"
            }
          },
          "customSuffixes": {
            "title": "Custom suffixes",
            "type": "array",
            "description": "Optional words put after each seed (\"for beginners\", \"2026\", \"near me\" ...), one per line.",
            "items": {
              "type": "string"
            }
          },
          "depth": {
            "title": "Depth",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "0 = query the seeds (and their expansions) only. 1 = also query every suggestion found as a new seed; 2 and 3 go one and two levels further (up to 200 new seeds per keyword and level). Rows carry depth and parentSuggestion.",
            "default": 0
          },
          "maxSuggestionsPerQuery": {
            "title": "Suggestions per query",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Google returns up to 15 suggestions per query. Lower it to keep only the top ones.",
            "default": 15
          },
          "maxResultsPerKeyword": {
            "title": "Max results per keyword",
            "minimum": 0,
            "type": "integer",
            "description": "Stop a keyword (per surface / language / country) after this many rows. 0 = no limit.",
            "default": 0
          },
          "maxResults": {
            "title": "Max results (whole run)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the run after this many rows in total. 0 = no limit.",
            "default": 0
          },
          "dedupe": {
            "title": "Remove duplicate suggestions",
            "type": "boolean",
            "description": "The same phrase often comes back for several queries of one seed. On: one row per phrase, surface, language and country (the first query that produced it). Off: a row per query that produced it.",
            "default": true
          },
          "includeNavigation": {
            "title": "Include website suggestions",
            "type": "boolean",
            "description": "Google sometimes suggests a website (NAVIGATION type, e.g. https://www.facebook.com/ with the page title). Off: only query suggestions.",
            "default": true
          },
          "mustContainKeyword": {
            "title": "Only suggestions containing the seed",
            "type": "boolean",
            "description": "Drop suggestions that no longer contain the seed phrase (Google rewrites some queries). Dropped rows are free.",
            "default": false
          },
          "mustContain": {
            "title": "Must contain words",
            "type": "array",
            "description": "Optional. Keep only suggestions containing at least one of these words. Dropped rows are free.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Optional. Drop suggestions containing any of these words (brands, \"near me\", \"free\" ...). Dropped rows are free.",
            "items": {
              "type": "string"
            }
          },
          "includeEntityDetails": {
            "title": "Add Knowledge Graph entity details",
            "type": "boolean",
            "description": "One extra request per web query: suggestions that are a known entity get entityName, entityDescription (\"Sports car\", \"SUV\", \"Luxury vehicle\") and a thumbnail. Same price per row.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Parallel requests (at most about 40 per second overall). Lower it if Google answers 429.",
            "default": 10
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "maximum": 15,
            "type": "integer",
            "description": "Retries per query (new IP after the first failure when a proxy is available).",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Off by default: Google Suggest answers direct requests, and failed requests fall back to Apify Proxy on their own. Turn it on with apifyProxyCountry to get the suggestions Google shows in that country.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}