dataforseo-cli

Use when doing keyword research (volume, difficulty, ideas), checking App Store or Google Play rankings for Bloom or competitors, or looking up Google SERP rankings for content/landing pages. Also use when building ASO keyword lists or finding App Store competitors.

9 stars

Best use case

dataforseo-cli is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Use when doing keyword research (volume, difficulty, ideas), checking App Store or Google Play rankings for Bloom or competitors, or looking up Google SERP rankings for content/landing pages. Also use when building ASO keyword lists or finding App Store competitors.

Teams using dataforseo-cli should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/dataforseo-cli/SKILL.md --create-dirs "https://raw.githubusercontent.com/exiao/skills/main/external-services/dataforseo-cli/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/dataforseo-cli/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How dataforseo-cli Compares

Feature / Agentdataforseo-cliStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Use when doing keyword research (volume, difficulty, ideas), checking App Store or Google Play rankings for Bloom or competitors, or looking up Google SERP rankings for content/landing pages. Also use when building ASO keyword lists or finding App Store competitors.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# DataForSEO Skill

SEO and ASO data via the DataForSEO API. Covers keyword volume, difficulty, App Store rankings, SERP rankings, and keyword suggestions.

## Setup

Run once at the start of every session:

```bash
export BASE="https://api.dataforseo.com/v3"
export DFS_AUTH="Authorization: Basic $DATAFORSEO_AUTH_BASE64"
# All POSTs: curl -s -X POST "$BASE/..." -H "$DFS_AUTH" -H "Content-Type: application/json" -d '[...]'
# All GETs:  curl -s "$BASE/..." -H "$DFS_AUTH"
```

Dashboard: `https://app.dataforseo.com`

## Key IDs

| App | Store | ID |
|-----|-------|----|
| Bloom: AI for Investing | App Store | `$BLOOM_APP_STORE_ID` |

## API Patterns

**Live APIs** (instant): Keywords Data, SERP, DataForSEO Labs  
**Task-based APIs** (async): App Data (App Store/Play)

Task pattern:
1. POST `*/task_post` → save `id`
2. GET `*/tasks_ready` → wait for task to appear
3. GET `*/task_get/advanced/<id>` → fetch results

---

## Endpoints

### 1. Keyword Search Volume · $0.075/request (≤700 keywords)

```bash
curl -s -X POST "$BASE/keywords_data/google_ads/search_volume/live" \
  -H "$DFS_AUTH" -H "Content-Type: application/json" \
  -d '[{"keywords": ["ai investing app", "portfolio tracker"], "location_code": 2840, "language_code": "en"}]'
```

**Returns:** `search_volume`, `competition` (LOW/MEDIUM/HIGH), `competition_index` (0–100), `cpc`, `monthly_searches`  
**Parse:** `data['tasks'][0]['result']` → flat list

---

### 2. Keyword Ideas · $0.075/request

```bash
curl -s -X POST "$BASE/keywords_data/google_ads/keywords_for_keywords/live" \
  -H "$DFS_AUTH" -H "Content-Type: application/json" \
  -d '[{"keywords": ["stock research", "ai investing"], "location_code": 2840, "language_code": "en", "limit": 100}]'
```

**Returns:** Flat list in `result[]` (NOT nested under `items`). Can return 1000+ results.

---

### 3. Keyword Difficulty · ~$0.003/keyword

```bash
curl -s -X POST "$BASE/dataforseo_labs/google/bulk_keyword_difficulty/live" \
  -H "$DFS_AUTH" -H "Content-Type: application/json" \
  -d '[{"keywords": ["ai investing app", "stock research app"], "location_code": 2840, "language_code": "en"}]'
```

**Returns:** `keyword`, `keyword_difficulty` (0–100) | **Parse:** `result[0]['items']`  
Score guide: <30 = easy, 30–60 = medium, >60 = hard

---

### 4. Google SERP Rankings · $0.002/keyword

```bash
curl -s -X POST "$BASE/serp/google/organic/live/advanced" \
  -H "$DFS_AUTH" -H "Content-Type: application/json" \
  -d '[{"keyword": "ai investing app", "location_code": 2840, "language_code": "en", "device": "desktop", "depth": 10}]'
```

**Returns:** Items list — filter `type == "organic"`. Fields: `rank_absolute`, `domain`, `title`, `url`

---

### 5. App Store Search (Apple) · $0.0012/keyword

```bash
# Step 1 — Post task
curl -s -X POST "$BASE/app_data/apple/app_searches/task_post" \
  -H "$DFS_AUTH" -H "Content-Type: application/json" \
  -d '[{"keyword": "stock research app", "location_code": 2840, "language_code": "en"}]'

# Step 2 — Poll until ready
curl -s "$BASE/app_data/apple/app_searches/tasks_ready" -H "$DFS_AUTH"
# Returns endpoint_advanced URL — use it in step 3

# Step 3 — Fetch results
curl -s "$BASE/app_data/apple/app_searches/task_get/advanced/<TASK_ID>" -H "$DFS_AUTH"
```

**Returns:** `result[0]['items']` — each item: `app_id`, `title`, `developer_name`, `rating.value`, `reviews_count`. Position = index + 1.  
**Find Bloom:** look for `app_id == "$BLOOM_APP_STORE_ID"`

---

### 6. App Store Keywords for an App · ~$0.012/app

```bash
curl -s -X POST "$BASE/dataforseo_labs/apple/keywords_for_app/live" \
  -H "$DFS_AUTH" -H "Content-Type: application/json" \
  -d '[{"app_id": "$BLOOM_APP_STORE_ID", "location_code": 2840, "language_code": "en", "limit": 100}]'
```

**Returns:** `result[0]['total_count']` + items with `keyword_data.keyword`, `keyword_data.keyword_info.search_volume`, `ranked_serp_element.serp_item.rank_absolute`  
**Bloom:** Ranks for 2,663 App Store keywords. #47 for "yahoo finance", #47 for "robinhood".

---

### 7. App Store Competitor Apps · ~$0.011/app

```bash
curl -s -X POST "$BASE/dataforseo_labs/apple/app_competitors/live" \
  -H "$DFS_AUTH" -H "Content-Type: application/json" \
  -d '[{"app_id": "$BLOOM_APP_STORE_ID", "location_code": 2840, "language_code": "en", "limit": 20}]'
```

**Returns:** Items with `app_id`, `title`, `avg_position`  
**Bloom:** 13,645 competitor apps. Bloom avg position 61.5 vs Yahoo Finance 4.8.

---

### 8. Ranked Keywords for a Domain · ~$0.011/domain

```bash
curl -s -X POST "$BASE/dataforseo_labs/google/ranked_keywords/live" \
  -H "$DFS_AUTH" -H "Content-Type: application/json" \
  -d '[{"target": "$APP_DOMAIN", "location_code": 2840, "language_code": "en", "limit": 50}]'
```

**Returns:** Items with `keyword_data.keyword`, `keyword_data.keyword_info.search_volume`, `ranked_serp_element.serp_item.rank_absolute`  
**Note:** $APP_DOMAIN ranks for 12 keywords, all brand-name. Use on competitor domains to find their traffic-driving terms.

---

### 9. AI Search Volume · ~$0.003/keyword

```bash
curl -s -X POST "$BASE/ai_optimization/ai_keyword_data/keywords_search_volume/live" \
  -H "$DFS_AUTH" -H "Content-Type: application/json" \
  -d '[{"keywords": ["ai investing app", "stock research app"], "location_code": 2840, "language_code": "en"}]'
```

**Returns:** `result[0]['items']` — each: `keyword`, `ai_search_volume`, `ai_monthly_searches` (12 months)  
**Context:** AI volume is much lower than Google (135 vs 1,900 for "ai investing app") but growing fast (+187% YoY). Use for GEO content prioritization.

---

### 10. On-Page SEO Audit · ~$0.003/page

```bash
# Step 1 — Queue
curl -s -X POST "$BASE/on_page/task_post" \
  -H "$DFS_AUTH" -H "Content-Type: application/json" \
  -d '[{"target": "https://$SUBSTACK_DOMAIN/p/your-slug", "max_crawl_pages": 1, "calculate_keyword_density": true, "enable_browser_rendering": true}]'

# Step 2 — Summary
curl -s "$BASE/on_page/summary/<TASK_ID>" -H "$DFS_AUTH"

# Step 3 — Page details
curl -s -X POST "$BASE/on_page/pages" \
  -H "$DFS_AUTH" -H "Content-Type: application/json" \
  -d '[{"id": "<TASK_ID>", "limit": 10}]'
```

**Returns:** Per-page `checks` — title tag, meta description, H1, broken links, keyword density, CWV.  
For full site: `target: "$APP_DOMAIN"`, `max_crawl_pages: 50`

---

## Common Workflows

| Goal | Endpoints |
|------|-----------|
| ASO keyword volume | 1. Batch up to 700 keywords per call |
| Keyword ideas | 2. Use 2–5 seeds, sort by `search_volume` desc |
| SEO difficulty | 3. <30 = easy target |
| Google SERP check | 4. Search for `$APP_DOMAIN` in `domain` field |
| App Store rank for keyword | 5. Find `app_id == "$BLOOM_APP_STORE_ID"` |
| All keywords Bloom ranks for | 6. Sort by `rank_absolute` for best positions |
| App Store competitors | 7. Lower `avg_position` = stronger competitor |
| Competitor SEO keywords | 8. Use their domain, find traffic terms |
| GEO content priority | 9. High AI volume + low Google volume = early opportunity |
| Pre/post-publish SEO audit | 10. Pass live URL |
| Build ASO keyword priority list | 1 + 3. Cross-reference volume × difficulty |

---

## Common Mistakes

- **Keyword ideas parse:** `task['result']` not `task['result'][0]['items']` (flat list)
- **App Data is async only** — no live endpoints. Must POST then GET.
- **Task GET format:** `task_get/advanced/<id>` not `task_get/<id>`
- **tasks_ready** returns the `endpoint_advanced` path — use it directly for step 3

Related Skills

writer

9
from exiao/skills

Write content in Eric's voice — articles, blog posts, tweets, social media posts, marketing copy, newsletter drafts. Loads WRITING-STYLE.md and enforces kill phrases.

positioning-angles

9
from exiao/skills

Use when defining product positioning, choosing strategic angles, crafting value propositions, competitive positioning, product messaging, differentiation strategy, or go-to-market angles. Also use for 'how should I position my app', 'what angle should I use', 'painkiller vs vitamin', or 'market positioning'.

outline-generator

9
from exiao/skills

Use when generating outlines, article structures, content outlines, blog outlines, planning article sections, structuring posts, breaking down topics into sections, or organizing ideas for long-form content. Also use for 'outline this', 'structure this article', or 'plan the sections'.

last30days-open

9
from exiao/skills

Use only when the user explicitly asks for the open variant of last30days, including watchlists, briefings, and history queries. Sources: Reddit, X, YouTube, web.

last30days

9
from exiao/skills

Use when researching what happened in the last 30 days on a topic. Also triggered by 'last30'. Sources: Reddit, X, YouTube, web. Produces expert-level summary with copy-paste-ready prompts.

hooks

9
from exiao/skills

Use when generating hooks, headlines, titles, and scroll-stopping openers for content. Also use when analyzing viral posts, Reels, TikToks, YouTube Shorts, or successful social examples to extract reusable hook patterns and improve hook guidance.

evaluate-content

9
from exiao/skills

Use when judging content quality OR editing/improving existing copy: shareability, readability, voice, cuttability, angle, copy sweeps.

editor-in-chief

9
from exiao/skills

Use when a first draft is complete and all Phase 1 gates are done: topic selected (seo-research), title approved (hooks), outline approved (outline-generator), draft written (writer). Runs autonomous diagnosis-prescribe-rewrite loop before Substack.

copywriting

9
from exiao/skills

Write or improve marketing copy for any surface: pages, ads, app stores, landing pages, TikTok/Meta scripts, push notifications, UGC. Combines page copy frameworks with direct response principles.

content-strategy

9
from exiao/skills

Use when building content strategy: hooks, angles, and ideas from what's trending now. Covers organic and paid creative across TikTok, X, YouTube, Meta, LinkedIn.

content-pipeline

9
from exiao/skills

Orchestrator for the 3-article content pipeline — runs research phase, spawns parallel article sub-agents, creates Typefully drafts. Use when running the full content pipeline (usually via cron at 3am).

yt-dlp

9
from exiao/skills

Download audio/video from YouTube and other sites using yt-dlp. Use when the user asks to download music, songs, albums, podcasts, or video from YouTube or similar platforms. Triggers on 'download song', 'get mp3', 'yt-dlp', 'youtube download', 'rip audio'.