LLM Response

Query ChatGPT, Claude, Gemini, or Perplexity individually and get their structured response. See exactly what each AI says when asked about your business or keywords.

When to use this

You want to ask ChatGPT "who is the best plumber in Austin" and see the actual answer — then do the same with Claude, Gemini, and Perplexity. Compare how each AI talks about your business.

POST/v1/ai/llm-response
Cost: 8 credits ($0.04)
Rate Limit: Varies by plan
Response: ~5-15 seconds

Parameters

ParameterTypeRequiredDescription
promptstringYesThe prompt to send to the LLM (max 2000 chars)
platformstringYes"chat_gpt", "claude", "gemini", or "perplexity"

Example Request

curl -X POST https://api.localseodata.com/v1/ai/llm-response \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Who is the best plumber in Austin, Texas?",
    "platform": "chat_gpt"
  }'

Example Response

JSON
{
  "status": "success",
  "credits_used": 8,
  "data": {
    "platform": "chat_gpt",
    "prompt": "Who is the best plumber in Austin, Texas?",
    "response_text": "Based on reviews and ratings, some of the best plumbers in Austin include ABC Plumbing (4.9 stars, 500+ reviews), Radiant Plumbing (4.8 stars), and Stan's Heating & AC (4.7 stars)...",
    "model": "gpt-4.1-mini-2025-04-14",
    "sources": [
      { "url": "https://yelp.com/...", "title": "Best Plumbers in Austin", "domain": "yelp.com" },
      { "url": "https://abcplumbing.com", "title": "ABC Plumbing Austin", "domain": "abcplumbing.com" }
    ],
    "fan_out_queries": [
      "best plumber austin reviews",
      "emergency plumber austin tx",
      "cheapest plumber in austin"
    ]
  }
}

Response Fields

FieldTypeDescription
response_textstringThe full response from the LLM
modelstringWhich model version was used (e.g. gpt-4.1-mini-2025-04-14)
sourcesarrayURLs the LLM cited in its response (from annotations)
fan_out_queriesarrayFollow-up queries the LLM suggested

Notes

  • Query each LLM individually to see how they recommend (or ignore) your business.
  • fan_out_queries show what users commonly ask next — use these for content planning.
  • sources are only populated when the LLM uses web search (annotations on response sections).
  • Supports: chat_gpt, claude, gemini, perplexity. Run all 4 to see the full picture.