{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Autocomplete Scraper — Keywords & Monitor",
    "description": "Google Autocomplete keyword scraper for long-tail SEO research. Expand seeds with A–Z, numbers, questions, prepositions, comparisons and custom modifiers, recurse through suggestions, run country/language matrices, cap requests/results, and monitor new or disappeared suggestions.",
    "version": "0.1",
    "x-build-id": "QeNPI74S5K5Obn021"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zenomastro~google-autocomplete-keywords/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zenomastro-google-autocomplete-keywords",
        "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/zenomastro~google-autocomplete-keywords/runs": {
      "post": {
        "operationId": "runs-sync-zenomastro-google-autocomplete-keywords",
        "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/zenomastro~google-autocomplete-keywords/run-sync": {
      "post": {
        "operationId": "run-sync-zenomastro-google-autocomplete-keywords",
        "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": [
          "seeds"
        ],
        "properties": {
          "seeds": {
            "title": "Seed keywords",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Seed queries to expand with Google Autocomplete.",
            "default": [
              "artificial intelligence"
            ],
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Google hl language code, e.g. en, it, de.",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Google gl country code, e.g. US, IT, GB.",
            "default": "US"
          },
          "expandAlphabet": {
            "title": "Append A-Z",
            "type": "boolean",
            "description": "Query seed + each letter a-z.",
            "default": true
          },
          "prependAlphabet": {
            "title": "Prepend A-Z",
            "type": "boolean",
            "description": "Query each letter + seed for extra discovery.",
            "default": false
          },
          "expandNumbers": {
            "title": "Append 0-9",
            "type": "boolean",
            "description": "Also query seed + digits 0-9 for numeric long-tail variations.",
            "default": false
          },
          "expandQuestions": {
            "title": "Question prefixes",
            "type": "boolean",
            "description": "Add how/what/why/when/where/who/which/can/does/is/best prefixes.",
            "default": true
          },
          "maxSuggestions": {
            "title": "Maximum unique suggestions",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on unique paid suggestion rows emitted across all seeds.",
            "default": 5000
          },
          "maxRequests": {
            "title": "Maximum Google requests",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on Google Suggest requests for predictable runtime and request volume.",
            "default": 500
          },
          "delayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Delay between Google Suggest requests to reduce burst rate.",
            "default": 120
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Maximum seconds allowed for each Google Suggest HTTP request.",
            "default": 15
          },
          "retries": {
            "title": "Retries",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Retries each failed Suggest request after transient network or HTTP errors.",
            "default": 2
          },
          "expandPrepositions": {
            "title": "Preposition expansions",
            "type": "boolean",
            "description": "Expand seed + for/with/without/near/vs/like/to/from/in.",
            "default": true
          },
          "expandComparisons": {
            "title": "Comparison & alternatives",
            "type": "boolean",
            "description": "Expand comparison, alternative and competitor long-tail patterns.",
            "default": false
          },
          "recursiveDepth": {
            "title": "Recursive depth",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Use returned suggestions as new queries for deeper long-tail discovery. Request caps still apply.",
            "default": 1
          },
          "maxSuggestionsPerSeed": {
            "title": "Maximum suggestions per seed",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Per-seed safety cap before moving to the next seed.",
            "default": 2000
          },
          "monitorKey": {
            "title": "Keyword monitor key",
            "type": "string",
            "description": "Reuse a stable key on scheduled runs to detect newly appeared and disappeared suggestions.",
            "default": ""
          },
          "onlyNew": {
            "title": "Emit only new suggestions",
            "type": "boolean",
            "description": "With monitorKey, bill/output only suggestions not seen in the previous snapshot.",
            "default": false
          },
          "languages": {
            "title": "Language matrix",
            "maxItems": 20,
            "type": "array",
            "description": "Optional multiple Google hl language codes. When set, runs every language × country combination; otherwise the single language field is used.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Country matrix",
            "maxItems": 20,
            "type": "array",
            "description": "Optional multiple Google gl country codes. When set, runs every language × country combination; maximum 100 combinations.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "customPrefixes": {
            "title": "Custom prefixes",
            "maxItems": 100,
            "type": "array",
            "description": "Optional custom words or phrases queried before each seed, e.g. how to, best, free.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "customSuffixes": {
            "title": "Custom suffixes",
            "maxItems": 100,
            "type": "array",
            "description": "Optional custom words or phrases queried after each seed, e.g. software, near me, for beginners.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}