{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Autocomplete Keyword Scraper",
    "description": "Keyword research tool: turns seed keywords into hundreds of long-tail keyword ideas from Google autocomplete, with A–Z, number, question and preposition expansions, plus YouTube, Google Shopping, Amazon and Bing suggestions, by country and language.",
    "version": "0.0",
    "x-build-id": "CTbDC1dVBSlKWI4eX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mina_safwat~google-autocomplete-keywords-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mina_safwat-google-autocomplete-keywords-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/mina_safwat~google-autocomplete-keywords-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mina_safwat-google-autocomplete-keywords-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/mina_safwat~google-autocomplete-keywords-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mina_safwat-google-autocomplete-keywords-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": {
          "keywords": {
            "title": "Seed keywords",
            "type": "array",
            "description": "The keywords to find ideas for, one per line, such as coffee maker or running shoes for women. You can also paste a search results link (https://www.google.com/search?q=coffee, a YouTube, Amazon or Bing search link): its search words are used.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Suggestion sources",
            "type": "array",
            "description": "Where the suggestions come from. Each source is asked separately and gives its own rows, so a keyword found on two sources appears once per source.",
            "items": {
              "type": "string",
              "enum": [
                "google",
                "youtube",
                "google-shopping",
                "amazon",
                "bing"
              ],
              "enumTitles": [
                "Google web search",
                "YouTube",
                "Google Shopping",
                "Amazon",
                "Bing"
              ]
            },
            "default": [
              "google"
            ]
          },
          "addAlphabet": {
            "title": "Add a–z (seed + letter)",
            "type": "boolean",
            "description": "Also types the seed followed by each letter: coffee maker a, coffee maker b … coffee maker z (26 lookups).",
            "default": true
          },
          "addNumbers": {
            "title": "Add 0–9 (seed + digit)",
            "type": "boolean",
            "description": "Also types the seed followed by each digit: coffee maker 1 … coffee maker 9 (10 lookups). Good for finding sizes, years and models.",
            "default": false
          },
          "addQuestions": {
            "title": "Add question words",
            "type": "boolean",
            "description": "Also types question words before the seed: how, what, why, when, where, which, who, can, is, are, does, will (12 lookups). Finds the questions people ask.",
            "default": true
          },
          "addPrepositions": {
            "title": "Add prepositions and comparisons",
            "type": "boolean",
            "description": "Also types the seed followed by for, with, without, near, to, vs, versus, like, or, and (10 lookups). Finds use cases and comparisons.",
            "default": false
          },
          "recursiveDepth": {
            "title": "Recursive depth",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "0 types only the seed and its expansions. 1 also types every new keyword found, to find keywords of keywords; 2 does that once more. Each level multiplies the lookups, so keep the per-seed limit below in mind.",
            "default": 0
          },
          "maxKeywordsPerSeed": {
            "title": "Max keywords per seed",
            "minimum": 1,
            "type": "integer",
            "description": "Stops after this many unique keywords for each seed on each source. With the default expansions (a–z and question words) one seed gives about 400–500 on Google.",
            "default": 500
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code, such as us, gb, de, in or br. Suggestions follow what people search in that country. For Amazon it picks the store; Amazon has stores in us, ca, mx, br, gb, de, fr, it, es, nl, se, pl, tr, be, eg, ae, sa, in, jp, au and sg.",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language code, such as en, de, es, fr, ar or pt-BR. Use the language your seeds are written in.",
            "default": "en"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave this empty: the suggestion services answer the Actor directly, and if one ever refuses, the Actor retries through Apify's datacenter and then residential proxies on its own.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}