curl --request GET \
--url https://api.trakkr.ai/get-scores \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.trakkr.ai/get-scores', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trakkr.ai/get-scores"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"brand_id": "0000000000000x000000000000000000",
"start_date": "2025-01-01",
"end_date": "2025-01-03",
"breakdown": [],
"data": [
{
"date": "2025-01-01",
"visibility": 85.5,
"presence": 92.3
},
{
"date": "2025-01-02",
"visibility": 87.2,
"presence": 91.8
},
{
"date": "2025-01-03",
"visibility": 86.9,
"presence": 93.1
}
],
"errors": null
}Get scores
Retrieve historical brand visibility and presence scores with optional breakdowns by AI model and/or prompt.
Important: The date range (end_date - start_date) cannot exceed 90 days.
curl --request GET \
--url https://api.trakkr.ai/get-scores \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.trakkr.ai/get-scores', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trakkr.ai/get-scores"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"brand_id": "0000000000000x000000000000000000",
"start_date": "2025-01-01",
"end_date": "2025-01-03",
"breakdown": [],
"data": [
{
"date": "2025-01-01",
"visibility": 85.5,
"presence": 92.3
},
{
"date": "2025-01-02",
"visibility": 87.2,
"presence": 91.8
},
{
"date": "2025-01-03",
"visibility": 86.9,
"presence": 93.1
}
],
"errors": null
}Authorizations
API key authentication. Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Query Parameters
The brand ID (32-character hexadecimal string)
32^[0-9a-fx]{32}$Array of breakdown types. Valid values:
[]or omitted - No breakdown, returns only time series data["model"]- Break down by AI model["prompt"]- Break down by prompt["model", "prompt"]- Break down by both
2model, prompt Start date in YYYY-MM-DD format. If not provided, defaults to 28 days before end_date. The total date range cannot exceed 90 days.
^\d{4}-\d{2}-\d{2}$End date in YYYY-MM-DD format. If not provided, defaults to the most recent report date for the brand. The total date range cannot exceed 90 days.
^\d{4}-\d{2}-\d{2}$Response
Successful response
The brand ID that was queried
^[0-9a-fx]{32}$"0000000000000x000000000000000000"
The human-readable brand name
"Acme Corporation"
The start date used for the query
"2025-01-01"
The end date used for the query
"2025-01-31"
The breakdown types that were requested
model, prompt ["model"]
Array of daily report data
Show child attributes
Show child attributes
Array of non-critical error messages (null if no errors)
Was this page helpful?