{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Autocomplete Keyword Suggestions (YouTube, Shopping)",
    "description": "Google autocomplete (Google Suggest) keyword suggestions from web search, YouTube, Shopping, Images and News in one run. Alphabet, question and preposition expansion in 6 languages, recursive depth, any country, Google's relevance score. Long tail keywords at $0.06 per 1,000.",
    "version": "0.2",
    "x-build-id": "iPyLbfOWP4iSyBiSx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/siteacs~google-autocomplete-suggestions/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-siteacs-google-autocomplete-suggestions",
        "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/siteacs~google-autocomplete-suggestions/runs": {
      "post": {
        "operationId": "runs-sync-siteacs-google-autocomplete-suggestions",
        "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/siteacs~google-autocomplete-suggestions/run-sync": {
      "post": {
        "operationId": "run-sync-siteacs-google-autocomplete-suggestions",
        "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": [
          "seeds"
        ],
        "properties": {
          "seeds": {
            "title": "Seed keywords",
            "type": "array",
            "description": "Keywords to get suggestions for, one per line, typed as you would type them into Google's search box. Each seed is looked up on its own. Use Bulk edit to paste a long list. Duplicates are looked up once.",
            "items": {
              "type": "string"
            }
          },
          "surfaces": {
            "title": "Surfaces",
            "type": "array",
            "description": "Where the suggestions come from: the search box of Google web search, YouTube, Google Shopping, Google Images or Google News. Pick several to compare them in one run; each surface is looked up separately and every row says which one it came from.",
            "items": {
              "type": "string",
              "enum": [
                "web",
                "youtube",
                "shopping",
                "images",
                "news"
              ],
              "enumTitles": [
                "Google web search",
                "YouTube",
                "Google Shopping",
                "Google Images",
                "Google News"
              ]
            },
            "default": [
              "web"
            ]
          },
          "expansions": {
            "title": "Expansions",
            "type": "array",
            "description": "Extra lookups per seed for long tail keywords. The seed itself is always looked up. Alphabet: \"running shoes a\" to \"running shoes z\", then 0 to 9 (36 lookups besides the seed; German adds ä, ö, ü and Spanish ñ). Questions: question words before the seed (\"how running shoes\", \"can running shoes\"; 10-13 lookups). Prepositions: words after the seed (\"running shoes for\", \"running shoes vs\"; 10-12 lookups). The words follow the language below: English, Portuguese, Spanish, German, French and Italian; other languages use the English words. Leave empty for the seed only.",
            "items": {
              "type": "string",
              "enum": [
                "alphabet",
                "questions",
                "prepositions"
              ],
              "enumTitles": [
                "Alphabet: seed + a to z and 0 to 9",
                "Questions: who, what, how ... + seed",
                "Prepositions: seed + for, with, without, vs ..."
              ]
            },
            "default": [
              "alphabet"
            ]
          },
          "depth": {
            "title": "Recursive depth",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "0: only the lookups above. 1: every new suggestion is also looked up itself and its suggestions saved, which finds longer phrases (\"running shoes for women\" gives \"running shoes for women wide feet\"). 2 and 3 go further. Each level multiplies the lookups by up to 15, so set a limit below.",
            "default": 0
          },
          "maxLookupsPerSeed": {
            "title": "Max lookups per seed and surface",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stops a seed on a surface after this many lookups (each lookup gives up to 15 suggestions). Mostly matters with a recursive depth; the seed summary says when the limit was reached. With a recursive depth a seed's answers are held in memory until it is saved: at the default 256 MB the maximum (5,000) fits on all 5 surfaces; at 128 MB about 2,000 on 5 surfaces. The run log says when it lowered your limit.",
            "default": 500
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code for Google (gl): US, GB, DE, BR, ES, MX, FR, IN ... (UK is read as GB). Suggestions differ by country. Suggestions naming a town or city can follow the location of the proxy IP rather than the country.",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language code for Google (hl): en, de, es, pt, pt-BR, fr, it, ja ... (pt_br is read as pt-BR). It also picks the question and preposition words.",
            "default": "en"
          },
          "dedupeAcrossSeeds": {
            "title": "Dedupe across seeds",
            "type": "boolean",
            "description": "On: a suggestion already saved for an earlier seed on the same surface is not saved (or charged) again. Off: every seed gets its full list. Within one seed and surface a suggestion is always saved once.",
            "default": true
          },
          "maxSuggestions": {
            "title": "Max suggestions per run",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Stop after saving this many suggestions in all (0: no limit). Your maximum cost per run is also respected.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy (the default). Requests are spread over several proxy IPs: a new one every 1,000 lookups, and another when one stops answering. Residential and SERP proxy groups are not needed here and are replaced by datacenter. Without a proxy (or with a single proxy URL of your own), a refusal makes the run pause and slow down.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}