Get Query Count Data
GET
/api/v2/query-counts/
Analyticsv2
days (int): Number of days to look back (for 'fixed' type)
start_date (str): Start date in ISO format (for 'range' type)
end_date (str): End date in ISO format (for 'range' type)
time_series (bool): Whether to return data in time series format
bucket_type (str): Type of time bucket ('day', 'week', 'month')
limit (int): Number of top entities to return per date bucket (default: 10)
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v2/query-counts/'
Response Response Example
200 - Standard Response
{
"success": true,
"message": "Overall query data retrieved successfully",
"data": {
"query_data": [
[
{
"date": "2024-05-01",
"interaction_count": 320
},
{
"date": "2024-05-02",
"interaction_count": 285
},
{
"date": "2024-05-03",
"interaction_count": 412
}
]
]
}
}
Request
Query Params
bucket_type
enum<string>Â
optional
Allowed values:
daymonthweek
Default:
day
Example:
day
days
integerÂ
optional
Example:
30
end_date
stringÂ
optional
Example:
2024-03-31
limit
integerÂ
optional
Default:
10
Example:
10
start_date
stringÂ
optional
Example:
2024-03-01
time_series
booleanÂ
optional
Default:
false
Example:
true
type
enum<string>Â
optional
Allowed values:
fixedrange
Example:
fixed