Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.neariq.io/llms.txt

Use this file to discover all available pages before exploring further.

GET /api/v1/gap-analysis returns the latest cached consultant-style gap analysis for the active business, using data NearIQ already tracks. This endpoint is available on Growth plans and higher. Use an API key with the competitors:read scope. The public API is read-only and does not regenerate an analysis. Generate or refresh the cache from the dashboard first, then read it here.

Response

{
  "connected": true,
  "id": "f2d4b5cc-1c25-4d87-9e8b-72a6579b9641",
  "businessId": "8a18b4f8-7b6a-4b5d-a4cc-0adcbcfcc8e7",
  "stale": false,
  "generatedAt": "2026-05-01T00:00:00.000Z",
  "expiresAt": "2026-05-02T00:00:00.000Z",
  "analysis": {
    "overallScore": 58,
    "summary": "Your biggest gap is review volume against the market leader.",
    "gaps": [],
    "strengths": [],
    "prioritizedActions": []
  },
  "sourceSummary": {
    "competitors": 5,
    "snapshots": true,
    "reviews": true,
    "products": true,
    "citations": true,
    "rank": true,
    "aiVisibility": true,
    "listingInsights": true
  }
}

Access

The endpoint uses the caller’s active personal or organization business context. Organization members only receive data for businesses they can access. Accounts below Growth receive 403. API keys without competitors:read receive 403 requiredScope.

Cache behavior

Gap analysis is cached for 24 hours per business. The public API returns stale: true when the latest cached analysis is past its expiration time.