Get a comprehensive overview of your brand’s visibility in AI-generated responses. Includes mention rates, source citations, sentiment scores, share of voice, and breakdowns by topic and competitor.
This endpoint returns aggregated metrics. See Competitor and Source for entity structures used in topCompetitors and topSources.
Bearer token. Example: Bearer qw-api-xxx
GET /api/v1/brands/{brandId}/performance
Path Parameters
The unique identifier of the brand
Query Parameters
Number of days to include in the snapshot
Start date (ISO 8601 format). Overrides period if provided with endDate
End date (ISO 8601 format). Overrides period if provided with startDate
Filter by AI provider. Options: chatgpt, perplexity, claude, gemini, etc.
Filter by topic ID (keywordId)
Filter by prompt type: TOFU, MOFU, BOFU
Response
Indicates if the request was successful
Total AI responses generated
Responses containing brand mentions
Overall GEO score (0-100)
Total responses checked for mentions
Number of source citations
Total responses checked for sources
Average sentiment score (0-100)
Average relevance score (0-100)
Top competitors by mention count
Top sources by citation count
Performance breakdown by topic
Example Request
curl -X GET "https://qwairy.co/api/v1/brands/cm1234567890abcdef/performance?period=30" \
-H "Authorization: Bearer qw-api-your-token-here"
Example Response
{
"success" : true ,
"brand" : {
"id" : "cm1234567890abcdef" ,
"name" : "My Brand" ,
"domain" : "mybrand.com"
},
"period" : {
"start" : "2024-12-01" ,
"end" : "2024-12-31"
},
"methodology" : {
"promptsCount" : 156 ,
"providersCount" : 2 ,
"providers" : [ "ChatGPT" , "Perplexity" ],
"responsesTotal" : 312 ,
"responsesWithMentions" : 230 ,
"responsesWithSources" : 184
},
"scores" : {
"global" : 62 ,
"mentionRate" : 45.2 ,
"mentionCount" : 104 ,
"mentionTotal" : 230 ,
"sourceRate" : 23.9 ,
"sourceCount" : 44 ,
"sourceTotal" : 184 ,
"sentiment" : 78.1 ,
"relevance" : 72.5 ,
"shareOfVoice" : 8.13
},
"topCompetitors" : [
{
"id" : "cmp1" ,
"name" : "Competitor A" ,
"relationship" : "DIRECT" ,
"mentions" : 111 ,
"avgPosition" : 2.3 ,
"avgSentiment" : 75.2
}
],
"topSources" : [
{
"id" : "src1" ,
"domain" : "industry-news.com" ,
"mentions" : 102 ,
"avgPosition" : 3.1 ,
"isSelf" : false
}
],
"byTopic" : [
{
"id" : "topic1" ,
"topic" : "Product Reviews" ,
"score" : 68 ,
"mentionRate" : 67.50 ,
"sourceRate" : 28.00 ,
"shareOfVoice" : 9.44
}
]
}
Error Responses
Status Code Description 400 INVALID_PARAMETERInvalid query parameter 401 INVALID_TOKENAuthentication failed 404 BRAND_NOT_FOUNDBrand doesn’t exist or not accessible