Extract People Also Ask (PAA) questions from Google SERP via SerpAPI — for SEO content research and topic clustering.
pip install seo-paafrom seo_paa import PAAScraper
scraper = PAAScraper(api_key="your_serpapi_key", lang="en", country="us")
results = scraper.get_paa("best surf camp senegal", max_results=10)
for r in results:
print(r.question)
print(r.snippet)
print()Output:
Is Senegal good for surfing?
Yes, Ngor Island is considered one of West Africa's best surf spots...
Best time to surf in Senegal?
The main surf season runs from November to April...
import pandas as pd
data = scraper.get_paa_dict("surf camp west africa")
df = pd.DataFrame(data)
df.to_csv("paa_results.csv", index=False)Extracts the product name from a page's JSON-LD Product schema, then fetches PAA:
results = scraper.get_paa_from_url("https://example.com/product/surf-board")# Basic usage (set SERPAPI_KEY env var)
seo-paa "best surf camp senegal"
# With options
seo-paa "best surf camp" --lang fr --country fr --max 5
# JSON output (pipe to jq, save to file, etc.)
seo-paa "surf senegal" --json | jq '.[].question'| Parameter | Description | Default |
|---|---|---|
api_key |
SerpAPI key (or SERPAPI_KEY env var) |
— |
lang |
Language code (en, fr, es…) |
"en" |
country |
Country code (us, fr, gb…) |
"us" |
location |
Full location string (e.g. "Paris,Ile-de-France,France") |
None |
PAA questions are a direct signal of what users ask around a topic. Mining them at scale lets you:
- Build FAQ sections that target featured snippets
- Identify content gaps vs. competitors
- Cluster topics for pillar/cluster content strategies
- Feed into content briefs and internal linking maps
- Python 3.9+
- SerpAPI key (serpapi.com)
MIT — Simon Azoulay