{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Autocomplete - Keyword Suggestions & Seed Expansion",
    "description": "Get Google autocomplete keyword suggestions from seed queries, country and language. One row per suggestion: seed, expanded query, text, position and locale. Optional a-z seed expansion, text filters and new-only monitoring. Parsed queries are billed even when no suggestions remain.",
    "version": "1.4",
    "x-build-id": "6ncJdwAzEltJpq3cH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kestrel~google-autocomplete-keywords/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kestrel-google-autocomplete-keywords",
        "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/kestrel~google-autocomplete-keywords/runs": {
      "post": {
        "operationId": "runs-sync-kestrel-google-autocomplete-keywords",
        "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/kestrel~google-autocomplete-keywords/run-sync": {
      "post": {
        "operationId": "run-sync-kestrel-google-autocomplete-keywords",
        "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": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "Seed queries",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Seed queries, for example [\"keyword research\",\"coffee grinder\"]. Up to 20. Each parsed query costs $0.002 plus $0.0001 per delivered unique suggestion. Suggestions do not include search volume or CPC.",
            "items": {
              "type": "string"
            }
          },
          "maxSuggestionsPerSeed": {
            "title": "Maximum suggestions per original seed",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Total output ceiling per original seed across all its expanded queries combined. For example, 2 seeds with 50 each means at most 100 rows total ($0.01 in row fees), plus successful query-check fees. Applied after filters, exclusions and monitoring. Each delivered row costs $0.0001; source checks are separate. Fewer rows may exist. Duplicate results across sources are delivered only once.",
            "default": 50
          },
          "country": {
            "title": "Country hint",
            "pattern": "^[a-z]{2}$",
            "type": "string",
            "description": "Lowercase two-letter country hint, for example \"us\", \"gb\" or \"de\". Default us. This is sent to Google; it does not prove the geographic origin of the suggestions. No extra locale fee.",
            "default": "us"
          },
          "language": {
            "title": "Language hint",
            "type": "string",
            "description": "Language code, for example \"en\", \"de\", \"ar\" or \"zh-CN\". Default en. Suggestions may be multilingual. The output records this requested hint, not a detected language. No extra locale fee.",
            "default": "en"
          },
          "expandAlphabet": {
            "title": "Expand seeds with a-z",
            "type": "boolean",
            "description": "false (DEFAULT) = one query per seed. true = seed plus seed a through seed z, up to 27 parsed queries per seed at $0.002 each, plus $0.0001 per delivered suggestion. Result and maxRequests limits can stop expansion early. Not recursive.",
            "default": false
          },
          "textContains": {
            "title": "Text includes any phrase",
            "type": "array",
            "description": "Keep results containing any phrase, case-insensitive; for example [\"office\"] or [\"free\"]. Checks suggestion text. Empty [] accepts all. Applied before row charging; successful source checks still cost money.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "textExcludes": {
            "title": "Text excludes any phrase",
            "type": "array",
            "description": "Drop results containing any phrase, for example [\"download\"] or [\"bedroom\"]. Empty [] disables the filter. Filtered rows are not charged; successful source checks remain billable.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "onlyNew": {
            "title": "Only new results",
            "type": "boolean",
            "description": "false by default. true saves delivered IDs under monitorKey; later runs skip them. The first run returns the baseline. Successful checks still cost $0.002 each even with no new rows. Use an Apify schedule for recurring checks; this flag creates no schedule.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name such as \"daily-research\"; default \"default\". Reuse it for repeat runs. Targets, date window, locale and filters automatically form a separate baseline when changed. Keeps the latest 50,000 IDs per scope. Do not overlap runs with the same name and scope."
          },
          "excludeIds": {
            "title": "Previously collected IDs",
            "maxItems": 10000,
            "type": "array",
            "description": "Optional output id values, for example [\"previous-output-id\"]. Up to 10,000. Empty [] excludes nothing. Useful for caller-managed deduplication. Excluded rows are not charged; parsed source checks are.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxRequests": {
            "title": "Maximum HTTP requests",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Hard run-wide source request cap, for example 100; range 1–200. This is not a dollar limit. Set maxTotalChargeUsd as an Apify run option for a monetary cap.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}