getLogs
Retrieve and filter DNS query logs from a NextDNS profile with date range, device, status, and text search options, plus pagination support.
Instructions
Retrieves DNS query logs for a profile with filtering and pagination support.
Supports filtering by date range, device, status, and text search.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile_id | Yes | Profile ID (6-character alphanumeric identifier) | |
| from | Yes | Start timestamp for analytics (Unix timestamp or ISO 8601) | |
| to | No | End timestamp for analytics (Unix timestamp or ISO 8601) | |
| limit | No | Maximum number of results to return | |
| device | No | Filter by device ID | |
| status | No | Filter by query status | |
| search | No | Search query for domain names | |
| sort | No | Sort order (asc or desc) | desc |
| cursor | No | Pagination cursor |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| cursor | No | Cursor for next page |