getDomainsQueriesStats
Retrieve paginated DNS query statistics grouped by domain for a chosen period, filtered by devices, countries, or DNS servers.
Instructions
Gets domains statistics
Returns DNS query statistics grouped by domain for the specified period. Response is paginated, items are arranged by query count. For the initial request a default limit is applied if not specified. For the subsequent requests cursor must be provided (limit can be omitted). Filtering parameters, if specified for the initial request, must be provided on each page request as well.
Calls GET /oapi/v1/stats/domains.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getDomainsQueriesStats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Pagination limit (may be overridden by cursor) (default: 10) | |
| cursor | No | Pagination cursor | |
| devices | No | Filter by devices | |
| timespan | No | Statistics timespan (has greater priority over explicitly provided millis) | |
| countries | No | Filter by countries | |
| dns_servers | No | Filter by DNS servers | |
| X_Account_Id | No | Optional ID of the account to operate on. Defaults to the authenticated user's own account. Use GET /oapi/v1/accounts to list available accounts. | |
| time_to_millis | No | Time to in milliseconds (inclusive), required if `timespan` is not specified | |
| time_from_millis | No | Time from in milliseconds (inclusive), required if `timespan` is not specified |