Developer ยท API reference
Visibility
How often your brand shows up in AI answers, versus competitors.
Visibility measures how often your brand appears in AI-search answers across the prompts you track. These endpoints return the scores, leaderboards and per-provider breakdowns behind the Results page.
Most take a POST body describing the company, date range and grouping (segment, offering, location, provider). The `-combined` variants return the leaderboard and the chart series in one call.
/analytics/visibility-metricsGet Visibility Metrics
Get visibility metrics with flexible filtering and grouping
๐ Requires Authorization: Bearer ll_โฆ (or X-API-Key).
Request bodyยท VisibilityQuery
| Field | Type | Required | Description |
|---|---|---|---|
company_id | string | Yes | โ |
date_range | any[] | Yes | โ |
time_granularity | string | No | โ |
include_change | boolean | No | โ |
limit | integer | null | No | โ |
rolling_days | integer | null | No | โ |
comparison_days | integer | null | No | โ |
entity_type | string | null | No | โ |
entity_id | string | null | No | โ |
filters | object | No | โ |
group_by | string[] | No | โ |
Example request
curl -X POST "https://api.lunalift.ai/analytics/visibility-metrics" \
-H "Authorization: Bearer ll_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"company_id": "string",
"date_range": []
}'Response ยท 200 OK
Returns a JSON object on success.
/analytics/visibility-combinedGet Combined Visibility Metrics
Get combined visibility metrics: top 10 leaderboard + top 7 chart history in one query
๐ Requires Authorization: Bearer ll_โฆ (or X-API-Key).
Request bodyยท VisibilityQuery
| Field | Type | Required | Description |
|---|---|---|---|
company_id | string | Yes | โ |
date_range | any[] | Yes | โ |
time_granularity | string | No | โ |
include_change | boolean | No | โ |
limit | integer | null | No | โ |
rolling_days | integer | null | No | โ |
comparison_days | integer | null | No | โ |
entity_type | string | null | No | โ |
entity_id | string | null | No | โ |
filters | object | No | โ |
group_by | string[] | No | โ |
Example request
curl -X POST "https://api.lunalift.ai/analytics/visibility-combined" \
-H "Authorization: Bearer ll_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"company_id": "string",
"date_range": []
}'Response ยท 200 OK
| Field | Type | Notes |
|---|---|---|
success | boolean | โ |
message | string | โ |
conversationId | string | null | โ |
data | object | null | โ |
/analytics/company-leaderboardGet Company Leaderboard
Get company leaderboard for dashboard display
๐ Requires Authorization: Bearer ll_โฆ (or X-API-Key).
Request bodyยท VisibilityQuery
| Field | Type | Required | Description |
|---|---|---|---|
company_id | string | Yes | โ |
date_range | any[] | Yes | โ |
time_granularity | string | No | โ |
include_change | boolean | No | โ |
limit | integer | null | No | โ |
rolling_days | integer | null | No | โ |
comparison_days | integer | null | No | โ |
entity_type | string | null | No | โ |
entity_id | string | null | No | โ |
filters | object | No | โ |
group_by | string[] | No | โ |
Example request
curl -X POST "https://api.lunalift.ai/analytics/company-leaderboard" \
-H "Authorization: Bearer ll_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"company_id": "string",
"date_range": []
}'Response ยท 200 OK
Returns a JSON object on success.
/analytics/source-leaderboardGet Source Leaderboard
Get source leaderboard for dashboard display
๐ Requires Authorization: Bearer ll_โฆ (or X-API-Key).
Request bodyยท VisibilityQuery
| Field | Type | Required | Description |
|---|---|---|---|
company_id | string | Yes | โ |
date_range | any[] | Yes | โ |
time_granularity | string | No | โ |
include_change | boolean | No | โ |
limit | integer | null | No | โ |
rolling_days | integer | null | No | โ |
comparison_days | integer | null | No | โ |
entity_type | string | null | No | โ |
entity_id | string | null | No | โ |
filters | object | No | โ |
group_by | string[] | No | โ |
Example request
curl -X POST "https://api.lunalift.ai/analytics/source-leaderboard" \
-H "Authorization: Bearer ll_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"company_id": "string",
"date_range": []
}'Response ยท 200 OK
Returns a JSON object on success.
/analytics/provider-performanceGet Provider Performance
Get AI provider performance metrics for dashboard display
๐ Requires Authorization: Bearer ll_โฆ (or X-API-Key).
Request bodyยท VisibilityQuery
| Field | Type | Required | Description |
|---|---|---|---|
company_id | string | Yes | โ |
date_range | any[] | Yes | โ |
time_granularity | string | No | โ |
include_change | boolean | No | โ |
limit | integer | null | No | โ |
rolling_days | integer | null | No | โ |
comparison_days | integer | null | No | โ |
entity_type | string | null | No | โ |
entity_id | string | null | No | โ |
filters | object | No | โ |
group_by | string[] | No | โ |
Example request
curl -X POST "https://api.lunalift.ai/analytics/provider-performance" \
-H "Authorization: Bearer ll_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"company_id": "string",
"date_range": []
}'Response ยท 200 OK
Returns a JSON object on success.
/analytics/competitor-domain-metricsGet Competitor Domain Metrics
Fast per-domain visibility + sentiment for the /competitors page. Returns one row per domain (customer + competitors) straight off the daily CAGGs โ NOT a ranked top-N, so no domain the page renders gets squeezed out by a leaderboard `limit`. Optional filters.company_domain narrows the scan.
๐ Requires Authorization: Bearer ll_โฆ (or X-API-Key).
Request bodyยท VisibilityQuery
| Field | Type | Required | Description |
|---|---|---|---|
company_id | string | Yes | โ |
date_range | any[] | Yes | โ |
time_granularity | string | No | โ |
include_change | boolean | No | โ |
limit | integer | null | No | โ |
rolling_days | integer | null | No | โ |
comparison_days | integer | null | No | โ |
entity_type | string | null | No | โ |
entity_id | string | null | No | โ |
filters | object | No | โ |
group_by | string[] | No | โ |
Example request
curl -X POST "https://api.lunalift.ai/analytics/competitor-domain-metrics" \
-H "Authorization: Bearer ll_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"company_id": "string",
"date_range": []
}'Response ยท 200 OK
Returns a JSON object on success.
