Source-linked skill

DataForSEO SERP

Pull live Google SERPs, keyword volume and CPC, AI Overview citations, and LLM answers via DataForSEO to cluster keywords and lock page intent.

Opens the skill review in Omnyo for Mac. Needs the next Omnyo for Mac update.

Part of SEO Skills by Ilias Ism

Get all 32 skills in one click

Open-source collection by Ilias Ism in Illyism/seo-skills (MIT license). Install every skill at once in Omnyo or download the whole package.

SKILL.md @8611e46Download SKILL.mdOpen on GitHub
# DataForSEO SERP Workflows

The live SERP is the only ground truth for what Google wants on a query. Embeddings, keyword tools, and gut feel guess at intent. The Top-10 URLs show it. Every workflow below reads the SERP first and ends in a file or a route in the user's repo.

**When invoking:** On first use, state the connection path and the workflow, then run it. On repeat use, go straight to the output.

## Step 0: Pick the Connection Path

```
Are DataForSEO tools in your tool list (serp, keywords_data, ai_optimization)?
├── Yes → use the MCP tools with the same payloads as the REST calls below.
└── No → are $DATAFORSEO_LOGIN and $DATAFORSEO_PASSWORD set?
    ├── Yes → use the `dfs` shell helper below (REST v3, Basic Auth).
    └── No → how many queries?
        ├── < 10 → live web search fallback. Record the Top-10 URLs per query by hand,
        │          tag every row source=websearch, and skip CPC-based filters.
        └── >= 10 → stop and ask for DataForSEO credentials.
```

Why the 10-query cap: web search results are personalized and unstable, which is fine for a spot check and wrong for clustering a keyword list where one bad SERP merges two clusters.

### REST helper

```bash
dfs() { # usage: dfs <endpoint> '<json array payload>'
  curl -sS -u "$DATAFORSEO_LOGIN:$DATAFORSEO_PASSWORD" \
    -H 'Content-Type: application/json' -X POST \
    "https://api.dataforseo.com/v3/$1" -d "$2"
}
mkdir -p seo/data/serp
```

### Rules for every call

- Check both `.status_code == 20000` and `.tasks[0].status_code == 20000`. Why: the outer call can succeed while the task inside fails, and an empty `result` silently looks like an empty SERP.
- **Guard against Google Poisoned SERPs (post-Sept 2026 anti-scraper defense):** Flagged datacenter routes can still return `HTTP 200` / `status_code == 20000` with ~95 organic rows while completely suppressing exact brand/entity domains, scrambling `website_name` across unrelated sites, or returning `0/10` domain overlap against the true Page 1 (and wrapping outbound URLs in `google.com/goto`). On brand or navigational queries, verify the expected canonical domain appears in the Top 10; on commercial queries, spot-check that at least 2 of the Top-3 titles/URLs match the query intent and unwrap any `google.com/goto` hrefs before clustering. If a DataForSEO Live SERP fails that sanity check, retry once or fall back to `linkdr_get_keyword_serp` (`https://linkdr.com/mcp`) or live web search before locking page intent.
- Send one task per Live call and loop over keywords with 5-10 parallel requests. Why: Live endpoints return the result in the same response, so batching gains nothing and one bad keyword fails the batch.
- Default `location_code: 2840` (United States), `language_code: "en"`, `device: "desktop"`, `depth: 10`. Change location only when the user sells into another market.
- Save every raw response to `seo/data/serp/<slug>.json`. Read `.tasks[0].cost` and keep a running total. Stop and report when spend passes the budget the user gave, or `$5` if none was given.

## Workflow A: SERP URL-Overlap Keyword Clustering (Anti-Cannibalization)

**Output:** `seo/keyword-clusters.json` + `seo/content-map.md`.

### Why semantic clustering cannibalizes

An LLM or embedding model groups keywords by shared words. Google groups them by shared intent. "invoice template" and "invoice generator" share a word and get merged by an LLM, but Google serves downloadable templates for one and interactive tools for the other, so a merged page fights two intents and wins neither. The reverse also happens: "invoicing software for freelancers" and "freelance billing app" share no words, get split into two pages, then compete for the same Top-10 because Google treats them as one intent. Shared ranking URLs are the only signal that matches how Google groups queries.

Install

Three steps, with a review first

  1. 01Open it in Omnyo with one click
  2. 02Review the exact files Omnyo screened
  3. 03Install it for your workspace

omnyo explore marketplace --query "dataforseo serp"

Related
See all

The same Marketplace, inside Omnyo.

Nothing installs, imports or connects until you have reviewed it in Omnyo and confirmed.

Download for Mac
  1. 01Find it here or in Omnyo’s Skill Library
  2. 02Open it in Omnyo with one click
  3. 03Review the exact files before anything installs