{
  "openapi": "3.0.1",
  "info": {
    "title": "Keyword Suggestions API — Google Autocomplete, Bing | $0.5/1k",
    "description": "Keyword ideas from Google, Google Shopping and Bing autocomplete, no API key. Expand seeds with a-z, questions, prepositions or your own modifiers, in any country and language. Rows carry engine, position, type and a question flag; a keywords mode ranks unique ideas. $0.50 per 1,000.",
    "version": "0.1",
    "x-build-id": "XJnlPRlNk4sqAa6PO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/glasswing~keyword-suggestions-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-glasswing-keyword-suggestions-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/glasswing~keyword-suggestions-scraper/runs": {
      "post": {
        "operationId": "runs-sync-glasswing-keyword-suggestions-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/glasswing~keyword-suggestions-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-glasswing-keyword-suggestions-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": {
          "queries": {
            "title": "Seed keywords",
            "type": "array",
            "description": "Keywords to get suggestions for, one per line (for example `coffee maker`, `running shoes`). Each seed is sent to every selected engine, country and language.",
            "default": [
              "coffee maker"
            ],
            "items": {
              "type": "string"
            }
          },
          "engines": {
            "title": "Engines",
            "uniqueItems": true,
            "type": "array",
            "description": "Where to read suggestions from. `google` = Google web search, `google_shopping` = Google Shopping (product intent), `bing` = Bing web search.",
            "items": {
              "type": "string",
              "enum": [
                "google",
                "google_shopping",
                "bing"
              ],
              "enumTitles": [
                "Google web search",
                "Google Shopping",
                "Bing web search"
              ]
            },
            "default": [
              "google"
            ]
          },
          "expand": {
            "title": "Expand each seed",
            "uniqueItems": true,
            "type": "array",
            "description": "Extra requests per seed for long-tail ideas. `alphabet` sends the seed + a..z and 0..9 (36 extra requests), `questions` sends who/what/when/where/why/how/which/can/are/is + seed (10), `prepositions` sends the seed + for/with/without/near/vs/versus/to/like (8). The seed on its own is always sent.",
            "items": {
              "type": "string",
              "enum": [
                "alphabet",
                "questions",
                "prepositions"
              ],
              "enumTitles": [
                "Alphabet (seed + a..z, 0..9)",
                "Questions (who / what / how ... + seed)",
                "Prepositions (seed + for / with / vs ...)"
              ]
            },
            "default": []
          },
          "customModifiers": {
            "title": "Custom modifiers",
            "type": "array",
            "description": "Your own words to combine with every seed, one per line. `best` sends `coffee maker best`; use `{seed}` to place the seed yourself, e.g. `best {seed} 2026` or `cheap {seed}`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Countries",
            "type": "array",
            "description": "Two-letter country codes to ask the engines for, e.g. `us`, `gb`, `de`, `in`. Suggestions differ by country. Every seed is requested once per country and language.",
            "default": [
              "us"
            ],
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Languages",
            "type": "array",
            "description": "Interface language codes, e.g. `en`, `de`, `es`, `fr`, `pt-BR`. Google uses it as its `hl` language; Bing combines it with the country into a market such as `de-DE`.",
            "default": [
              "en"
            ],
            "items": {
              "type": "string"
            }
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "suggestions",
              "keywords"
            ],
            "type": "string",
            "description": "`suggestions` = one row per suggestion per request (seed, expansion, engine, position). `keywords` = one row per unique keyword across the whole run, with how many seeds and engines returned it, most widely suggested first.",
            "default": "suggestions"
          },
          "maxSuggestionsPerQuery": {
            "title": "Max suggestions per request",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Keep at most this many suggestions from each request (Google returns up to 15, Bing up to 12).",
            "default": 20
          },
          "dedupe": {
            "title": "Remove duplicates",
            "type": "boolean",
            "description": "In `suggestions` output, write a suggestion only once per seed, engine, country and language, even when several expansions return it.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many rows. Each saved row with status `ok` is one billable result. One seed without expansion gives about 10-15 rows per engine; with `alphabet` about 200-400.",
            "default": 1000
          },
          "startUrls": {
            "title": "Suggest or search URLs (advanced)",
            "type": "array",
            "description": "Optional. Google or Bing search URLs (`https://www.google.com/search?q=...&gl=de&hl=de`, `https://www.bing.com/search?q=...`) or their suggest-endpoint URLs. Each one becomes a seed on that engine, country and language. Leave the example as is when you use Seed keywords.",
            "default": [
              "https://suggestqueries.google.com/complete/search?client=chrome&hl=en&gl=us&ie=UTF-8&oe=UTF-8&q=coffee%20maker"
            ],
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The Actor works from Apify's datacenter without a proxy. Enable Apify Proxy (datacenter group) only if you see blocked requests; residential proxies are not needed.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}