Use the AI analytics endpoints to retrieve data by model, prompt, and competitor.
These endpoints return row-level AI Visibility data, including model responses and mentions of your brand and competitors. Get model IDs and available check dates from the reference endpoints ai-visibility/networks and ai-visibility/checks.
GET: api/v1/ai-prompts/data?{ops}
Returns results for all project prompts for one AI model on a specified check date.
Input parameters
| Parameter | Description | Default value | Required |
|---|---|---|---|
| project_id | Project ID | no | yes |
| neural_network_id | AI model ID from the model list | no | yes |
| date | Check date in YYYY-MM-DD format, from the list of AI checks | no | yes |
| limit | Number of entries in response, maximum 10,000 | 1000 | no |
| offset | Number of records to skip | 0 | no |
Response
The data field contains an array of objects with the following fields.
{
id: number,
prompt: string,
neuralNetworkId: number,
neuralNetworkName: string,
neuralNetworkCode: string,
checkedAt: string,
answer: string,
brandMentioned: boolean | null,
dynamic: number,
sentiment: number | null,
domainMention: boolean | null,
domainLink: string | null,
competitorMentioned: boolean | null
}
| Field | Description |
|---|---|
| id | Prompt ID |
| prompt | Prompt text |
| neuralNetworkId | AI model ID |
| neuralNetworkName | AI model name |
| neuralNetworkCode | AI model code |
| checkedAt | Date of check in YYYY-MM-DD format |
| answer | AI model response |
| brandMentioned | Whether the response mentions the project brand. A null value means it has not yet been indexed. |
| dynamic | Change in brand mentions: 1 for a new mention, −1 for a lost mention, 0 for no change |
| sentiment | Brand sentiment: 1 positive, −1 negative, 0 neutral, null if the brand was not mentioned |
| domainMention | Mention of the project domain in the response or sources |
| domainLink | Link to the project domain, if found |
| competitorMentioned | Competitors mentioned in the response. A null value means the response has not yet been indexed. |
GET: api/v1/ai-visibility/data?{ops}
Returns aggregate mention metrics for one competitor and AI model over a date range. The response has three metric groups: domain alone (unprefixed fields), brand alone (fields prefixed with brand*), and brand or domain (fields prefixed with total*). For prompt-level data, including responses and brand mentions, use api/v1/ai-prompts/data.
Input parameters
| Parameter | Description | Default value | Required |
|---|---|---|---|
| project_id | Project ID | no | yes |
| neural_network_id | AI model ID from the model list | no | yes |
| date_from | Beginning of the Date Range in YYYY-MM-DD | no | yes |
| date_to | End of Date Range in YYYY-MM-DD | date | no |
| rival_id | Competitor ID from the competitor list. If omitted, the project’s default competitor is used. | Not specified | no |
| limit | Number of entries in response, maximum 10,000 | 1000 | no |
| offset | Number of records to skip | 0 | no |
Response
The data field contains an array of objects with the following fields.
{
id: number,
rivalId: number,
checkedAt: string,
networkId: number,
networkCode: string,
networkName: string,
visibility: number,
mentionsCount: number,
positiveCount: number,
negativeCount: number,
neutralCount: number,
positivePercent: number,
negativePercent: number,
neutralPercent: number,
brandVisibility: number,
brandMentionsCount: number,
brandPositiveCount: number,
brandNegativeCount: number,
brandNeutralCount: number,
brandPositivePercent: number,
brandNegativePercent: number,
brandNeutralPercent: number,
totalVisibility: number,
totalPositiveCount: number,
totalNegativeCount: number,
totalNeutralCount: number,
totalPositivePercent: number,
totalNegativePercent: number,
totalNeutralPercent: number
}
| Field | Description |
|---|---|
| id | Metric ID |
| rivalId | Competitor ID |
| checkedAt | Check date in YYYY-MM-DD format |
| networkId | AI model ID |
| networkCode | AI model code |
| networkName | AI model name |
| visibility | Competitor visibility for the selected AI model on that date |
| mentionsCount | All mentions of the competitor |
| positiveCount | Number of positive mentions |
| negativeCount | Number of negative mentions |
| neutralCount | Number of neutral mentions |
| positivePercent | Percentage of positive mentions, % |
| negativePercent | Percentage of negative mentions, % |
| neutralPercent | Percentage of neutral mentions, % |
| Brand visibility | |
| brandVisibility | Visibility by brand mentions |
| brandMentionsCount | All brand mentions |
| brandPositiveCount | Number of positive brand mentions |
| brandNegativeCount | Number of negative brand mentions |
| brandNeutralCount | Number of neutral brand mentions |
| brandPositivePercent | Percentage of positive brand mentions, % |
| brandNegativePercent | Share of negative brand mentions, % |
| brandNeutralPercent | Share of neutral brand mentions, % |
| Total: brand or host | |
| totalVisibility | Visibility by mentions of a brand or host |
| totalPositiveCount | Number of positive mentions |
| totalNegativeCount | Number of negative mentions |
| totalNeutralCount | Number of neutral mentions |
| totalPositivePercent | Percentage of positive mentions, % |
| totalNegativePercent | Percentage of negative mentions, % |
| totalNeutralPercent | Percentage of neutral mentions, % |