curl --request POST \
--url https://api.athenahq.ai/api/v1/responses \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"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"
],
"prompt_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"competitor_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"prompt_status": "active",
"prompt_type": "branded"
},
"page_num": 0,
"page_size": 40
}
'{
"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,
"cited": true,
"created_at": "2024-06-15T10:30:00.000Z",
"sources": [
{
"url": "example.com/article",
"root_domain": "example.com",
"normalized_url": "example.com/article",
"suffix": ".com"
}
],
"competitors": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Competitor Inc",
"url": "competitor.com",
"position": 1
}
],
"position": 2
}
]
}Returns paginated AI model responses for a website with optional filtering by date range, models, prompts, and competitors.
curl --request POST \
--url https://api.athenahq.ai/api/v1/responses \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"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"
],
"prompt_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"competitor_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"prompt_status": "active",
"prompt_type": "branded"
},
"page_num": 0,
"page_size": 40
}
'{
"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,
"cited": true,
"created_at": "2024-06-15T10:30:00.000Z",
"sources": [
{
"url": "example.com/article",
"root_domain": "example.com",
"normalized_url": "example.com/article",
"suffix": ".com"
}
],
"competitors": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Competitor Inc",
"url": "competitor.com",
"position": 1
}
],
"position": 2
}
]
}Request body for querying responses
The ID of the website to query responses for
"123e4567-e89b-12d3-a456-426614174000"
Filters for querying responses
Show child attributes
Filter start date (UTC)
"2024-01-01T00:00:00.000Z"
Filter end date (UTC)
"2024-12-31T23:59:59.999Z"
Filter by AI models
chatgpt, perplexity, gemini, google_ai_overview, copilot, claude, ai_mode, grok, deepseek ["chatgpt", "perplexity"]Filter by specific prompt IDs
Filter by specific competitor IDs
Filter by prompt status
active, paused Filter by prompt type
branded, non_branded Page number for pagination (0-indexed)
x >= 00
Number of responses per page
1 <= x <= 10040
Successful response with list of responses
Show child attributes
Unique identifier for the response
"123e4567-e89b-12d3-a456-426614174000"
Associated website ID
"123e4567-e89b-12d3-a456-426614174000"
Associated prompt ID
"123e4567-e89b-12d3-a456-426614174000"
Original prompt text
"What is the best CRM software?"
Actual prompt variation used
"What is the best CRM software for small businesses?"
AI model that generated the response
"chatgpt"
The AI-generated response text
"Here are some top CRM options..."
Whether your website was mentioned in the response
true
Whether your website was cited as a source
true
Timestamp when the response was captured (UTC)
"2024-06-15T10:30:00.000Z"
Sources cited in the response
Show child attributes
The source URL
"example.com/article"
Root domain of the source
"example.com"
Normalized version of the URL
"example.com/article"
Domain suffix
".com"
Competitors mentioned in the response
Show child attributes
Competitor ID
"123e4567-e89b-12d3-a456-426614174000"
Competitor name
"Competitor Inc"
Competitor URL
"competitor.com"
Position/rank of competitor mention in the response
1
Your website's rank/position in the response (null if not mentioned)
2