{
  "openapi": "3.0.1",
  "info": {
    "title": "Keyword Suggestions: Google, YouTube & Bing Autocomplete",
    "description": "Keyword ideas from Google, YouTube, Bing, Google Shopping, DuckDuckGo and Yahoo autocomplete in one run: A–Z, questions and buyer keywords for any country and language, no duplicates. No login.",
    "version": "0.1",
    "x-build-id": "UTyfyn9I5iEuknkSo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mastertools~keyword-suggestions/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mastertools-keyword-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/mastertools~keyword-suggestions/runs": {
      "post": {
        "operationId": "runs-sync-mastertools-keyword-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/mastertools~keyword-suggestions/run-sync": {
      "post": {
        "operationId": "run-sync-mastertools-keyword-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": "Seed keywords",
            "type": "array",
            "description": "Topics to get keyword ideas for, one per line (for example: coffee, running shoes, crm software). Every seed gets its own suggestions; a keyword is never repeated across seeds.",
            "default": [
              "coffee"
            ],
            "items": {
              "type": "string"
            }
          },
          "engines": {
            "title": "Search engines",
            "type": "array",
            "description": "Where to take suggestions from. One row per keyword shows every engine that suggested it. Google Shopping gives product and buyer keywords, YouTube gives video topics.",
            "items": {
              "type": "string",
              "enum": [
                "google",
                "youtube",
                "bing",
                "google-shopping",
                "duckduckgo",
                "yahoo"
              ],
              "enumTitles": [
                "Google",
                "YouTube",
                "Bing",
                "Google Shopping",
                "DuckDuckGo",
                "Yahoo"
              ]
            },
            "default": [
              "google",
              "youtube",
              "bing"
            ]
          },
          "expand": {
            "title": "Expand with",
            "type": "array",
            "description": "Extra searches around every seed for long-tail ideas: questions (how, what, why… coffee), A–Z (coffee a, coffee b…), 0–9, prepositions and comparisons (coffee for, coffee vs…) and buyer words (best, cheap, price, review, near me). Question, preposition and buyer words follow the language you pick. Leave empty for the seed's own suggestions only.",
            "items": {
              "type": "string",
              "enum": [
                "questions",
                "letters",
                "numbers",
                "prepositions",
                "buyer"
              ],
              "enumTitles": [
                "Questions (how, what, why…)",
                "Letters A–Z",
                "Numbers 0–9",
                "Prepositions & comparisons (for, with, vs…)",
                "Buyer intent (best, cheap, price, review…)"
              ]
            },
            "default": [
              "questions",
              "letters"
            ]
          },
          "maxResultsPerKeyword": {
            "title": "Max keywords per seed",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many unique keyword ideas to collect for each seed. Raise it to a few thousand together with more expansions and depth 2 for full keyword research.",
            "default": 200
          },
          "country": {
            "title": "Country",
            "enum": [
              "US",
              "GB",
              "CA",
              "AU",
              "IN",
              "IE",
              "NZ",
              "ZA",
              "SG",
              "PH",
              "NG",
              "KE",
              "PK",
              "DE",
              "AT",
              "CH",
              "FR",
              "BE",
              "NL",
              "LU",
              "ES",
              "PT",
              "IT",
              "GR",
              "PL",
              "CZ",
              "SK",
              "HU",
              "RO",
              "BG",
              "HR",
              "SI",
              "RS",
              "UA",
              "RU",
              "KZ",
              "TR",
              "SE",
              "NO",
              "DK",
              "FI",
              "EE",
              "LV",
              "LT",
              "IL",
              "AE",
              "SA",
              "EG",
              "MA",
              "BR",
              "MX",
              "AR",
              "CO",
              "CL",
              "PE",
              "JP",
              "KR",
              "TW",
              "HK",
              "CN",
              "ID",
              "MY",
              "TH",
              "VN",
              "BD"
            ],
            "type": "string",
            "description": "Suggestions as people in this country see them.",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "de",
              "fr",
              "es",
              "it",
              "pt",
              "pt-BR",
              "nl",
              "pl",
              "cs",
              "sk",
              "hu",
              "ro",
              "bg",
              "hr",
              "sl",
              "sr",
              "el",
              "tr",
              "ru",
              "uk",
              "sv",
              "no",
              "da",
              "fi",
              "et",
              "lv",
              "lt",
              "he",
              "ar",
              "fa",
              "hi",
              "bn",
              "ur",
              "ja",
              "ko",
              "zh-CN",
              "zh-TW",
              "id",
              "ms",
              "th",
              "vi",
              "tl",
              "sw"
            ],
            "type": "string",
            "description": "Language of the search box. Also picks the words for questions, prepositions and buyer intent (English words for languages without their own list).",
            "default": "en"
          },
          "depth": {
            "title": "Depth",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "1 = suggestions for the seed and its expansions. 2 = every keyword found is typed in again for even longer long-tail phrases. 3 = one more level.",
            "default": 1
          },
          "excludeWords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Keywords containing any of these words or phrases are left out (for example: competitor brands, near me, free).",
            "default": [],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}