# Pangolinfo AI Serp

> Programmatic Google SERP + AI Overviews (including AI Mode multi-turn) via Pangolinfo APIs, with optional page screenshots. Use when you need structured results (JSON) for pipelines/agents. Requires PANGOLIN_TOKEN or PANGOLIN_EMAIL + PANGOLIN_PASSWORD.

- Skill: `pangolin-spg/pangolinfo-ai-serp` (Agent Skill, multi-file: 5 files)
- Install (CLI): `npx skillmds@latest add pangolin-spg/pangolinfo-ai-serp`
- Raw SKILL.md: https://api.skillmd.com/api/skills/pangolin-spg/pangolinfo-ai-serp/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: MIT
- Author: Pangolin-spg (https://skillmd.com/u/pangolin-spg)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/pangolin-spg/pangolinfo-ai-serp

---


# Pangolinfo AI SERP (Google SERP + AI Overviews)

Search Google programmatically via **Pangolinfo** APIs.
Extract **Google AI Overviews**, run **AI Mode** searches with **multi-turn follow-ups**, and optionally capture **screenshots**.

## Migration note (Amazon)

Amazon scraping is now a separate skill: **Pangolinfo Amazon Scraper**.

If you previously used Amazon features from the combined skill, install the new Amazon skill and switch your `--mode` usage accordingly.

## Prerequisites

- **Python 3.6+** (standard library only)
- A **Pangolinfo account**: https://tool.pangolinfo.com/
- Auth env vars (choose one):
  - `PANGOLIN_TOKEN` (recommended)
  - or `PANGOLIN_EMAIL` + `PANGOLIN_PASSWORD`

```bash
export PANGOLIN_TOKEN="..."
# or
export PANGOLIN_EMAIL="..."
export PANGOLIN_PASSWORD="..."
```

## Minimal examples

AI Mode search:

```bash
python3 scripts/pangolinfo.py --q "what is quantum computing" --mode ai-mode
```

Standard SERP + AI Overview extraction (+ optional screenshot):

```bash
python3 scripts/pangolinfo.py --q "openclaw" --mode serp --screenshot
```

Multi-turn dialogue (AI Mode follow-ups):

```bash
python3 scripts/pangolinfo.py --q "python web frameworks" --mode ai-mode \
  --follow-up "compare flask vs django" \
  --follow-up "which is better for beginners"
```

## Output

The script prints structured JSON to stdout.

Key output fields:
- `organic_results[]`
- `ai_overview[]` (only when returned)
- `screenshot` (only when requested and available)
- `task_id`, `success`

## Links

- Product: https://www.pangolinfo.com/ai-serp-skill/
- AI Overview SERP API: https://www.pangolinfo.com/ai-overview-serp-api/
- AI Overview API documentation: https://docs.pangolinfo.com/en-api-reference/aiModeSerpApi/aiModeSerpAPI
- Source: https://github.com/Pangolin-spg/openclaw-skills/tree/main/pangolinfo-ai-serp

## Deep-dive references

- [references/ai-mode-api.md](references/ai-mode-api.md)
- [references/ai-overview-serp-api.md](references/ai-overview-serp-api.md)
- [references/error-codes.md](references/error-codes.md)

