Documentation Index Fetch the complete documentation index at: https://docs.qwairy.co/llms.txt
Use this file to discover all available pages before exploring further.
Access aggregated web search queries that AI providers generate when responding to prompts. Results are grouped by query text with brand presence, competitor presence, and priority metrics.
Results are aggregated by query (case-insensitive, trimmed). Each row represents a unique search query across all responses and providers.
List Search Insights
Bearer token. Example: Bearer qw-api-xxx
GET /api/v1/brands/{brandId}/search
Path Parameters
The unique identifier of the brand
Query Parameters
Number of days to include. If not specified, returns all data.
Start date (ISO 8601 format)
End date (ISO 8601 format)
Filter by AI provider. Supports comma-separated multi-select (e.g., chatgpt,claude).
Maximum number of queries to return (max: 100)
Number of results to skip for pagination
sort
string
default: "occurrences"
Field to sort by: occurrences, priority, brandPresence, query, createdAt
Response
Indicates if the request was successful
Total number of unique queries matching filters
Number of queries in this response
Show Search insight object
The search query used by the AI
Number of times this query appeared across all responses
Priority level: very-high (competitors present, brand absent), high (both present), medium (brand only), low (neither)
Number of responses where the brand’s domain was cited as source
Number of responses where direct competitors were mentioned
List of direct competitor names mentioned
Number of distinct prompts that triggered this query
Number of distinct AI responses containing this query
Number of distinct AI models that generated this query
List of model IDs that generated this query
First occurrence (ISO 8601 timestamp)
Most recent occurrence (ISO 8601 timestamp)
Example Request
curl -X GET "https://www.qwairy.co/api/v1/brands/cm1234567890abcdef/search?limit=10&sort=priority" \
-H "Authorization: Bearer qw-api-your-token-here"
Example Response
{
"success" : true ,
"pagination" : {
"total" : 142 ,
"count" : 2 ,
"limit" : 10 ,
"offset" : 0
},
"searches" : [
{
"query" : "best CRM software 2024 enterprise features comparison" ,
"occurrences" : 12 ,
"priority" : "very-high" ,
"brandPresence" : 0 ,
"competitorPresence" : 8 ,
"competitors" : [ "Salesforce" , "HubSpot" ],
"uniquePrompts" : 5 ,
"uniqueAnswers" : 12 ,
"uniqueModels" : 3 ,
"models" : [ "gpt-4o" , "claude-3-5-sonnet" , "gemini-1.5-pro" ],
"topics" : [ "CRM" , "Enterprise Software" ],
"tags" : [ "comparison" ],
"firstSeen" : "2024-12-01T10:30:00.000Z" ,
"lastSeen" : "2024-12-15T10:30:00.000Z"
},
{
"query" : "Acme CRM pricing plans 2024" ,
"occurrences" : 5 ,
"priority" : "medium" ,
"brandPresence" : 3 ,
"competitorPresence" : 0 ,
"competitors" : [],
"uniquePrompts" : 2 ,
"uniqueAnswers" : 5 ,
"uniqueModels" : 2 ,
"models" : [ "gpt-4o" , "gemini-1.5-pro" ],
"topics" : [ "Pricing" ],
"tags" : [],
"firstSeen" : "2024-12-05T09:15:00.000Z" ,
"lastSeen" : "2024-12-14T09:15:00.000Z"
}
]
}
Breaking change from previous version: Results are now aggregated by unique query text. The previous id and prompt fields have been removed. Use lastSeen instead of the previous createdAt field for timestamp ordering.
Search queries reveal valuable keyword and intent data. Use priority to identify high-value queries where competitors appear but your brand doesn’t (very-high).
Error Responses
Status Code Description 401 INVALID_TOKENAuthentication failed 404 BRAND_NOT_FOUNDBrand doesn’t exist or not accessible