What You’ll Get
- Keyword rankings (daily updates)
- Competitor analysis and rankings
- SERP features and positions
- Search volume and keyword difficulty
- Related keywords and questions
- Domain metrics and authority
- Complete SERP snapshots
Prerequisites
- A DataForSEO account
- API credits (free trial available, or paid plan)
Setup Instructions
Create a DataForSEO Account
- Go to DataForSEO
- Click Sign Up or Get Started
- Complete the registration process
- Verify your email address
Get Your API Credentials
- Log in to your DataForSEO account
- Go to the Dashboard
- Navigate to API Access or API Credentials
- You’ll see your:
- Login (username/email)
- Password (API password, different from account password)
- Copy both values
DataForSEO uses Basic Authentication with login/password, not API keys.
Add Credits to Your Account
- In the DataForSEO dashboard, go to Billing or Add Credits
- Choose a payment option:
- Free Trial: Usually provides $1-5 in credits to test
- Pay As You Go: Add credits as needed
- Monthly Plan: Subscribe for discounted rates
- Complete the payment process
Available Methods
TheDataForSEO class provides these methods:
Get Rankings
Check ranking positions for specific keywords:Get SERP Data
Get complete SERP snapshot for a keyword:- Organic ranking results
- SERP features (featured snippets, people also ask, etc.)
- Title tags and meta descriptions
- Search volume and CPC
Analyze Competitors
Compare your rankings vs competitors:- High: Competitor ranks, you don’t
- Medium: You rank, but 10+ positions behind
- Low: Competitive parity
Get Keyword Ideas
Find related keywords:Get Question Queries
Find question-based search queries:- how, what, why, when, where, who
- can, should, is, are, does
Get Domain Metrics
Analyze domain authority and metrics:Location Codes
Common DataForSEO location codes:- 2840: United States
- 2826: United Kingdom
- 2124: Canada
- 2036: Australia
- 2276: Germany
API Usage and Costs
DataForSEO charges per API request:SERP Requests
SERP Requests
- Organic SERP: ~$0.006 per keyword
- Live mode: Results in seconds
- Cost per 100 keywords: ~$0.60
Keyword Research
Keyword Research
- Related keywords: ~$0.006 per seed keyword
- Keyword ideas: Returns 100+ suggestions per request
- Search volume data: Included in keyword requests
Domain Metrics
Domain Metrics
- Domain overview: ~$0.10 per domain
- Ranking keywords: ~$0.20 per 1000 keywords
- Backlink data: Additional cost
Cost Optimization
Cost Optimization
- Use aggressive caching (24-hour default)
- Batch multiple keywords in single requests
- Set monthly budget limits in DataForSEO dashboard
- Focus on high-value competitive keywords
Integration with Research Commands
DataForSEO powers multiple research commands:Keyword Research
- Get search volume for target keywords
- Find related keywords and variations
- Identify question-based queries
- Analyze SERP competitors
Competitor Analysis
SERP Analysis
Troubleshooting
Error: Authentication failed
Error: Authentication failed
- Verify your login/password in
.envare correct - Make sure you’re using the API password, not your account password
- Check for any extra spaces in the credentials
- Confirm credentials in DataForSEO dashboard
Error: Insufficient credits
Error: Insufficient credits
- Check your account balance at app.dataforseo.com
- Add more credits or upgrade your plan
- Review your usage history to identify high-cost requests
Error: Rate limit exceeded
Error: Rate limit exceeded
- DataForSEO has rate limits per minute
- Wait a few minutes before retrying
- Enable caching to reduce API calls
- Consider spreading requests over time
Error: No ranking data returned
Error: No ranking data returned
- Verify the domain format (exclude https://)
- Check if keywords actually rank for that domain
- Try increasing the SERP depth limit
- Some keywords may have no data for that location
Testing Your Integration
Verify DataForSEO is working:Best Practices
- Cache Aggressively: Use 24-hour cache for historical SERP data
- Batch Keywords: Request multiple keywords in single API calls
- Monitor Costs: Track usage in DataForSEO dashboard
- Set Budgets: Configure monthly spending limits
- Focus on Value: Prioritize high-traffic, commercial-intent keywords
- Validate Data: Cross-reference with Search Console for accuracy
Data Quality
DataForSEO provides:- Real-time SERP data: Live scraping from Google
- Daily updates: Fresh search volume and ranking data
- Historical tracking: Position changes over time
- Location-specific: Target exact geographic markets
- Accurate metrics: Direct from Google’s API where possible
What’s Next
Research Commands
Learn how research commands use DataForSEO
Performance Agent
See how DataForSEO powers opportunity scoring