# Google People Also Ask Scraper — PAA Question Tree (`steadyscrape/google-people-also-ask-scraper`) Actor

Google People Also Ask scraper and API: expand any keyword into a tree of the related questions people ask on Google (PAA data), with parent question, depth and position, plus the "People also search for" terms. Any country and language. Export to JSON, CSV or Excel, or via API.

- **URL**: https://apify.com/steadyscrape/google-people-also-ask-scraper.md
- **Developed by:** [Steady Scrape](https://apify.com/steadyscrape) (community)
- **Categories:** SEO tools, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 questions

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Google People Also Ask Scraper — PAA question tree

This **Google People Also Ask scraper** turns any keyword into the tree of questions people ask on Google. It reads the
**People also ask** box (PAA) of the keyword's results page, then searches each of those questions and adds the
questions on their pages under them, level by level, like AlsoAsked does. Every question comes with its **parent
question, depth, position and path**, plus the **"People also search for"** terms of each page it read. Any country,
any language.

Use it as a People Also Ask API from your own code, or export the tree to JSON, CSV or Excel for a content brief, an FAQ
section or a keyword map.

**What it does not return: the answers.** Google does not put them in the results page; they load only when a person
opens a question in a browser, and the page of a question now shows an AI Overview rather than a featured snippet. This
Actor sells the questions and how they connect, not answer text.

**US$0.003 per search + US$0.001 per question.** One keyword with its 4 questions is US$0.007; a tree of 20 questions
(the default) is about US$0.035. Pages Google did not answer and keywords without a People also ask box cost nothing.

### What the Google People Also Ask scraper returns

One free `keyword` row per keyword, then one `question` row per question in outline order (each question followed by the
questions found under it):

| field | example |
|---|---|
| `type` | `keyword` (free: the keyword's own page) or `question` (charged) |
| `keyword` | `how to start a podcast` |
| `question` | `Is it hard to start a podcast?` |
| `depth` | `1` for the keyword's own box, `2` for the questions of their pages, … (`0` on the keyword row) |
| `position` | `2`: its place in its parent's box, as Google ordered it |
| `treePath` | `1.2`: the second question under the keyword's first question |
| `parentQuestion` | `Do podcasts make money?` (`null` at depth 1) |
| `path` | `["Do podcasts make money?", "Is it hard to start a podcast?"]` |
| `children` | how many questions this one added to the tree when it was searched; `null` when its page was not read |
| `relatedSearches` | Google's "People also search for" on that page: `["Do podcasts make money reddit", …]` |
| `treeSize` | on the keyword row: how many questions the tree delivered |
| `googleUrl` | the search, to open in a browser |
| `country`, `language` | `us`, `en` |
| `status`, `reason` | `ok`; on the keyword row `no_questions`, `blocked` or `unreadable` say why a keyword gave no tree |
| `scrapedAt` | when the row was read, ISO 8601 UTC |

### Example: "how to start a podcast", depth 2, 8 questions

```
1     Do podcasts make money?
1.1     How much money does a podcaster make?
1.2     Is it hard to start a podcast?
1.3     Who has the highest paid podcast?
1.4     Do Joe Rogan's podcast guests get paid?
2     How much does it cost to start a podcast?
3     Can you start a podcast for free?
4     Can a normal person start a podcast?
```

Two searches (the keyword and "Do podcasts make money?"), eight questions: US$0.014. The keyword row adds Google's
related searches: `Podcast equipment`, `How to start a podcast on spotify`, `How to start a podcast for beginners`, …

### Use cases

- **Content briefs and blog outlines**: the questions a page about a topic should answer, grouped the way Google groups
  them, with H2/H3 structure from `depth`.
- **FAQ sections and FAQ schema**: real questions in the searcher's words, for any keyword list.
- **Keyword research and topic clusters**: `relatedSearches` and the question tree show what else people look for
  around a term, in any country and language.
- **AI search and LLM content**: the questions an answer engine is expected to cover, as structured data for a prompt.
- **Tracking how Google's questions change**: schedule the same keywords weekly and compare the trees.

### Input

```json
{
    "keywords": ["how to start a podcast", "best crm for small business"],
    "maxDepth": 2,
    "maxQuestionsPerKeyword": 20,
    "country": "us",
    "language": "en"
}
```

- `keywords`: keywords or questions, one tree each. Repeats are searched once.
- `maxDepth` (1–5, default 2): `1` reads only the keyword's own box; each level more searches every question of the
  level above.
- `maxQuestionsPerKeyword` (1–500, default 20): the tree stops growing at this size. Google shows about 4 questions per
  page, so 20 questions take about 5 searches.
- `country` (Google's `gl`, default `us`) and `language` (Google's `hl`, default `en`). Write the keywords in that
  language: `wie starte ich einen podcast` with `de` and `de` gives German questions.

### How the tree grows

Level by level (breadth first): the keyword's page gives level 1; then the questions of level 1 are searched in Google's
order, and each page adds its new questions under the question that was searched. The tree asks only the pages its
ceiling still needs, so a ceiling of 8 reads two pages, not five.

**Each question appears once per tree.** A page often repeats questions already in the tree, or the keyword itself:
those are skipped and not charged. Two different keywords are two trees, so a question they share is delivered under
each.

### Pricing

| event | price | when |
|---|---|---|
| `search` | US$0.003 | each Google results page read that has a People also ask box: the keyword's and each question's |
| `question` | US$0.001 | each new question in a tree |

- One keyword, depth 1: 1 search + 4 questions = **US$0.007**.
- One keyword, depth 2, 20 questions: about 5 searches + 20 questions = **US$0.035**.
- 100 keywords, depth 1: about **US$0.70**.

Free: keyword rows, keywords whose page has no People also ask box, pages Google did not answer, repeated questions.
Your spending limit is respected to the question: the run stops before a page or a question it could not pay for.

### Limits

- **No answers** (see above): questions, their tree and related searches only.
- **Google shows about 4 questions per page** to a client that is not a browser, and the children of a question are the
  questions Google shows when that question is searched. A browser that clicks a question loads a few more inline; that
  needs a browser session this Actor does not use.
- Not every keyword has a People also ask box: brands, single words and navigational searches often do not. Questions
  and "how to", "best … for", "what is" phrases usually do (every one measured did).
- Google decides what a search means: a misspelled or made-up keyword can come back with questions about the word Google
  thinks you meant.
- When Google asks for verification, the page is asked again through another IP of Apify's search proxy; a check is
  never solved. After three in a row the run stops asking and the rest are free `blocked` rows.

### Is it legal to scrape Google People Also Ask?

This Actor reads public Google results pages, the same ones anyone sees without signing in, and stores no personal
data: questions are generic search phrases. Scraping Google is against Google's terms of service, as it is for every
Google scraper; check that your use fits the laws that apply to you, and do not use the data to impersonate Google or to
mislead anyone. This Actor is not affiliated with or endorsed by Google.

# Actor input Schema

## `keywords` (type: `array`):

One per line: <code>how to start a podcast</code>, <code>best crm for small business</code>, <code>is excel a crm system?</code>. Each one is searched on Google and grows its own tree of People also ask questions. Questions and how-to phrases are the searches that carry a People also ask box; a brand or a single word often has none (that keyword is a free row).

## `maxDepth` (type: `integer`):

<b>1</b>: only the questions Google shows for the keyword (one search per keyword). <b>2</b>: each of those questions is searched too, and the questions on its page are added under it. <b>3</b> and more go one level further each time. Every page read is one <code>search</code> event.

## `maxQuestionsPerKeyword` (type: `integer`):

The tree stops growing once it holds this many questions. Google shows about 4 questions per page, so 20 questions take about 5 searches. Questions repeated within a tree are delivered once and not charged.

## `country` (type: `string`):

Two-letter code of the country whose Google answers (Google's <code>gl</code>): <code>us</code>, <code>gb</code>, <code>de</code>, <code>in</code>…

## `language` (type: `string`):

Google's interface language (<code>hl</code>): <code>en</code>, <code>de</code>, <code>es</code>, <code>pt-BR</code>… Write the keywords in that language: Google answers German questions for <code>wie starte ich einen podcast</code> with <code>de</code>.

## Actor input object example

```json
{
  "keywords": [
    "how to start a podcast"
  ],
  "maxDepth": 2,
  "maxQuestionsPerKeyword": 8,
  "country": "us",
  "language": "en"
}
```

# Actor output Schema

## `questions` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keywords": [
        "how to start a podcast"
    ],
    "maxQuestionsPerKeyword": 8
};

// Run the Actor and wait for it to finish
const run = await client.actor("steadyscrape/google-people-also-ask-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "keywords": ["how to start a podcast"],
    "maxQuestionsPerKeyword": 8,
}

# Run the Actor and wait for it to finish
run = client.actor("steadyscrape/google-people-also-ask-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keywords": [
    "how to start a podcast"
  ],
  "maxQuestionsPerKeyword": 8
}' |
apify call steadyscrape/google-people-also-ask-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,steadyscrape/google-people-also-ask-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/HViopPyws82NbC1SX/builds/kYf98dwkpv2KnVU7R/openapi.json
