LSD

AI Compare

**Country-level.** These numbers come from mention tables, which are scoped to a country. A city in `location` resolves to its country and the response reports `location_scope: "country"` with the country in `location_used`. For city-level AI results use /v1/ai/scraper or /v1/serp/ai-mode. Compare your domain's AI visibility against 2-5 competitors in a single request. See who gets more mentions, impressions, and higher rankings across AI platforms.

When to use this

You want to know if ChatGPT recommends your competitor more than you. This compares multiple domains side-by-side so you can see exactly where you stand in AI search.

POST/v1/ai/compare
Cost: 81 credits per domain compared ($0.405 each; 2 domains = 162 credits)
Rate Limit: Varies by plan
Response: ~5-10 seconds

Parameters

ParameterTypeRequiredDescription
domainsstring[]YesDomains to compare (2-5)
keywordsstring[]YesKeywords to compare across (max 10)
locationstringNoLocation (e.g. "Austin, TX"). Default: United States
languagestringNoISO 639-1 code or language name ("fr", "French"). Defaults to the language we hold AI data for in that country. Asking for one we have no data for returns a 400 listing what we do have.

Example Request

curl -X POST https://api.localseodata.com/v1/ai/compare \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "domains": ["abcplumbing.com", "xyzplumbing.com", "bestplumber.com"],
    "keywords": ["plumber austin", "emergency plumber"],
    "location": "Austin, Texas"
  }'

Example Response

JSON
{
  "status": "success",
  "credits_used": 243,
  "data": {
    "keywords": ["plumber austin", "emergency plumber"],
    "by_domain": [
      {
        "domain": "abcplumbing.com",
        "total_mentions": 12,
        "total_impressions": 4800,
        "ai_search_volume": 2400
      },
      {
        "domain": "xyzplumbing.com",
        "total_mentions": 8,
        "total_impressions": 3100,
        "ai_search_volume": 2400
      },
      {
        "domain": "bestplumber.com",
        "total_mentions": 3,
        "total_impressions": 900,
        "ai_search_volume": 2400
      }
    ]
  }
}

Response Fields

FieldTypeDescription
domainstringDomain being compared
total_mentionsintegerTotal AI mentions for this domain across all keywords
total_impressionsintegerEstimated impressions from AI mentions
ai_search_volumeintegerCombined AI search volume for the keywords

Notes

  • Like a competitive gap analysis, but for AI visibility instead of backlinks.
  • Compare up to 5 domains at once to see the full competitive landscape.
  • Combine with /v1/ai/visibility for per-keyword breakdown of your own domain.