Skip to main content
POST
/
api
/
analytics
/
models
/
citation-timeseries
Get citation rate timeseries per AI model
curl --request POST \
  --url https://api.mentionlab.io/api/analytics/models/citation-timeseries \
  --header 'Content-Type: application/json' \
  --header 'x-project-id: <x-project-id>' \
  --data '
{
  "bucketSize": "day",
  "startDate": "2025-01-01",
  "endDate": "2025-02-01",
  "country": "<string>",
  "language": "<string>",
  "models": [
    "<string>"
  ],
  "hasSources": true,
  "hasShopping": true,
  "queryTagIds": [
    "<string>"
  ],
  "execTagIds": [
    "<string>"
  ],
  "queryTagMode": "or",
  "execTagMode": "or",
  "entityIds": [
    "<string>"
  ]
}
'
[
  {
    "bucket": "2025-01-01T00:00:00.000Z",
    "model": "gpt-4o",
    "value": 28
  }
]

Headers

x-project-id
string
required

Project ID to specify the project context

Body

application/json
bucketSize
enum<string>
required

Time bucket granularity

Available options:
day,
week,
month
Example:

"day"

startDate
string

Start date (inclusive)

Example:

"2025-01-01"

endDate
string

End date (exclusive)

Example:

"2025-02-01"

country
string

Filter by country code

language
string

Filter by language code

models
string[]

Filter by AI models

hasSources
boolean

Filter by responses that have sources

hasShopping
boolean

Filter by responses that have shopping products

queryTagIds
string[]

Filter by query tag IDs

execTagIds
string[]

Filter by execution tag IDs

queryTagMode
enum<string>
default:or

Query tag matching mode: "or" matches ANY tag (default), "and" matches ALL tags.

Available options:
and,
or
execTagMode
enum<string>
default:or

Execution tag matching mode: "or" matches ANY tag (default), "and" matches ALL tags.

Available options:
and,
or
entityIds
string[]

Override entity IDs for visibility/SoV numerator (defaults to primary entities)

Response

200 - application/json
bucket
string
required

Start of the time bucket (ISO 8601). Granularity depends on the requested bucketSize (day/week/month).

Example:

"2025-01-01T00:00:00.000Z"

model
string
required

AI model name (e.g. gpt-4o, claude-3.5-sonnet).

Example:

"gpt-4o"

value
number
required

Metric value for this model in this bucket. The meaning depends on the timeseries endpoint used: visibilityPct (% of responses mentioning the brand), shareOfVoice (brand mentions / all entity mentions × 100), citationRate (% of responses containing source citations), or avgPositionRank (average position rank of the brand).

Example:

28