Query Responses
Changed onReturns paginated AI model responses for a website with optional filtering by date range, models, prompts, competitors, and the search queries used to produce each response.
Request
- Base URLhttps://api.athenahq.ai
- AuthAPI key in header x-api-key
Request body
Example request
{
"website_id": "123e4567-e89b-12d3-a456-426614174000",
"filters": {
"start_date": "2024-01-01T00:00:00.000Z",
"end_date": "2024-12-31T23:59:59.999Z",
"models": [
"chatgpt",
"perplexity"
],
"location_ids": [
"123e4567-e89b-12d3-a456-426614174111"
]
},
"page_size": 40
}Response
Successful response with list of responses
Example response
{
"responses": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"website_id": "123e4567-e89b-12d3-a456-426614174000",
"prompt_id": "123e4567-e89b-12d3-a456-426614174000",
"base_prompt": "What is the best CRM software?",
"prompt": "What is the best CRM software for small businesses?",
"model": "chatgpt",
"response": "Here are some top CRM options...",
"mentioned": true,
"position": 2,
"cited": true,
"created_at": "2024-06-15T10:30:00.000Z",
"sources": [
{
"url": "example.com/article",
"normalized_url": "example.com/article",
"root_domain": "example.com",
"suffix": ".com"
}
],
"source_domains": [
"example.com",
"runnersworld.com"
],
"competitors": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Competitor Inc",
"url": "competitor.com",
"position": 1
}
]
}
]
}Changes
- breaking
added
subschema #2to therequest propertyallOflist - breaking
the
request property type changed fromobjectto no type - breaking
the response property
//became optional for the status - breaking
the response property
//became optional for the status - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
//to the response with the status - info
added the required property
//to the response with the status
- breaking