- Developers
- API Reference
- AI Visibility
Prompt History
Get AI model response history with citations for a prompt
GET
https://app.ranked.ai/api/v1/projects/{projectId}/prompts/{promptId}/historyReturns the full response history from each AI model, including the response content, brand position, and cited sources.
Path parameters
projectIdstringrequiredProject UUID
promptIdstringrequiredPrompt UUID
Query parameters
limitnumberdefault: 50Max responses to return
offsetnumberdefault: 0Number to skip
date_fromstringStart date (ISO 8601). Defaults to 90 days ago.
date_tostringEnd date (ISO 8601)
Request
curl "https://app.ranked.ai/api/v1/projects/{projectId}/prompts/{promptId}/history?limit=5" \
-H "Authorization: Bearer rk_live_your_api_key"Response
{
"success": true,
"data": {
"prompt_id": "bd17920c-61ff-4298-9116-f0a8035aabf3",
"prompt": "Who provides tree services for HOA properties in Sioux City, Iowa?",
"responses": [
{
"model": "perplexity/sonar",
"is_visible": true,
"position": 5,
"citations_count": 6,
"citations": [
{
"url": "https://siouxcitytreeco.com",
"title": "siouxcitytreeco.com",
"domain": "siouxcitytreeco.com"
}
],
"response_excerpt": "Several companies in Sioux City, IA, offer professional tree services...",
"checked_at": "2026-05-10T00:30:51.679+00:00"
}
]
},
"meta": {
"pagination": { "total": 36, "limit": 5, "offset": 0, "has_more": true }
}
}This page is also available as markdown for AI agents, and the whole reference as an OpenAPI spec. Questions? Developer support.