{
  "openapi": "3.0.1",
  "info": {
    "title": "Google People Also Ask Scraper | $2 per 1k | 3-Level Trees",
    "description": "Scrape Google \"People also ask\" questions for any keyword, country, language and city. Question trees 1-3 levels deep, answer snippets, free related searches, autocomplete and organic results. Keywords without PAA are not charged. Never a silent empty run.",
    "version": "0.1",
    "x-build-id": "4C9dNPNpdohHOTV90"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/solidrows~google-paa-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-solidrows-google-paa-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/solidrows~google-paa-scraper/runs": {
      "post": {
        "operationId": "runs-sync-solidrows-google-paa-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/solidrows~google-paa-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-solidrows-google-paa-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": "Search queries to collect \"People also ask\" questions for, exactly as people type them into Google. One keyword per line. Each keyword is one Google search at depth 1.",
            "items": {
              "type": "string"
            }
          },
          "maxDepth": {
            "title": "Depth of the question tree",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "1 = the questions Google shows for the keyword (usually 4). 2 = every question is searched too and its own questions are added (about 15-25 per keyword). 3 = one more level (about 50-80). Each extra level multiplies the number of Google searches by about 4.",
            "default": 1
          },
          "maxQuestions": {
            "title": "Max questions per keyword",
            "minimum": 0,
            "type": "integer",
            "description": "Stop expanding a keyword once this many unique questions are collected. 0 = no limit.",
            "default": 100
          },
          "includeAnswerSnippets": {
            "title": "Add an answer snippet to every question",
            "type": "boolean",
            "description": "Search each question on Google and attach the first organic result: its title, text snippet, site name and (when Google exposes it) URL. This is the text Google ranks first for the question, a ready draft answer for FAQ pages. Charged per question that received a snippet (answer-snippet event), plus one extra Google search per question that would not be searched anyway (questions on the last depth level).",
            "default": false
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code of the Google results (the gl parameter): us, gb, de, fr, es, in, br, au, ca, jp... Any country Google supports.",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Interface language code (the hl parameter): en, de, es, fr, pt, it, ru, ja... Should match the language of your keywords.",
            "default": "en"
          },
          "location": {
            "title": "Exact location (city or region)",
            "type": "string",
            "description": "Optional. Search as if from a specific place. Use Google's canonical location name: \"Austin,Texas,United States\", \"London,England,United Kingdom\", \"Berlin,Germany\". Sent to Google as the uule parameter. Leave empty for country-level results."
          },
          "includeRelatedSearches": {
            "title": "Related searches (free)",
            "type": "boolean",
            "description": "Also save the \"People also search for\" / related searches block from every results page the scraper opens. Free: comes from the same search.",
            "default": true
          },
          "includeOrganicResults": {
            "title": "Organic results for the keyword (free)",
            "type": "boolean",
            "description": "Also save the organic results of each keyword's first page: position, title, site, displayed URL and snippet. Free: comes from the same search. Note: Google hides the full link of most results behind a redirect, so the url field is filled only where Google exposes it; site and displayed URL are always there.",
            "default": false
          },
          "includeAutocomplete": {
            "title": "Autocomplete suggestions (free)",
            "type": "boolean",
            "description": "Also save Google's autocomplete suggestions for each keyword (up to 10), the phrases Google proposes while a user types. Free.",
            "default": false
          },
          "outputMode": {
            "title": "Output format",
            "enum": [
              "flat",
              "tree"
            ],
            "type": "string",
            "description": "Flat: one row per question (best for CSV, Excel and Google Sheets). Tree: one row per keyword with the nested question tree, related searches, organic results and autocomplete inside (best for JSON, APIs and AI agents).",
            "default": "flat"
          },
          "dedupeAcrossKeywords": {
            "title": "Remove duplicate questions across keywords",
            "type": "boolean",
            "description": "By default duplicates are removed within each keyword. Turn this on to save (and pay for) every question only once per run, even when several keywords lead to it. Useful for lists of close keywords.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}