dfs-keyword-research

Keyword research, SERP analysis, and competitor intelligence via the dfs CLI (data-4-seo-cli). Returns 10-20x smaller responses than raw DataForSEO API, optimized for agent context windows. Use when asked about keyword volumes, search difficulty, keyword ideas, SERP features, competitor rankings, domain overlap, content analysis, content briefs, or competitor gap analysis. Requires: npm install -g data-4-seo-cli

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "dfs-keyword-research" with this command: npx skills add giorgioliapakis/agent-skills/giorgioliapakis-agent-skills-dfs-keyword-research

DFS Keyword Research

The dfs CLI wraps the DataForSEO API and returns only the fields that matter. Raw API responses are 15-30KB per query; dfs compresses them to 1-2KB. This keeps your context window clean when doing multi-step research.

Prerequisites

The CLI must be installed globally before any commands will work:

npm install -g data-4-seo-cli

Auth

Check if credentials are already stored:

dfs whoami

If not authenticated, set environment variables or store credentials permanently:

export DATAFORSEO_LOGIN=your_login
export DATAFORSEO_PASSWORD=your_password
# Or store permanently:
dfs login --login "$DATAFORSEO_LOGIN" --password "$DATAFORSEO_PASSWORD"

Choosing the right command

Pick the command based on what you need:

NeedCommandWhen to use
Check metrics for known keywordsdfs volumeYou have specific keywords and need volume, CPC, difficulty, competition, intent
Expand a seed keyworddfs suggestionsYou have one keyword and need more ideas
Find semantically related termsdfs relatedYou want lateral keyword ideas, not just autocomplete
Bulk difficulty checkdfs difficultyYou only need difficulty scores, nothing else
Analyze a SERPdfs serpYou need to see who ranks, what features appear (AI Overview, PAA, etc.)
See what a domain ranks fordfs rankedCompetitor research or auditing a domain's keyword portfolio
Compare two domainsdfs overlapFind shared keywords and position gaps between two competitors
Find SERP competitorsdfs competitorsDiscover which domains compete for a set of keywords
Analyze page contentdfs contentFetch a URL's title, headings, and word count for content gap analysis

Commands

dfs volume

dfs volume "seo tools" "keyword research" "backlink checker"

Returns: keyword, volume, cpc, difficulty, competition, intent, trend

Accepts up to 50 keywords in one call. The trend column shows 12 months of search volume.

dfs suggestions

dfs suggestions "seo tools" -n 15

Returns: keyword, volume, cpc, difficulty, competition

Takes one seed keyword. Use -n to control how many suggestions.

dfs related

dfs related "keyword research" -n 15

Returns: keyword, volume, cpc, difficulty, competition

Semantically related terms, not just autocomplete matches. Good for finding angles you might miss.

dfs difficulty

dfs difficulty "seo tools" "keyword research" "backlink checker"

Returns: keyword, difficulty

Use this when you only need difficulty scores and want the smallest possible response.

dfs serp

dfs serp "best seo tools" --target yourdomain.com

Features and PAA questions go to stderr. Organic results go to stdout: position, domain, title, url

The --target flag highlights where a specific domain ranks. Use --json for the full structured result including features, snippets, and PAA questions.

dfs ranked

dfs ranked ahrefs.com -n 20

Returns: keyword, position, volume, cpc, url

Keywords sorted by volume. Use this to understand a competitor's keyword portfolio.

dfs overlap

dfs overlap ahrefs.com semrush.com -n 20

Returns: keyword, pos1, pos2, volume, cpc

Shows keywords both domains rank for with their respective positions. Great for finding where you're losing to a competitor.

dfs competitors

dfs competitors "seo tools" "keyword research tool" -n 10

Returns: domain, avg_position, visibility, keywords_count

Pass one or more keywords to discover which domains compete in those SERPs.

dfs content

dfs content "https://example.com/page"
dfs content "https://example.com/page" --full --json

TSV returns: url, title, word_count, headings_count (headings detail on stderr). JSON with --full returns the complete headings tree and content preview.

Output formats

Use --table when presenting results to the user. Use default TSV when processing data internally. Use --json when you need to parse specific fields programmatically.

Options

-l, --location <code>    Location code (default: 2840 = US)
    --language <code>     Language code (default: en)
-n, --limit <n>          Max results (default: 50)
    --no-cache           Force fresh API call

Look up location and language codes with dfs locations <search> and dfs languages <search>.

Caching

Results are cached automatically to avoid duplicate API costs. Repeated queries within the TTL are free:

Data TypeCache TTL
Keyword data7 days
Competitor data3 days
SERP results1 day
Locations/languages30 days

Use --no-cache only when you need guaranteed fresh data.

Workflow references

For detailed workflows, step-by-step guides, and interpretation tips, read the relevant reference file:

TaskReference
Keyword research, content briefs, bulk volume checks, difficulty interpretationreferences/keyword-research.md
SERP analysis, feature detection, content gap analysis, PAA researchreferences/serp-analysis.md
Competitor ranked keywords, domain overlap, competitive landscape mappingreferences/competitor-intel.md

Read only the reference you need for the current task.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

Repository Source
221.8K23.2Kvercel
Coding

apify-actor-development

No summary provided by upstream source.

Repository SourceNeeds Review
2.3K-apify
Coding

svelte5-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

code-simplifier

No summary provided by upstream source.

Repository SourceNeeds Review