{
  "openapi": "3.0.1",
  "info": {
    "title": "Google People Also Ask Scraper (Answers, 4 Levels)",
    "description": "Get every People Also Ask question Google shows for your keywords as a tree up to 4 levels deep, with answer, source title and link, plus AI Overview text and citations, related searches and Autocomplete. Track if your site is cited. No login. $1 per 1,000 rows plus $4 per 1,000 Google searches.",
    "version": "0.1",
    "x-build-id": "D66DgtQeMBbIpZNcE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/locaihost~people-also-ask/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-locaihost-people-also-ask",
        "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/locaihost~people-also-ask/runs": {
      "post": {
        "operationId": "runs-sync-locaihost-people-also-ask",
        "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/locaihost~people-also-ask/run-sync": {
      "post": {
        "operationId": "run-sync-locaihost-people-also-ask",
        "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": "Search phrases, one per line. Each is searched on Google and sent to Autocomplete. Paste up to 5,000.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "enum": [
              "us",
              "gb",
              "ca",
              "au",
              "nz",
              "ie",
              "in",
              "sg",
              "my",
              "ph",
              "za",
              "ng",
              "ae",
              "de",
              "at",
              "ch",
              "fr",
              "be",
              "es",
              "mx",
              "ar",
              "co",
              "cl",
              "it",
              "pt",
              "br",
              "nl",
              "se",
              "dk",
              "no",
              "fi",
              "pl",
              "cz",
              "ro",
              "gr",
              "tr",
              "il",
              "jp",
              "kr",
              "tw",
              "hk",
              "id",
              "th",
              "vn"
            ],
            "type": "string",
            "description": "Where the searches come from. Google shows different questions, overviews and suggestions in each country.",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "enum": [
              "",
              "en",
              "es",
              "de",
              "fr",
              "it",
              "pt-BR",
              "pt-PT",
              "nl",
              "sv",
              "da",
              "no",
              "fi",
              "pl",
              "cs",
              "ro",
              "el",
              "tr",
              "he",
              "ar",
              "hi",
              "ja",
              "ko",
              "zh-CN",
              "zh-TW",
              "zh-HK",
              "id",
              "ms",
              "th",
              "vi",
              "tl"
            ],
            "type": "string",
            "description": "Google's interface language. Leave on Country default to use the country's main language.",
            "default": ""
          },
          "includePeopleAlsoAsk": {
            "title": "People Also Ask questions",
            "type": "boolean",
            "description": "The questions in Google's \"People also ask\" box, one row each.",
            "default": true
          },
          "questionDepth": {
            "title": "Question depth ($)",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "1 = the questions shown for your keyword. 2 = each of those is searched too: you get its answer (text, source title and link) and the questions it shows. 3 and 4 go further. Each answered question is one more Google search and costs $4 per 1,000 instead of $1.",
            "default": 1
          },
          "maxQuestionsPerKeyword": {
            "title": "Most questions per keyword",
            "minimum": 0,
            "type": "integer",
            "description": "Stops expanding a keyword once this many questions are found, across all levels. 0 = no limit.",
            "default": 30
          },
          "includeAiOverview": {
            "title": "AI Overview row per keyword ($)",
            "type": "boolean",
            "description": "One row per keyword searched on Google with its AI Overview text and every cited source (empty when Google shows none). $4 per 1,000 keywords: it is what each Google search costs, so it is always on when questions or related searches are on. Switch questions, related searches and this off for an Autocomplete-only run.",
            "default": true
          },
          "trackDomains": {
            "title": "Track your domains in AI Overviews",
            "type": "array",
            "description": "Optional. Your site (and, if you like, rivals' sites), e.g. \"example.com\". Each AI Overview row then says whether the overview cites one of these domains or a subdomain of it: trackedDomainCited, citationState (cited, competitor-only or no-overview) and citedTrackedUrls. Read from the overview's cited links only. Same price; nothing extra is searched.",
            "items": {
              "type": "string"
            }
          },
          "includeRelatedSearches": {
            "title": "Related searches",
            "type": "boolean",
            "description": "The \"People also search for\" phrases on each results page that is searched.",
            "default": true
          },
          "includeAutocomplete": {
            "title": "Autocomplete suggestions",
            "type": "boolean",
            "description": "What Google suggests as you type your keyword (about 10 to 15 phrases).",
            "default": true
          },
          "autocompleteAlphabet": {
            "title": "A to Z expansion",
            "type": "boolean",
            "description": "Also ask Autocomplete for \"keyword a\", \"keyword b\" ... \"keyword z\": usually 200 to 400 long-tail phrases per keyword.",
            "default": false
          },
          "autocompleteQuestions": {
            "title": "Question words",
            "type": "boolean",
            "description": "Also ask for \"how keyword\", \"what keyword\", \"why keyword\", \"can keyword\" and similar (13 English question words).",
            "default": false
          },
          "onlyNew": {
            "title": "Only new rows",
            "type": "boolean",
            "description": "Skip every row an earlier run with the same country and language already returned. An AI Overview counts as new when its text changes. For scheduled tracking.",
            "default": false
          },
          "maxResults": {
            "title": "Most rows per run",
            "minimum": 0,
            "type": "integer",
            "description": "Stops the run after this many rows. 0 = no limit.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}