Not a docs mirror and not a tutorial. It is the opinionated layer on top of the DataForSEO API: what each of the 12 modules actually does, how the task-vs-live queue and per-call cost model really work, which endpoint to reach for which job, and what it costs. Every claim is dated and traces to an official source or a live API call.
- Pick the right call, the first time. A 12-module, ~200+ endpoint surface is easy to get wrong. The brain routes job to endpoint and flags the cost footguns (Live vs Standard, depth, priority).
- Current, not stale. Built from a one-shot scrape, then hardened against the live API and the 2026 changelog (API v2 closure, AI Mode endpoints, MCP 2.9.9, the AI Optimization API).
- Connected, not flat. 76 interlinked notes (avg 28 wikilinks each, zero dead links) so you navigate by concept, surface, workflow, and decision, not by scrolling docs.
- SaaS builders and in-house engineers who want raw data at scale and will write code against a REST API.
- SEO agencies and operators standardizing on one data provider and needing a cost-control playbook.
- AI / GEO builders tracking brand visibility inside ChatGPT, Claude, Gemini, and Perplexity answers.
- What is inside
- Quick start
- The DataForSEO agent surface
- How it was built
- Quality and verification
- Staying current
- Repository layout
- Roadmap
- Contributing
- License and author
| Layer | Count | What it is |
|---|---|---|
Concept notes (wiki/concepts/) |
33 | Platform mechanics (lifecycle, cost, auth, limits, errors, sandbox, webhooks) plus one capability note per module |
Platform notes (wiki/platforms/) |
10 | Each surface from DataForSEO's lens: Google, Bing, YouTube, Amazon, App Stores, review sites, AI assistants |
Entity notes (wiki/entities/) |
8 | The vendor, the MCP server, competitors (Ahrefs/Semrush/Moz), and upstream data sources |
Workflow notes (wiki/flows/) |
10 | Step-by-step pipelines: rank tracking, keyword research, backlink audit, site audit, local SEO, AI visibility, e-commerce |
Decision notes (wiki/decisions/) |
7 | The judgment spine: which API for which job, live vs standard, MCP vs REST, vs competitors, cost control |
Research pack (wiki/sources/) |
104 citations | Every claim's dated source: official docs plus competitive and GEO research |
Adapter (dataforseo_brain/, scripts/) |
1 chain | A response importer, cost synthesizer, and markdown report renderer with passing tests |
Modules covered: SERP, Keywords Data, DataForSEO Labs, Backlinks, OnPage, Domain Analytics, Content Analysis, Merchant, App Data, Business Data, AI Optimization, Databases.
- Open the repository root in Obsidian (File then Open vault then this folder). The graph view is pre-colored by folder.
- Start at
wiki/index.md, then the routerdec-which-api-for-which-job. - Navigate by wikilink. Good entry points:
cap-platform-architecture- the API shape and envelopecap-task-vs-live-execution- the queue vs live modeldec-cost-control-strategy- how to spend lessplay-cost-optimized-pipeline- the money-saving reference flow
Prefer the web? The same vault is published as a searchable site: agricidaniel.github.io/dataforseo-brain.
The buyer is an engineer or agency standardizing on DataForSEO. The outputs are a normalized record set and a cost scorecard. What the brain does and does not do (its boundaries) is documented in docs/PRODUCT_BOUNDARIES.md.
The repo ships agent entry points (SKILL.md, AGENTS.md, CLAUDE.md, GEMINI.md) so a coding
agent can read the brain first and answer grounded, source-cited questions. The included adapter
normalizes any DataForSEO v3 response into flat records and renders a cost scorecard:
python scripts/import_dataforseo.py --response tests/fixtures/sample-dataforseo-response.json
python scripts/render_dataforseo_report.py tests/fixtures/sample-dataforseo-response.jsonAn orchestrated, source-cited pipeline (a watcher thread plus parallel secretaries):
- Scrape - 6 parallel agents captured every module's endpoints from
docs.dataforseo.com/v3(226 unique doc URLs). - Live test - a cost-governed harness called the production API under a hard budget cap, capturing authentic response fixtures and the real per-call costs.
- Research - fact-checked deep-dives on pricing, the request lifecycle, the competitive landscape, GEO, and the MCP ecosystem.
- Synthesize - capability notes written from the raw docs and research, every claim cited.
- Review - a multi-agent coverage, accuracy, and structure audit with adversarial consolidation, plus a Brainstein SSS+ audit and an Obsidian lint.
- Brainstein maturity: market-ready (anatomy audit SSS+ 100/100) - all 8 categories full, zero failing items,
--strictclean. - 76 notes, avg 82 lines, avg 28 wikilinks, 0 dead links, 0 orphans (independently lint-verified).
- Live-verified 2026-06-26 against the production API (43 endpoints exercised; real costs recorded in the cost ledger).
- Adapter tests green (importer, synthesis, renderer, malformed-input) plus a deterministic demo vault.
- Honest gaps documented: the Backlinks API and AI Optimization LLM Mentions require separate dashboard subscriptions (re-verified 2026-06-26, not removed); those modules are covered from official docs.
The API moves. The brain is re-verified monthly for endpoint, parameter, and pricing drift, and
again before every release. Fast-moving facts live in references/current-requirements.md
with a refresh_due date; the source ledger is references/source-ledger.json.
DataForSEO Brain/
├── wiki/ Obsidian vault (the brain): concepts, platforms, entities, flows, decisions, sources
├── dataforseo_brain/ Python package: response adapters (importer, synthesis, renderer)
├── scripts/ CLIs: import, synthesize, render, live test harness
├── schemas/ JSON Schemas (response envelope)
├── tests/ pytest suite + fixtures (incl. a live response fixture)
├── references/ source-ledger.json, adapter-manifest.json, product-spec, current-requirements
├── examples/sample-vault/ deterministic demo vault
├── site/ Quartz static-site generator (publishes wiki/ to GitHub Pages)
├── specs/ the Brainstein spec this brain was generated from
├── SKILL.md, AGENTS.md, CLAUDE.md, GEMINI.md agent entry points
└── README.md
- Capture live Backlinks and LLM Mentions fixtures once those subscriptions are enabled.
- Add a scheduled monthly drift-check that re-runs the live verification and flags changes.
- Expand the adapter chain with per-module synthesizers (SERP opportunities, backlink toxicity).
See CONTRIBUTING.md. House rules: every claim carries a dated, trustworthy source; no credentials in the repo; no em dashes in note bodies; keep wikilinks resolving.
Licensed under the terms in LICENSE. Documentation facts belong to DataForSEO and the cited publishers; see NOTICE and THIRD_PARTY_NOTICES.md.
Built by Daniel Agrici (@AgriciDaniel) with Brainstein. Built and maintained inside the AI Marketing Hub Pro community: https://www.skool.com/ai-marketing-hub-pro

