{
  "openapi": "3.0.1",
  "info": {
    "title": "Keyword Ideas: Google, YouTube, Bing & Amazon Autocomplete",
    "description": "Keyword research tool: thousands of long-tail keyword ideas and question keywords from Google, YouTube, Bing and Amazon autocomplete in one run. A–Z, questions, best/vs, prepositions, depth, any country/language, cross-engine dedupe and intent tags. No browser, 256 MB.",
    "version": "1.0",
    "x-build-id": "U3SIMeq2toReSVvEa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mitp1997~keyword-ideas-autocomplete/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mitp1997-keyword-ideas-autocomplete",
        "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/mitp1997~keyword-ideas-autocomplete/runs": {
      "post": {
        "operationId": "runs-sync-mitp1997-keyword-ideas-autocomplete",
        "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/mitp1997~keyword-ideas-autocomplete/run-sync": {
      "post": {
        "operationId": "run-sync-mitp1997-keyword-ideas-autocomplete",
        "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 seed keyword per line, e.g. <code>coffee maker</code>. Each seed is expanded with the modifiers below and sent to every selected engine. Duplicate seeds are ignored.",
            "items": {
              "type": "string"
            }
          },
          "engines": {
            "title": "Autocomplete sources",
            "type": "array",
            "description": "Where to collect suggestions. Google = Google Search autocomplete, YouTube = YouTube search autocomplete, Bing = Bing autosuggest, Amazon = Amazon search box suggestions for the marketplace of the selected country.",
            "items": {
              "type": "string",
              "enum": [
                "google",
                "youtube",
                "bing",
                "amazon"
              ],
              "enumTitles": [
                "Google",
                "YouTube",
                "Bing",
                "Amazon"
              ]
            },
            "default": [
              "google",
              "youtube",
              "bing",
              "amazon"
            ]
          },
          "country": {
            "title": "Country",
            "enum": [
              "US",
              "GB",
              "IN",
              "CA",
              "AU",
              "DE",
              "FR",
              "ES",
              "IT",
              "NL",
              "BE",
              "IE",
              "SE",
              "PL",
              "TR",
              "AE",
              "SA",
              "EG",
              "JP",
              "SG",
              "MX",
              "BR",
              "AR",
              "CL",
              "CO",
              "PE",
              "PT",
              "CH",
              "AT",
              "DK",
              "NO",
              "FI",
              "CZ",
              "RO",
              "HU",
              "GR",
              "UA",
              "IL",
              "ZA",
              "NG",
              "KE",
              "PK",
              "BD",
              "LK",
              "NP",
              "ID",
              "MY",
              "PH",
              "TH",
              "VN",
              "KR",
              "TW",
              "HK",
              "NZ"
            ],
            "type": "string",
            "description": "Country for localised suggestions (Google <code>gl</code>, Bing market, Amazon marketplace). Amazon has 22 marketplaces; for other countries Amazon suggestions come from amazon.com.",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Interface language code for Google, YouTube and Bing, e.g. <code>en</code>, <code>de</code>, <code>hi</code>, <code>es</code>, <code>pt-BR</code>. Amazon uses the marketplace's language.",
            "default": "en"
          },
          "expandAlphabet": {
            "title": "A–Z expansion (seed + a, seed + b …)",
            "type": "boolean",
            "description": "Query <code>seed a</code> … <code>seed z</code> on every engine. Gives the most long-tail keywords (26 extra queries per seed per engine).",
            "default": true
          },
          "expandQuestions": {
            "title": "Question keywords (how, what, why …)",
            "type": "boolean",
            "description": "Query <code>how seed</code>, <code>what seed</code>, <code>why seed</code>, <code>can seed</code>, <code>is seed</code> and more (14 question words). Great for FAQ sections, People-Also-Ask style content and YouTube video ideas.",
            "default": true
          },
          "expandCommercial": {
            "title": "Commercial modifiers (best, top, vs, review, price …)",
            "type": "boolean",
            "description": "Query <code>best seed</code>, <code>top seed</code>, <code>cheap seed</code>, <code>seed vs</code>, <code>seed or</code>, <code>seed alternative</code>, <code>seed review</code> and <code>seed price</code>.",
            "default": true
          },
          "expandPrepositions": {
            "title": "Prepositions (for, with, without, near, to …)",
            "type": "boolean",
            "description": "Query <code>seed for</code>, <code>seed with</code>, <code>seed without</code>, <code>seed near</code>, <code>seed to</code>, <code>seed like</code>, <code>seed from</code>, <code>seed in</code>, <code>seed on</code>, <code>seed and</code>, <code>seed under</code>.",
            "default": false
          },
          "expandNumbers": {
            "title": "Numbers (seed + 0 … 9)",
            "type": "boolean",
            "description": "Query <code>seed 0</code> … <code>seed 9</code> (finds years, sizes, model numbers).",
            "default": false
          },
          "customPrefixes": {
            "title": "Custom prefixes",
            "type": "array",
            "description": "Your own words to put before each seed, e.g. <code>kaise</code>, <code>diy</code>, <code>buy</code>.",
            "items": {
              "type": "string"
            }
          },
          "customSuffixes": {
            "title": "Custom suffixes",
            "type": "array",
            "description": "Your own words to put after each seed, e.g. <code>near me</code>, <code>for beginners</code>, <code>2026</code>.",
            "items": {
              "type": "string"
            }
          },
          "depth": {
            "title": "Depth",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "1 = seed + modifiers only. 2 or 3 = also re-query the strongest new keywords (suggestions of suggestions) for deeper long-tail. Each extra level adds up to <i>Keywords per depth level</i> × engines requests per seed.",
            "default": 1
          },
          "depthKeywordsLimit": {
            "title": "Keywords per depth level",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many of the best new keywords (found by most engines, highest position) are re-queried at each extra depth level, per seed.",
            "default": 10
          },
          "dedupeAcrossEngines": {
            "title": "Merge duplicates across engines",
            "type": "boolean",
            "description": "On: one row per unique keyword with an <code>engines</code> list (e.g. found on Google + Amazon). Off: one row per keyword per engine.",
            "default": true
          },
          "onlyKeywordsContainingSeed": {
            "title": "Only keywords containing the seed",
            "type": "boolean",
            "description": "Drop suggestions that do not contain every word of the seed (Google and Bing sometimes suggest spelling variants or related brands).",
            "default": false
          },
          "excludeWords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Drop keywords that contain any of these whole words, e.g. brand names or <code>free</code>.",
            "items": {
              "type": "string"
            }
          },
          "minWordCount": {
            "title": "Minimum words per keyword",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "E.g. 3 keeps only long-tail keywords with 3+ words. 0 = no filter.",
            "default": 0
          },
          "maxKeywordsPerSeed": {
            "title": "Max keywords per seed",
            "minimum": 0,
            "type": "integer",
            "description": "Keep at most this many keywords per seed (highest-priority first: seed suggestions, questions, commercial, prepositions, A–Z). 0 = no limit.",
            "default": 0
          },
          "maxItems": {
            "title": "Max keywords in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many keywords across all seeds (caps the cost). 0 = no limit. A single seed with the default expansions returned about 900–1,500 keywords on all 4 engines in our tests.",
            "default": 0
          },
          "exportForGoogleTrends": {
            "title": "Prepare input for Google Trends",
            "type": "boolean",
            "description": "Save the top 5 keywords per seed as a ready-to-use input for <a href='https://apify.com/mitp1997/google-trends-scraper-reliable' target='_blank'>Google Trends Scraper</a> in the <code>TRENDS_INPUT</code> key-value store record, so you can check which ideas are growing.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed normally: the autocomplete endpoints work without a proxy. If an engine starts blocking, the Actor switches that engine to Apify Proxy automatically (see below).",
            "default": {
              "useApifyProxy": false
            }
          },
          "fallbackToProxy": {
            "title": "Switch to Apify Proxy when blocked",
            "type": "boolean",
            "description": "If an engine returns 3 blocked responses in a row (HTTP 429/403/captcha), its remaining requests go through Apify Proxy (datacenter, then residential if available on your plan).",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel requests per engine",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Requests in flight per engine. Requests are also paced (~1 every 150 ms per engine) to stay polite.",
            "default": 3
          },
          "maxRequestRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries with exponential backoff for rate limits, server errors and timeouts.",
            "default": 4
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Timeout of a single HTTP request.",
            "default": 20
          },
          "failIfNoResults": {
            "title": "Fail the run if nothing was found",
            "type": "boolean",
            "description": "Mark the run as failed when 0 keywords were saved because requests failed (useful for monitoring and schedules).",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}