---
title: "Returns Query consumption statistics grouped by category within the specified date range."
method: GET
path: "/v1/Queries/statistics"
tags: ["Queries"]
---

# Returns Query consumption statistics grouped by category within the specified date range.

`GET /v1/Queries/statistics`

In Kimola, a `Query` is the unit of package consumption (e.g., text classification, tracking, scraping).
This endpoint aggregates Queries into the categories `Classification`, `Tracking`, and `Scraping`
and returns their counts and shares for the given period.

<b>startDate</b>: if `null`, defaults to one month before the current UTC time.  
<b>endDate</b>: if `null`, defaults to the current UTC time.

All dates are interpreted as UTC.

## Query parameters

- `startDate` string, date-time
- `endDate` string, date-time

## Response `200`

Successful operation. Returns an array of category statistics.

## Other responses

- `500` — An unexpected error occurred.

---

[API](https://skmtc.dev/kimola/apis/kimola-api.md) · [All operations](https://skmtc.dev/kimola/apis/kimola-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kimola/kimola-api/revisions/cd68ffb79b51/schema)
