{
  "openapi": "3.0.1",
  "info": {
    "title": "Keyword Autocomplete Scraper: Google, YouTube, Amazon, Bing",
    "description": "Every autocomplete suggestion for your keywords from Google, YouTube, Bing, Amazon and DuckDuckGo as JSON: suggestion, engine, rank and the expanded query that produced it. Alphabet and question expansion, no API key. From $0.30 per 1,000 suggestions.",
    "version": "0.1",
    "x-build-id": "Z2QAc888i9HeeeZkT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/subimpact~keyword-autocomplete-suggestions/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-subimpact-keyword-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/subimpact~keyword-autocomplete-suggestions/runs": {
      "post": {
        "operationId": "runs-sync-subimpact-keyword-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/subimpact~keyword-autocomplete-suggestions/run-sync": {
      "post": {
        "operationId": "run-sync-subimpact-keyword-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": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "Keywords (seeds)",
            "type": "array",
            "description": "Seed keywords to collect autocomplete suggestions for, e.g. [\"coffee\", \"running shoes\"]. Duplicates and blank entries are dropped. Up to 10,000 per run.",
            "items": {
              "type": "string"
            }
          },
          "engines": {
            "title": "Engines",
            "type": "array",
            "description": "Which autocomplete engines to query: google (Google Search), youtube (YouTube), bing (Bing), amazon (Amazon product search) or duckduckgo (DuckDuckGo). Default [\"google\"]. Pick several to compare what each engine suggests for the same keyword.",
            "items": {
              "type": "string"
            },
            "default": [
              "google"
            ]
          },
          "language": {
            "title": "Language",
            "pattern": "^([A-Za-z]{2,3}([-_]([A-Za-z]{2}|[0-9]{3}))?)?$",
            "type": "string",
            "description": "Interface language for the suggestions, e.g. en, de, es, ja, pt-BR. Sent as hl to Google/YouTube, setlang to Bing and accept-language to Amazon. DuckDuckGo's autocomplete ignores it (the value is still written to every row).",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "pattern": "^([A-Za-z]{2})?$",
            "type": "string",
            "description": "Two-letter country code for the suggestions, e.g. us, gb, de, jp, my. Sent as gl to Google/YouTube and used to pick the Amazon marketplace (US, GB, DE, JP and IN have their own; other countries fall back to the US marketplace). DuckDuckGo's autocomplete ignores it.",
            "default": "us"
          },
          "expand": {
            "title": "Expansion mode",
            "enum": [
              "none",
              "alphabet",
              "questions"
            ],
            "type": "string",
            "description": "none queries only the seed. alphabet also queries the seed plus a-z and 0-9 (37 queries per keyword and engine). questions also queries the seed plus who/what/where/when/why/how/can/is/are/does and vs/for/near (14 queries per keyword and engine). Expansion is how you harvest suggestions the plain seed never returns.",
            "default": "none"
          },
          "maxSuggestionsPerKeyword": {
            "title": "Max suggestions per keyword and engine",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many suggestions to keep for each keyword on each engine (1-1,000, default 200). Expansion stops for that keyword/engine once the limit is reached.",
            "default": 200
          },
          "maxItems": {
            "title": "Max rows (suggestions)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of suggestion rows delivered in one run (1-100,000, default 1,000). Counts delivered suggestions only: free empty/error status rows do not use up the cap. Default 1,000 costs $0.30.",
            "default": 1000
          },
          "dedupe": {
            "title": "De-duplicate suggestions",
            "type": "boolean",
            "description": "When true (default), a suggestion that an engine already returned for the same keyword is delivered once, even when a later expanded query returns it again (e.g. \"coffee\" from both \"coffee\" and \"coffee shop\"). Duplicates are counted in the run log.",
            "default": true
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many keyword/engine tasks run in parallel (1-20, default 5). Each task sends its expanded queries one after another (up to 37 requests with alphabet expansion), so 5 is already gentle on the engines' rate limits.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Plain HTTP works and is the default; switch on Apify Proxy if an engine starts rate-limiting your runs or if you need suggestions as seen from another country."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}