{
  "openapi": "3.0.1",
  "info": {
    "title": "Google & YouTube Autocomplete Keyword Tool",
    "description": "Bulk keyword ideas from Google, YouTube, Shopping, News and Images autocomplete. A-Z, 0-9, questions, prepositions and custom modifiers, recursive depth, any country/language, deduplicated. $0.06 per 1,000 keywords.",
    "version": "1.0",
    "x-build-id": "bEnpKpI647YO6niWn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/clearscrape~google-youtube-autocomplete-keywords/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-clearscrape-google-youtube-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/clearscrape~google-youtube-autocomplete-keywords/runs": {
      "post": {
        "operationId": "runs-sync-clearscrape-google-youtube-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/clearscrape~google-youtube-autocomplete-keywords/run-sync": {
      "post": {
        "operationId": "run-sync-clearscrape-google-youtube-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": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "Seed keywords",
            "type": "array",
            "description": "One or more seed keywords. Each seed is expanded with the options below.",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Autocomplete sources",
            "type": "array",
            "description": "Which autocomplete to query. Google = web search box, YouTube = YouTube search box, plus Google Shopping, News and Images.",
            "items": {
              "type": "string",
              "enum": [
                "google",
                "youtube",
                "google_shopping",
                "google_news",
                "google_images"
              ],
              "enumTitles": [
                "Google Search",
                "YouTube",
                "Google Shopping",
                "Google News",
                "Google Images"
              ]
            },
            "default": [
              "google"
            ]
          },
          "languages": {
            "title": "Languages (hl)",
            "type": "array",
            "description": "Interface language codes, e.g. en, de, es, pt-br. Each language x country is a separate locale.",
            "default": [
              "en"
            ],
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries (gl)",
            "type": "array",
            "description": "Two-letter country codes, e.g. us, gb, au, de.",
            "default": [
              "us"
            ],
            "items": {
              "type": "string"
            }
          },
          "alphabetExpansion": {
            "title": "A-Z expansion",
            "type": "boolean",
            "description": "Also query 'seed a' … 'seed z' (26 extra queries per seed and locale). The classic long-tail trick.",
            "default": false
          },
          "alphabetPosition": {
            "title": "A-Z position",
            "enum": [
              "suffix",
              "prefix",
              "both"
            ],
            "type": "string",
            "description": "Put letters after the seed (suffix), before it (prefix) or both.",
            "default": "suffix"
          },
          "numberExpansion": {
            "title": "0-9 expansion",
            "type": "boolean",
            "description": "Also query 'seed 0' … 'seed 9' (good for years, models, sizes).",
            "default": false
          },
          "questionExpansion": {
            "title": "Question expansion",
            "type": "boolean",
            "description": "Also query who/what/when/where/why/how/which/can/is/are/does/should/will + seed. Great for FAQ and blog ideas.",
            "default": false
          },
          "prepositionExpansion": {
            "title": "Preposition expansion",
            "type": "boolean",
            "description": "Also query seed + for/with/without/near/vs/to/like/versus/and/or.",
            "default": false
          },
          "comparisonExpansion": {
            "title": "Comparison expansion",
            "type": "boolean",
            "description": "Also query seed + vs/versus/or/and/like/alternative/alternatives (competitor research).",
            "default": false
          },
          "customModifiers": {
            "title": "Custom modifiers",
            "type": "array",
            "description": "Extra words appended to each seed, or full templates using {seed}, e.g. 'best {seed} for', 'cheap'.",
            "items": {
              "type": "string"
            }
          },
          "maxDepth": {
            "title": "Recursive depth",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "0 = only the queries above. 1 = also expand every new suggestion once. Each level multiplies queries (~10x).",
            "default": 0
          },
          "maxSuggestionsPerQuery": {
            "title": "Max suggestions per query",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Keep at most this many suggestions from each autocomplete answer (Google returns up to ~15).",
            "default": 20
          },
          "dedupeScope": {
            "title": "Deduplication",
            "enum": [
              "perLocaleAndSource",
              "perSource",
              "global",
              "none"
            ],
            "type": "string",
            "description": "How duplicates are removed. Default keeps one row per keyword per source and locale.",
            "default": "perLocaleAndSource"
          },
          "onlyContainingSeed": {
            "title": "Only keywords containing all seed words",
            "type": "boolean",
            "description": "Drop suggestions that don't contain every word of the seed.",
            "default": false
          },
          "excludeWords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Drop suggestions containing any of these words or phrases (e.g. brand names, 'free').",
            "items": {
              "type": "string"
            }
          },
          "includeSeedAsResult": {
            "title": "Include the seed itself",
            "type": "boolean",
            "description": "Keep a suggestion that is identical to the seed.",
            "default": false
          },
          "maxResults": {
            "title": "Max keywords (0 = no limit)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many unique keywords. Also caps cost.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Google's suggest endpoint usually works without a proxy. For very large runs use Apify Proxy; RESIDENTIAL is the most robust.",
            "default": {
              "useApifyProxy": false
            }
          },
          "residentialFallback": {
            "title": "Auto-switch to residential proxy when blocked",
            "type": "boolean",
            "description": "After 3 consecutive blocks, switch the rest of the run to the RESIDENTIAL proxy group (Apify platform only).",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Parallel requests. Lower it if you see rate limiting.",
            "default": 8
          },
          "maxRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries with exponential backoff and a fresh proxy session.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}