Access web search queries that AI providers generate when responding to prompts. This reveals what searches AI platforms perform to gather information before answering.
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)
Maximum number of queries to return (max: 100)
Number of results to skip for pagination
sort
string
default: "createdAt"
Field to sort by: createdAt, query
Response
Indicates if the request was successful
Total number of queries matching filters
Number of queries in this response
The search query used by the AI
Original prompt that triggered this search
Example Request
curl -X GET "https://www.qwairy.co/api/v1/brands/cm1234567890abcdef/search?limit=10" \
-H "Authorization: Bearer qw-api-your-token-here"
Example Response
{
"success" : true ,
"pagination" : {
"total" : 320 ,
"count" : 2 ,
"limit" : 10 ,
"offset" : 0
},
"searches" : [
{
"id" : "srch1" ,
"query" : "best CRM software 2024 enterprise features comparison" ,
"prompt" : "What is the best CRM for enterprise?" ,
"createdAt" : "2024-12-15T10:30:00Z"
},
{
"id" : "srch2" ,
"query" : "Acme CRM vs Salesforce pricing" ,
"prompt" : "Compare Acme CRM to Salesforce" ,
"createdAt" : "2024-12-15T09:15:00Z"
}
]
}
Search queries reveal valuable keyword and intent data. Use this to understand what terms AI platforms associate with your industry.
Error Responses
Status Code Description 401 INVALID_TOKENAuthentication failed 404 BRAND_NOT_FOUNDBrand doesn’t exist or not accessible