openapi: 3.0.3 info: title: Cloudflare / Accounts DNS Analytics API description: Needs description. license: name: BSD-3-Clause url: https://opensource.org/licenses/BSD-3-Clause version: 4.0.0 servers: - url: https://api.cloudflare.com/client/v4 description: Client API security: - api_email: [] api_key: [] - api_token: [] - user_service_key: [] tags: - name: DNS Analytics description: Access DNS query analytics for a zone with aggregated and time-grouped metrics. paths: /zones/{zone_id}/dns_analytics/report: get: operationId: getDnsAnalyticsReport summary: Cloudflare Get Dns Analytics Report description: Retrieve aggregated DNS analytics metrics for the zone including query counts, response codes, and record types. tags: - DNS Analytics parameters: - $ref: '#/components/parameters/ZoneId' - name: since in: query description: Start date of the analytics query in ISO 8601 format. schema: type: string format: date-time example: '2026-01-15T10:30:00Z' - name: until in: query description: End date of the analytics query in ISO 8601 format. schema: type: string format: date-time example: '2026-01-15T10:30:00Z' responses: '200': description: Aggregated DNS analytics report. '401': description: Unauthorized. x-microcks-operation: delay: 0 dispatcher: FALLBACK /zones/{zone_id}/dns_analytics/report/bytime: get: operationId: getDnsAnalyticsByTime summary: Cloudflare Get Dns Analytics by Time description: Retrieve time-grouped DNS analytics metrics for the zone. tags: - DNS Analytics parameters: - $ref: '#/components/parameters/ZoneId' - name: since in: query description: Start date in ISO 8601 format. schema: type: string format: date-time example: '2026-01-15T10:30:00Z' - name: until in: query description: End date in ISO 8601 format. schema: type: string format: date-time example: '2026-01-15T10:30:00Z' - name: time_delta in: query description: Time interval for grouping results. schema: type: string enum: - all - auto - year - quarter - month - week - day - dekaminute - hour - minute example: all responses: '200': description: Time-grouped DNS analytics report. '401': description: Unauthorized. x-microcks-operation: delay: 0 dispatcher: FALLBACK components: parameters: ZoneId: name: zone_id in: path required: true description: The unique identifier of the zone. schema: type: string