{
  "openapi": "3.0.1",
  "info": {
    "title": "Keyword Autocomplete Scraper: Google, YouTube, Bing, Amazon",
    "description": "Autocomplete keyword ideas from Google, YouTube, Bing, DuckDuckGo and Amazon in one run: each keyword expanded a-z, with question and comparison modifiers, for 36 countries. Deduplicated, with position and relevance. $0.001 per keyword.",
    "version": "0.1",
    "x-build-id": "wzx4oSrIx58bNegjN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dtkfoundry~keyword-autocomplete/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dtkfoundry-keyword-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/dtkfoundry~keyword-autocomplete/runs": {
      "post": {
        "operationId": "runs-sync-dtkfoundry-keyword-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/dtkfoundry~keyword-autocomplete/run-sync": {
      "post": {
        "operationId": "run-sync-dtkfoundry-keyword-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",
        "properties": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "One keyword or phrase per line (\"coffee maker\", \"how to learn spanish\"). Each keyword is looked up on every engine you pick. Leave empty for a free format example.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "engines": {
            "title": "Engines",
            "type": "array",
            "description": "Where the suggestions come from. Google = Google Search, YouTube = YouTube search box, Amazon = the marketplace of the country below.",
            "items": {
              "type": "string",
              "enum": [
                "google",
                "youtube",
                "bing",
                "duckduckgo",
                "amazon"
              ],
              "enumTitles": [
                "Google",
                "YouTube",
                "Bing",
                "DuckDuckGo",
                "Amazon"
              ]
            },
            "default": [
              "google"
            ]
          },
          "expansions": {
            "title": "Expansions",
            "type": "array",
            "description": "How each keyword is widened into more lookups. Alphabet: keyword + a ... z (27 lookups, about 150-300 unique ideas on Google). Questions: how / what / why ... + keyword. Prepositions: keyword + for / with / vs / near ... Question and preposition words are English. None selected = the keyword alone (about 10-15 ideas).",
            "items": {
              "type": "string",
              "enum": [
                "alphabet",
                "questions",
                "prepositions"
              ],
              "enumTitles": [
                "Alphabet (a-z)",
                "Questions (how, what, why ...)",
                "Prepositions (for, with, vs ...)"
              ]
            },
            "default": [
              "alphabet"
            ]
          },
          "maxSuggestionsPerKeyword": {
            "title": "Maximum suggestions per keyword and engine",
            "minimum": 0,
            "type": "integer",
            "description": "Caps the cost: each unique suggestion is one charged result. 0 = no limit (a-z on Google gives about 150-300). The first ones found are kept: the keyword's own suggestions, then each expansion in order.",
            "default": 0
          },
          "country": {
            "title": "Country",
            "enum": [
              "us",
              "gb",
              "ca",
              "au",
              "nz",
              "ie",
              "in",
              "sg",
              "za",
              "de",
              "at",
              "ch",
              "fr",
              "be",
              "nl",
              "es",
              "mx",
              "ar",
              "co",
              "cl",
              "it",
              "pt",
              "br",
              "pl",
              "se",
              "dk",
              "no",
              "fi",
              "jp",
              "kr",
              "tr",
              "id",
              "ph",
              "my",
              "ae",
              "sa"
            ],
            "type": "string",
            "description": "The country the engines answer for. Amazon has a store in: United States, United Kingdom, Germany, France, Canada, Spain, Italy, Netherlands, Japan, Mexico, Australia, Brazil.",
            "default": "us"
          },
          "language": {
            "title": "Language (optional)",
            "type": "string",
            "description": "2-letter language code (en, de, es ...) for Google, YouTube and Bing. Empty = the country's main language."
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "suggestions",
              "grouped"
            ],
            "type": "string",
            "description": "Suggestions: one row per unique suggestion (best for CSV and spreadsheets). Grouped: one row per keyword and engine with all its suggestions in a list.",
            "default": "suggestions"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}