AI LLM Response API
Query any LLM and get the raw, untransformed response.
ChatGPT, Claude, Gemini, and Perplexity each see your business differently. Sometimes you need the literal output — the full text an LLM generates for a specific prompt — to understand how it thinks about you. Not metrics, not mentions, not aggregations. Just the raw response. Your agent asks one question four ways (ChatGPT, Claude, Gemini, Perplexity) and gets back exactly what each LLM says. 8 credits ($0.04) per response — no session costs, no subscription.
POST /v1/ai/llm-response · 8 credits / call
Based on Google reviews and local rankings, the highest-rated plumbers in Austin include ABC Plumbing (4.8 / 542 reviews), Roto-Rooter, and Mr. Rooter. Same-day service is offered by several providers.
Cited sources
These prompts are the new LLM research workflow.
Connect Local SEO Data as an MCP server once (60 seconds, below). Then your agent queries LLMs for you. Replace bracketed queries with your own.
Ask ChatGPT, Claude, Gemini, and Perplexity: 'Who is the best plumber in Austin, Texas?' Show me the exact text each AI returns and tell me which ones mention [mycompany.com] and which ones don't.
Query all four LLMs with: 'What are the differences between [mycompany.com] and [competitor.com]?' Extract verbatim how each AI compares us. Which LLM frames us most favorably?
Test the same question across ChatGPT, Claude, Gemini, and Perplexity to see which LLM gives the most useful answer for [your use case]. Show me the raw responses so I can decide which LLM to use for production.
Ask ChatGPT and Claude: 'Where should I find [service type] near me in [location]?' Show me the exact sources each LLM cites. What high-authority sites do these LLMs trust for my industry?
What you get back
Live response from POST /v1/ai/llm-response for a plumbing query across ChatGPT and Claude.
{
"status": "success",
"credits_used": 8,
"data": {
"platform": "chat_gpt",
"prompt": "Who is the best plumber in Austin, Texas?",
"response_text": "Some highly-rated plumbers in Austin, Texas include: ABC Plumbing (4.9 stars, 680 reviews on Google) — known for 24/7 emergency service and same-day availability. ProFlow Services (4.8 stars, 420 reviews) specializes in water heater and drain repairs with competitive pricing. Stan's Plumbing & HVAC (4.7 stars, 310 reviews) has been in business since 1995 and serves the greater Austin metro area. For emergency situations, ABC Plumbing is often recommended first due to their rapid response time. All three are licensed and insured.",
"model": "gpt-4.1-mini-2025-04-14",
"sources": [
{ "url": "https://www.google.com/maps/search/plumbers+austin", "title": "Google Maps - Plumbers Austin", "domain": "google.com" },
{ "url": "https://www.yelp.com/search?find_desc=plumbers&find_loc=Austin%2C+TX", "title": "Yelp - Plumbers in Austin", "domain": "yelp.com" },
{ "url": "https://abcplumbing.com", "title": "ABC Plumbing Austin", "domain": "abcplumbing.com" }
],
"fan_out_queries": [
"best emergency plumber austin",
"plumber austin reviews",
"cheapest plumber austin tx",
"plumber austin same day service"
]
}
}Raw output for research, testing, and competitive analysis
The complete, untransformed LLM answer
response_text is the full text an LLM generated for your prompt. Not a summary, not parsed data, not a snippet — the entire response. This is what the LLM actually wrote. Use this for prompt engineering, competitive framing analysis, and understanding how each AI 'thinks' about your business.
Which model version responded
model field shows which LLM version generated the response (e.g. gpt-4.1-mini-2025-04-14, claude-sonnet-4-20250514, gemini-2.5-flash). Model versions change — knowing which version gave which answer is critical for reproducibility and A/B testing.
URLs the LLM cited in its response
sources array contains every URL the LLM referenced when writing its response. These are the authorities each LLM trusts for your industry — direct link-building targets. Source citations vary by LLM — Claude cites more thoroughly than ChatGPT; Perplexity cites real-time sources ChatGPT can't access.
Natural next questions for the user
fan_out_queries are follow-up questions the LLM suggests based on the response. These reveal what the LLM thinks users would ask next — invaluable for content strategy and understanding user intent through the LLM's eyes.
What AI-native operators ship with this
Prompt engineering and testing
Before deploying a prompt to production, test it against all four LLMs. See which phrasing gets the best response from ChatGPT vs Claude. Which LLM understands your intent most accurately. Then lock in the best performer.
→ For prompt engineersCompetitive positioning research
Ask each LLM how they compare you vs competitors. Extract the verbatim framing from ChatGPT, Claude, Gemini, and Perplexity. Understand the competitive narrative each LLM has learned. Identify gaps in how you're positioned and what content closes them.
→ For agenciesCitation audits and link research
Extract every source URL each LLM cited when answering your keyword. ChatGPT and Claude cite different authorities. Gemini and Perplexity cite even more. Aggregate all sources across all LLMs to build your link-building target list — these are the high-authority sites LLMs trust.
→ AI Top Sources APIContent gap analysis
Run the same prompt against all four LLMs. Which topics does ChatGPT mention that Claude doesn't? Which sources does Gemini cite that no other LLM references? Close content gaps by addressing the topics and viewpoints LLMs expect.
→ For content teamsWhy not just ask ChatGPT directly?
Testing LLMs manually across ChatGPT, Claude, Gemini, and Perplexity is slow and unrepeatable — you can't automate it, you can't track changes, and you can't run 100 different prompts across 4 LLMs at scale. Competitors either charge per-token-used or lock you into dashboards. We charge $0.04 per response — unlimited prompts, all four LLMs, structured JSON output, agent-ready. Here's how the options stack up.
| Approach | Cost per response | LLMs tested | Output format | Agent-ready |
|---|---|---|---|---|
| Manual testing (ChatGPT web, Claude web, Gemini web) | $0 but ~5 min per prompt | Whatever you test manually | Copy-paste text | No |
| OpenAI API direct | $0.0005–0.003 per 1k tokens | ChatGPT only | Token-based, raw text | REST only |
| Anthropic Claude API direct | $0.003–0.030 per 1k tokens | Claude only | Token-based, raw text | REST only |
| Google Gemini API direct | $0.075–0.30 per 1k tokens | Gemini only | Token-based, raw text | REST only |
| Profound AI research | $499–2000/mo (~$16–65 per prompt) | 10+ platforms | Dashboard aggregation | Dashboard-first |
| Anthropic Batch API | $0.0001–0.001 per 1k tokens (50% discount) | Claude only | Token-based | Async REST |
| Local SEO Data AI LLM Response API | $0.04 per response | ChatGPT, Claude, Gemini, Perplexity | Structured JSON + raw response | 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: `prompt` (the question or instruction, max 2000 characters) and `platform` (chat_gpt, claude, gemini, or perplexity). One call returns the full response text, model version, cited sources, and follow-up query suggestions. Each response costs 8 credits (~$0.04).
curl -X POST https://api.localseodata.com/v1/ai/llm-response \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"prompt": "Who is the best plumber in Austin, Texas?",
"platform": "chat_gpt"
}'$0.04 per LLM response
Pay-as-you-go starts at $5. No monthly minimums. No subscription required. Funds never expire.
Common questions
What is the AI LLM Response API?+
Why would I need the raw LLM response?+
How is this different from OpenAI, Anthropic, or Google API direct?+
Which LLMs do you support?+
Can I test the same prompt across all four LLMs?+
What data does the API return?+
Where do you get these LLM responses from?+
How fresh is the LLM response?+
Can I use this for competitive analysis?+
How does this compare to Profound or dashboard-based LLM testing platforms?+
Can AI agents use this API?+
claude_desktop_config.json and your Claude agent calls this endpoint from any prompt without integration code. REST: any agent with HTTP capability (ChatGPT Custom GPTs, Perplexity Computer, custom Python agents) hits the API directly with a Bearer token. The agent receives structured JSON and can compare responses, flag competitive positioning gaps, extract citations, or trigger alerts based on LLM behavior.How does this relate to AI Mentions, AI Visibility, and other AI APIs?+
/v1/ai/visibility) measures composite score across multiple LLMs — how visible you are overall. AI Mentions (/v1/ai/mentions) finds every instance of your brand mentioned in LLM responses. AI LLM Response (/v1/ai/llm-response) returns the raw, full response text from one query to one LLM — the primary data source. Most teams use all three: LLM Response for deep research and prompt testing, AI Mentions for brand monitoring, AI Visibility for weekly dashboards. Start with LLM Response when you need the literal output.What changed in 2026 that made LLM response APIs necessary?+
Can I track LLM responses over time?+
What if an LLM doesn't cite my business in its response?+
What does this cost compared to manual testing?+
Often used in the same agent prompt
AI Mentions
Find every instance your brand appears in ChatGPT, Claude, Gemini, Perplexity responses.
POST /v1/ai/visibilityAI Visibility
Composite score for your domain's visibility across all LLMs and platforms.
POST /v1/ai/top-sourcesAI Top Sources
See which domains LLMs cite most often for your keywords. Link-building targets.
POST /v1/serp/ai-overviewAI Overview API
Capture Google's AI Overview snippet for any query — presence, text, and cited sources.
Get raw LLM responses for research, testing, and competitive analysis.
50 free credits on signup. Your first LLM query happens through your agent, not curl. Compare ChatGPT, Claude, Gemini, and Perplexity responses side by side.