Keywords for Site API
The competitor keyword intelligence API for the new local SEO stack.
What keywords does my competitor rank for? This is the highest-value question in SEO — Ahrefs built a $129+/mo subscription around Site Explorer to answer it, Semrush built Organic Research at $139.95/mo to answer it, Moz built its entire ranking product to answer it. We expose the data as an API. One domain, all ranking keywords, position, volume, CPC, and search intent — in one POST call. 3 credits ($0.015) per domain. Your agent reverse-engineers their strategy.
POST /v1/keywords/for-site · 3 credits / domain
These prompts are the new competitive research workflow.
Connect Local SEO Data as an MCP server once (60 seconds, below). Then your agent owns competitor research. Replace bracketed domains and locations with your own.
Pull all ranking keywords for [competitor.com] in [Denver]. Filter for volume >500 and position <5. Show me the top 20 keywords they own that I don't rank for yet.
Pull ranking keywords for [5 top competitors in my market]. Find keywords they all rank for vs keywords unique to each. Which keywords are the battleground?
Get ranking keywords for [competitor.com] in [Austin]. Filter for position 6-20 (they're ranking but not dominating). Find the keywords where a push could move me from 0 to top 3.
Pull [abcplumbing.com] ranking keywords in [Denver]. Group by search intent. Which service categories are they competing in? Where should I focus my content?
What you get back
Live response for a competitor plumbing domain in Denver. Real API response, May 2026.
{
"status": "success",
"credits_used": 3,
"data": {
"domain": "abcplumbing.com",
"location": "Denver, Colorado, United States",
"total_keywords": 847,
"keywords": [
{
"keyword": "plumber denver",
"position": 2,
"search_volume": 1200,
"cpc": 48.00,
"competition": 0.85,
"search_intent": "local"
},
{
"keyword": "emergency plumber",
"position": 4,
"search_volume": 880,
"cpc": 62.50,
"competition": 0.92,
"search_intent": "commercial"
},
{
"keyword": "drain cleaning denver",
"position": 1,
"search_volume": 390,
"cpc": 32.00,
"competition": 0.72,
"search_intent": "local"
},
{
"keyword": "pipe repair near me",
"position": 8,
"search_volume": 520,
"cpc": 41.50,
"competition": 0.78,
"search_intent": "local"
},
{
"keyword": "water heater installation",
"position": 6,
"search_volume": 280,
"cpc": 35.25,
"competition": 0.64,
"search_intent": "commercial"
}
]
}
}Everything your agent needs to reverse-engineer competitor strategy
Position, volume, CPC, competition, intent
For each ranking keyword: current SERP position (1-20+), monthly search volume, cost-per-click in USD, competition index (0-1), and inferred search intent (local, commercial, informational). This is the dataset that Ahrefs Site Explorer charges $129+/mo to access. One API call, structured JSON, your agent does the analysis.
Total keywords ranked, position distribution
You get the count of all keywords the domain ranks for. This tells you their keyword footprint — a plumbing company ranking for 847 keywords is much more aggressive than one ranking for 120. Pair this with position distribution to see if they're dominating (lots of position 1-3 keywords) or scattered (spread across positions 6-20).
All ranking data is geographic
The keywords a competitor ranks for in Denver are different from their ranking keywords in Austin. All results are location-scoped from day one. Multi-location competitors are easy to analyze: one agent call per city, one agent prompt surfaces which markets they're strongest in.
Compose with Search Volume, Keyword Gap, Keyword Opportunities
Start here to find competitor keywords. Use Keyword Opportunities to rank them by difficulty vs your current rank. Use Related Keywords to expand each discovery. Use Search Volume to validate trends. Composite workflows: one agent, four endpoints, $0.025 per domain analyzed.
What competitive operators ship with this endpoint
Agency competitive audits
Agencies pull ranking keywords for all top 5 local competitors for each client. Identify the gap: 'competitor X ranks for 300 keywords you don't; here are the 50 highest-value ones.' Build 6-month content plans around closing that gap. One audit = 15 credits (~$0.075); delta between agency margin and cost is pure leverage.
→ For agenciesPre-pitch competitive intelligence
Before the pitch call with a prospect, pull their top 3 competitors' ranking keywords in their market. Walk in with 'your competitors rank for 400+ keywords; your site ranks for 12. Here's our content strategy to close that gap.' Diagnosis beats guesswork.
→ For consultantsAI-driven content strategy mapping
Pull competitor keywords, group by search intent and service type. Feed to Claude with a prompt: 'these are our competitors' keywords — rank them by difficulty and align with our service offering.' Claude surfaces the 50 content pieces you should write first. Then slot into content calendar.
→ For in-house teamsM&A diligence and market entry
Before acquiring a business or entering a new market, pull the top 20 competitors' ranking keywords. Understand the keyword landscape: which keywords are worth fighting for, which are niche opportunities, what the SEO investment looks like. Same question Ahrefs Site Explorer was built to answer.
→ For strategistsWhy not just use Ahrefs Site Explorer, Semrush, or Moz?
All of them show you competitor keywords. Here's why the API model is fundamentally better for agents.
| Tool | Data model | Batch domains | Setup | Cost model |
|---|---|---|---|---|
| Ahrefs Site Explorer ($129/mo) | Position, volume, traffic estimate | One domain at a time (UI) | Login, no API (dashboard-first) | $129–299/mo per seat, $1,548–3,588/year |
| Semrush Organic Research ($139.95/mo) | Position, volume, estimated traffic | UI-limited, slow exports | Dashboard + limited API | $139.95–499.95/mo per seat, $1,679–5,999/year |
| Moz Keyword Explorer ($99/mo) | Position, volume, keyword difficulty | Limited batching | Dashboard UI, API secondary | $99–599/mo per seat |
| SE Ranking ($159/mo) | Position, volume, rank tracking | Limited via dashboard | Project-based dashboard | $159/mo for 1M credits (opaque) |
| DataForSEO Organic Research ($0.01 per domain) | Position, volume, traffic estimate, intent | Yes, via API | API key + integration work | $0.01–0.05 per domain, no MCP |
| LocalSEOData Keywords for Site API | Position, volume, CPC, competition, intent | Unlimited domains per agent run | API key + 1-line MCP config | $0.015 per domain, no seats, agent-native |
Use it from your agent
Two integration surfaces: MCP for clients that speak MCP, REST API for everything else.
Direct MCP integration
Drop-in support in Claude Desktop, OpenClaw, Hermes Agent, and any MCP-aware client.
Add to your client's MCP config (e.g. claude_desktop_config.json):
{
"mcpServers": {
"localseodata": {
"url": "https://mcp.localseodata.com",
"headers": {
"Authorization": "Bearer sk_live_..."
}
}
}
}REST API
For Perplexity Computer, ChatGPT Custom GPTs, custom agents, and any platform that calls REST endpoints directly.
Base URL:
api.localseodata.comSee the docs for endpoint reference and auth.
Your first call in three lines
Same endpoint, three syntaxes. The `domain` parameter is the competitor's domain (e.g., 'competitor.com'). `location` is required in 'City, State, Country' format (e.g., 'Denver, Colorado, United States'). Optional: `limit` (default 50, max 1000). One call = 3 credits.
curl -X POST https://api.localseodata.com/v1/keywords/for-site \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"domain": "abcplumbing.com",
"location": "Denver, Colorado, United States",
"limit": 100
}'$0.015 per domain
3 credits per lookup. Free tier on signup includes 50 credits (16 domain audits). Monthly plans start at $19 and never expire. No per-seat fees, no domain limits.
Common questions
What is the Keywords for Site API?+
POST /v1/keywords/for-site. One call returns structured JSON and costs 3 credits (~$0.015). This is the foundational competitive intelligence endpoint — every market analysis, content strategy, and acquisition diligence workflow starts by asking: what keywords does my competitor rank for?Where does this keyword ranking data come from?+
How current is the ranking data?+
Can I look up more than 50 keywords per domain?+
limit parameter accepts 50-1000. Set limit: 1000 to get up to 1000 keywords per call for a single domain. Most domains rank for more than 50 keywords — a domain targeting local plumbing might rank for 300+ keywords across position ranges. You're charged 3 credits per call regardless of how many keywords are returned, so fetching 1000 costs the same as 50. Batch workflows are standard: agencies pull 5-10 competitor domains at 1000 keywords each = 15-30 credits (~$0.075-0.150) for a full competitive landscape analysis.Does this show keywords I don't rank for yet?+
How does this compare to Ahrefs Site Explorer ($129/mo)?+
How does this compare to Semrush Organic Research ($139.95/mo)?+
What does search intent mean here?+
Can I analyze multiple competitors at once?+
Can AI agents use this directly?+
claude_desktop_config.json (or any MCP-compatible client like OpenClaw, Hermes Agent, etc.), and Claude calls this endpoint from your prompt without writing integration code. You say 'what keywords does abcplumbing.com rank for in Denver' and it happens. REST: Any agent that can make HTTPS calls (ChatGPT Custom GPTs, Perplexity Computer, custom Python agents) hits api.localseodata.com with Authorization: Bearer sk_live_.... The agent receives keyword data and can analyze it — finding gaps, grouping by intent, surfacing opportunities. This is why MCP matters: it closes the gap between 'I want to know my competitor's strategy' (human prompt) and 'here are their top 50 keywords to target' (agent answer).What changed in 2026 that made this category exist?+
Often used in the same agent prompt
Search Volume API
Validate competitor keywords with volume trends and CPC.
POST /v1/keywords/opportunitiesKeyword Opportunities API
Rank competitor keywords by difficulty vs your current rank.
POST /v1/keywords/suggestionsKeyword Suggestions API
Expand competitor keywords into long-tail variants.
POST /v1/keywords/relatedRelated Keywords API
Find semantically related keywords from competitor data.
Reverse-engineer competitor strategy in one API call.
50 free credits on signup. 16 competitor audits included. Analyze your entire competitive landscape in your first agent prompt.