dataforseo-labs-api
9
总安装量
3
周安装量
#33552
全站排名
安装命令
npx skills add https://github.com/leonardo-picciani/dataforseo-agent-skills --skill dataforseo-labs-api
Agent 安装分布
opencode
3
antigravity
3
qwen-code
3
roo
3
gemini-cli
3
Skill 文档
DataForSEO Labs API
Provenance
This is an experimental project to test how OpenCode, plugged into frontier LLMs (OpenAI GPT-5.2), can help generate high-fidelity agent skill files for API integrations.
When to Apply
- “find SERP competitors”, “keyword gap analysis”, “domain intersection”
- “keyword ideas”, “related keywords”, “keyword suggestions”
- “ranked keywords for a domain”, “relevant pages”
- “traffic estimation”, “historical SERPs”, “domain rank overview”
- “build an SEO research platform”, “competitive intelligence”
Integration Contract (Language-Agnostic)
See references/REFERENCE.md for the shared DataForSEO integration contract (auth, status handling, task lifecycle, sandbox, and .ai responses).
Live-first Endpoints
- Many Labs endpoints are Live-first (
/live/) and designed for interactive research.
Group Notes
- Use the official Locations/Languages reference to avoid invalid geo/language inputs.
Steps
- Identify the exact endpoint(s) in the official docs for this use case.
- Choose execution mode:
- Live (single request) for interactive queries
- Task-based (post + poll/webhook) for scheduled or high-volume jobs
- Build the HTTP request:
- Base URL:
https://api.dataforseo.com/ - Auth: HTTP Basic (
Authorization: Basic base64(login:password)) from https://docs.dataforseo.com/v3/auth/ - JSON body exactly as specified in the endpoint docs
- Base URL:
- Execute and validate the response:
- Check top-level
status_codeand eachtasks[]item status - Treat any
status_code != 20000as a failure; surfacestatus_message
- Check top-level
- For task-based endpoints:
- Store
tasks[].id - Poll
tasks_readythen fetch results withtask_get(or usepostback_url/pingback_urlif supported)
- Store
- Return results:
- Provide a normalized summary for the user
- Include the raw response payload for debugging
Inputs Checklist
- Credentials: DataForSEO API login + password (HTTP Basic Auth)
- Target: keyword(s) / domain(s) / URL(s) / query string (depends on endpoint)
- Targeting (if applicable): location + language, device, depth/limit
- Time window (if applicable): date range, trend period, historical flags
- Output preference: regular vs advanced vs html (if the endpoint supports it)
Example (cURL)
curl -u "${DATAFORSEO_LOGIN}:${DATAFORSEO_PASSWORD}" -H "Content-Type: application/json" -X POST "https://api.dataforseo.com/v3/<group>/<path>/live" -d '[
{
"<param>": "<value>"
}
]'
Notes:
- Replace
<group>/<path>with the exact endpoint path from the official docs. - For task-based flows, use the corresponding
task_post,tasks_ready, andtask_getendpoints.
Docs Map (Official)
- Overview: https://docs.dataforseo.com/v3/dataforseo_labs/overview/
- Locations and Languages: https://docs.dataforseo.com/v3/dataforseo_labs/locations_and_languages/
Engine overviews:
- Google: https://docs.dataforseo.com/v3/dataforseo_labs/google/overview/
- Amazon: https://docs.dataforseo.com/v3/dataforseo_labs/amazon/overview/
- Google Play: https://docs.dataforseo.com/v3/dataforseo_labs/google_play/overview/
- App Store: https://docs.dataforseo.com/v3/dataforseo_labs/app_store/overview/
Business & Product Use Cases
- Competitive intelligence features: discover competitors per topic and market.
- “Gap analysis” workflows (what competitors rank for that you don’t).
- Prioritize content and landing pages by estimated opportunity.
- Category dashboards (top searches, category-level demand).
- Portfolio analysis for agencies managing multiple sites.
- Automated SEO audit summaries for sales/upsell conversations.
Examples (User Prompts)
- “If you don’t have the skill installed, install
dataforseo-labs-apiand then continue.” - “Install the DataForSEO Labs skill and find our top SERP competitors for these topics.”
- “Run a keyword gap analysis: what competitors rank for that we don’t, by market.”
- “Give me keyword ideas for ‘remote onboarding’ and pick top 20 opportunities.”
- “Estimate traffic potential for these 30 keywords and propose a content roadmap.”
- “Create a competitor landscape report with intersections and top pages.”