AI Compare API
Used to require manual prompting and tab-switching across ChatGPT, Claude, Gemini, and Perplexity.
Now it's one call: two domains in, side-by-side breakdown out. Your agent compares your domain against 2-5 competitors on your core keywords across all major LLMs in a single request. See who gets cited more, who appears in more responses, who ranks higher in AI search. ChatGPT, Claude, Gemini, Perplexity, and Google AI Overviews all supported via first-party DataForSEO execution.
POST /v1/ai/compare · 10 credits / call
These prompts are the new competitive intelligence workflow.
Connect Local SEO Data as an MCP server once (60 seconds, below). Then your agent monitors your AI competitive position. Replace bracketed values with your own.
Compare [mycompany.com] vs [competitor1.com] and [competitor2.com] for our top 15 commercial keywords across ChatGPT, Claude, and Gemini. Flag any keyword where a competitor gets 50%+ more mentions than us.
Before the sales call, pull an AI comparison: [prospect.com] vs [mycompany.com] on [industry keyword]. Show the prospect exactly how often they appear in ChatGPT responses vs their current provider. Close the deal with quantified underperformance.
Run a monthly comparison: [mycompany.com] vs [competitor1.com], [competitor2.com], [competitor3.com], and [competitor4.com] for [core keyword]. Rank-order by total mentions. Alert me when any competitor's mentions spike.
Compare [mycompany.com] across ChatGPT, Claude, Gemini, and Perplexity vs [main competitor.com]. Which LLM is our biggest weakness? Which is our strongest surface? Allocate SEO effort to the biggest gaps.
What you get back
Live response from POST /v1/ai/compare comparing three plumbing companies in Austin, TX for plumbing-related queries.
{
"status": "success",
"credits_used": 10,
"data": {
"keywords": ["plumber austin", "emergency plumber austin"],
"by_domain": [
{
"domain": "abcplumbing.com",
"total_mentions": 12,
"total_impressions": 4800,
"ai_search_volume": 2400,
"platform_breakdown": {
"chat_gpt": { "mentions": 5, "impressions": 2200 },
"claude": { "mentions": 4, "impressions": 1800 },
"gemini": { "mentions": 2, "impressions": 700 },
"perplexity": { "mentions": 1, "impressions": 100 }
}
},
{
"domain": "xyzplumbing.com",
"total_mentions": 8,
"total_impressions": 3100,
"ai_search_volume": 2400,
"platform_breakdown": {
"chat_gpt": { "mentions": 4, "impressions": 1600 },
"claude": { "mentions": 2, "impressions": 900 },
"gemini": { "mentions": 1, "impressions": 400 },
"perplexity": { "mentions": 1, "impressions": 200 }
}
},
{
"domain": "bestplumber.com",
"total_mentions": 3,
"total_impressions": 900,
"ai_search_volume": 2400,
"platform_breakdown": {
"chat_gpt": { "mentions": 2, "impressions": 500 },
"claude": { "mentions": 1, "impressions": 300 },
"gemini": { "mentions": 0, "impressions": 0 },
"perplexity": { "mentions": 0, "impressions": 100 }
}
}
]
}
}Side-by-side competitive visibility at a glance
Who gets cited more often across LLMs
Compare total mentions, impressions, and raw visibility score for each domain. One number per domain tells you exactly where you stand relative to each competitor on your core keywords.
Platform-specific competitive gaps
See how each domain ranks in ChatGPT separately from Claude, Gemini, Perplexity. You may dominate in ChatGPT but fall behind in Claude. This breaks down where to focus SEO effort by LLM surface.
Who wins, who ties, who loses per keyword
For each keyword in your comparison, see which domain gets mentioned most. Track whether you or your competitor appears first in the LLM's answer. Understand the winner per query.
Your share of AI visibility traffic
Out of total impressions for your query set, what percentage go to your domain vs your competitors. Portfolio view: if you have 40% of impressions and competitor has 35%, you're winning. Track this monthly.
What AI-native operators ship with this
Agency competitive reporting
Agencies now deliver monthly AI competitive benchmarks alongside traditional SEO reports. Pull a 2-minute comparison, insert into your client dashboard, show the client where they stand in ChatGPT vs their competitors. Justifies the contract.
→ For agenciesPre-pitch prospect audits
Before a sales call with a prospect, run a quick AI compare: prospect vs their top 3 competitors on their core keywords. Walk in knowing the prospect's AI visibility gap. Quantified problem = closed deal. Costs $0.05. Prospects never see a dashboard.
→ For consultantsMarket entry intelligence
Planning to enter a new market? Run an AI compare on 3-5 dominant local competitors across your target keywords. See who dominates ChatGPT, who's weak in Perplexity, where the gaps are. Prioritize keywords where leaders are weak.
→ Keyword Opportunities APIMonthly AI market tracking
Set a monthly reminder: pull an AI compare for your top 5 competitors every month for 10 core keywords. Build a time-series: are you gaining or losing ground in ChatGPT? Is a competitor surging in Gemini? Detect trends before they compound.
→ Reputation Audit APIWhy not run the comparisons manually?
Comparing domains across ChatGPT, Claude, Gemini, and Perplexity by hand takes 20+ minutes per keyword and produces unrepeatable results — different samples, different phrasing. Competitors charge $200–$2000 per month. We charge $0.05 per comparison call, unlimited domains, unlimited keywords (within reason). Here's how the options stack up.
| Approach | Cost per comparison | Max domains | LLMs covered | Repeatability | Agent-ready |
|---|---|---|---|---|---|
| Manual tab-switching (ChatGPT, Claude, etc.) | $0 but ~20 min labor | 1 at a time | Whatever you check | None | No |
| Profound (enterprise comparison feature) | $499–$2000/mo (~$16–65 per query) | Unlimited | 10+ platforms | Hourly+ refreshes | Dashboard only |
| AthenaHQ (head-to-head) | $300–$1000/mo (~$10–33 per query) | 2–5 | ChatGPT, Claude, Gemini, Perplexity | Daily refreshes | Dashboard + API |
| Otterly.ai (benchmarking) | $29–$99/mo (~$0.97–3.30 per query) | 2–3 | 4 LLMs + Google AI | Weekly | Reporting UI |
| Peec AI (comparison) | $99–$299/mo (~$3.30–10 per query) | 2–5 | 4 platforms | Weekly | Manual export |
| Local SEO Data AI Compare API | $0.05 per call | 2–5 domains | ChatGPT, Claude, Gemini, Perplexity | On-demand or scheduled | Native MCP, agent-first |
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
Core parameters: `domains` (array of 2-5 domains to compare) and `keywords` (array of up to 10 keywords to compare across). Optional `location` (defaults to United States, accepts format like 'Austin, TX'). One call executes all domain-keyword combinations across ChatGPT, Claude, Gemini, and Perplexity. Result is a direct side-by-side breakdown: which domain ranks highest per keyword, which gets more total impressions, which dominates which LLM.
curl -X POST https://api.localseodata.com/v1/ai/compare \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"domains": ["abcplumbing.com", "xyzplumbing.com", "bestplumber.com"],
"keywords": ["plumber austin", "emergency plumber austin"],
"location": "Austin, Texas"
}'$0.05 per comparison call
Pay-as-you-go starts at $5. No monthly minimums. No per-seat licenses. No subscription required. Funds never expire.
Common questions
What is the AI Compare API?+
How is this different from the AI Visibility API?+
POST /v1/ai/visibility) measures a single domain's visibility: one domain, get back its total mentions, impressions, and composite score. AI Compare is the comparative sibling: multiple domains, side-by-side metrics, see who wins. AI Visibility answers 'How visible is my domain overall'. AI Compare answers 'Who's winning the AI search battle for this keyword — me or my competitor.' Most teams use both: Visibility for single-domain tracking and trend analysis, Compare for competitive benchmarking and prospect audits.Can I compare any domains (mine and competitors)?+
Which LLMs are included in the comparison?+
How many domains can I compare at once?+
How many keywords can I compare across?+
Where does the comparison data come from?+
How fresh is the comparison data?+
How does this compare to Profound, AthenaHQ, Peec AI, and Otterly?+
Can my AI agent use this directly?+
claude_desktop_config.json and your Claude agent calls this endpoint from any prompt. REST: any agent that can make HTTPS calls (ChatGPT Custom GPTs, Perplexity Computer, custom Python/Node agents) hits the API directly with your Bearer token. The agent receives structured JSON with the by_domain array and can filter, rank, alert, or report on it. No integration code needed — just write the prompt.What does it cost compared to competitors?+
What changed in 2026 that made AI competitive comparison necessary?+
Often used in the same agent prompt
AI Visibility
Single-domain score: mentions, impressions, and sentiment across LLMs.
POST /v1/ai/mentionsAI Mentions
Granular: every mention, question, answer, and citation for a keyword.
POST /v1/ai/overviewAI Overview
Does Google's AI Overview cite your domain for specific queries.
POST /v1/competitor-gapCompetitor Gap
Find link-building opportunities: sites linking to competitors but not you.
Compare your AI visibility in the same moment you check it.
50 free credits on signup. Your first comparison happens through your agent, not a dashboard.