{
  "openapi": "3.0.1",
  "info": {
    "title": "Keyword Suggestions: Google, YouTube, Bing & eBay Autocomplete",
    "description": "Get autocomplete keyword ideas from Google, YouTube, Google Shopping, Google News, Bing, Yahoo and eBay in one run and one schema. A-Z, number, question and preposition expansion, recursive depth, any country and language. No proxy needed. Pay per suggestion.",
    "version": "1.0",
    "x-build-id": "qtS3u23TQztDEvZ5Y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/randy-tools~keyword-suggestions-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-randy-tools-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/randy-tools~keyword-suggestions-scraper/runs": {
      "post": {
        "operationId": "runs-sync-randy-tools-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/randy-tools~keyword-suggestions-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-randy-tools-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",
        "required": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Seed keywords to get autocomplete suggestions for, e.g. \"coffee maker\". One keyword per line, up to 1,000 per run.",
            "default": [
              "coffee maker"
            ],
            "items": {
              "type": "string"
            }
          },
          "engines": {
            "title": "Engines",
            "type": "array",
            "description": "Which autocomplete sources to query. Each engine's suggestions are output separately, labelled with the engine.",
            "items": {
              "type": "string",
              "enum": [
                "google",
                "youtube",
                "google-shopping",
                "google-news",
                "bing",
                "yahoo",
                "ebay"
              ],
              "enumTitles": [
                "Google",
                "YouTube",
                "Google Shopping",
                "Google News",
                "Bing",
                "Yahoo (US only)",
                "eBay"
              ]
            },
            "default": [
              "google",
              "youtube"
            ]
          },
          "expansions": {
            "title": "Expand each keyword with",
            "type": "array",
            "description": "Extra queries per keyword to find more ideas: letters sends \"coffee maker a\" to \"coffee maker z\"; numbers sends \"coffee maker 0\" to \"9\"; questions sends \"how coffee maker\", \"what coffee maker\" and 11 more; prepositions sends \"coffee maker for\", \"with\", \"vs\" and 10 more. Question and preposition words are English. Leave empty to query the keyword only.",
            "items": {
              "type": "string",
              "enum": [
                "letters",
                "numbers",
                "questions",
                "prepositions"
              ],
              "enumTitles": [
                "Letters A-Z (26 queries)",
                "Numbers 0-9 (10 queries)",
                "Question words (13 queries)",
                "Prepositions and comparisons (13 queries)"
              ]
            },
            "default": [
              "letters"
            ]
          },
          "customPrefixes": {
            "title": "Custom prefixes",
            "type": "array",
            "description": "Words to put before each keyword as extra queries, e.g. \"best\", \"cheap\", or question words in another language (\"wie\", \"was\").",
            "items": {
              "type": "string"
            }
          },
          "customSuffixes": {
            "title": "Custom suffixes",
            "type": "array",
            "description": "Words to put after each keyword as extra queries, e.g. \"review\", \"2026\", \"für\".",
            "items": {
              "type": "string"
            }
          },
          "depth": {
            "title": "Depth",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "0 queries your keywords (and their expansions) only. 1 also queries every suggestion found, 2 and 3 go further. Each level multiplies the number of queries, so set Max suggestions as well.",
            "default": 0
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code, e.g. \"us\", \"gb\", \"de\", \"in\". Sets Google's region, the Bing market and the eBay site.",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language code, e.g. \"en\", \"de\", \"es\", \"pt-BR\". Suggestions come in this language where the engine supports it.",
            "default": "en"
          },
          "maxSuggestions": {
            "title": "Max suggestions",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many unique suggestions in total, across all keywords and engines.",
            "default": 300
          },
          "maxSuggestionsPerSeed": {
            "title": "Max suggestions per keyword and engine",
            "minimum": 0,
            "type": "integer",
            "description": "Stop collecting for a keyword on an engine after this many suggestions, so one keyword cannot use up the whole run. 0 means no limit.",
            "default": 0
          },
          "excludeKeywords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Drop suggestions that contain any of these whole words or phrases, e.g. brand names or \"free\". Dropped suggestions are not charged.",
            "items": {
              "type": "string"
            }
          },
          "mustContainSeed": {
            "title": "Only suggestions containing the keyword",
            "type": "boolean",
            "description": "Drop suggestions that do not contain every word of the seed keyword (\"maker\" also matches \"makers\").",
            "default": false
          },
          "questionsOnly": {
            "title": "Questions only",
            "type": "boolean",
            "description": "Keep only suggestions that are questions (start with how, what, why, can, is ... or end with ?). Combine with the question expansion.",
            "default": false
          },
          "minWords": {
            "title": "Minimum words",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only suggestions with at least this many words, e.g. 3 for long-tail keywords.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max parallel requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many suggestion requests run at the same time. Each host is also limited to 3 at a time.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: the Actor works without a proxy and never switches to one by itself. Set one here only if you want every request to go through it.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}