Dataforseo
BusinessdataforseoDataforseo is an Agent Skill for business published in the BuilderIO/agent-native repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Query keyword rankings, search volume, and SEO metrics via DataForSEO. Use this skill when the user asks about SEO performance, keyword rankings, or organic search data.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/BuilderIO/agent-native/blob/HEAD/templates/analytics/.builder/skills/dataforseo/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/dataforseo, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
DataForSEO Integration
Connection
- Base URL:
https://api.dataforseo.com/v3 - Auth: Basic auth —
Base64($DATAFORSEO_LOGIN:$DATAFORSEO_PASSWORD) - Env vars:
DATAFORSEO_LOGIN,DATAFORSEO_PASSWORD - Caching: 6-hour in-memory cache, max 50 entries
Server Lib
- File:
server/lib/dataforseo.ts
Exported Functions
| Function | Description |
|---|---|
getRelevantBlogPages(limit?, offset?) | Blog pages with SEO metrics |
getAllBlogPagesSeo() | All blog pages (paginated, up to 1000) |
getTopBlogKeywords(limit?, offset?) | Top ranking keywords |
getAllTopBlogKeywords(maxResults?) | All top keywords |
getRankedKeywordsForPage(blogSlug, limit?) | Keywords for a specific blog post |
Script Usage
# Top keywords
pnpm action seo-top-keywords --fields=keyword,rank_absolute,etv
# Search for specific keywords
pnpm action seo-top-keywords --grep=remix --fields=keyword,rank_absolute,etv
Key Patterns & Gotchas
- API uses asynchronous tasks model — response has
tasks[]withstatus_code: 20000for success - Response structure:
tasks[].result[0].items— code drills into this - Filtering uses SQL-like filter arrays in request body; code filters for
/blog/% getAllBlogPagesSeopaginates in steps of 100, up to 1000 by default- Errors include DataForSEO task status codes/messages