---
title: "Get time-bucketed statistics with optional filters"
method: GET
path: "/proxy-logs/stats/time-buckets"
tags: ["Proxy Logs"]
---

# Get time-bucketed statistics with optional filters

`GET /proxy-logs/stats/time-buckets`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/proxy-logs/stats/time-buckets`
- Auth: HTTP bearer

## Query parameters

- `start_time` string, required
- `end_time` string, required
- `bucket_interval` string
- `method` string
- `client_ip` string
- `project_id` integer
- `environment_id` integer
- `deployment_id` integer
- `host` string
- `status_code` integer
- `status_code_class` string
- `routing_status` string
- `request_source` string
- `is_bot` boolean
- `device_type` string
- `has_project` boolean

## Response `200`

Time-bucketed statistics

- TimeBucketStatsResponse: Response for time bucket stats
  - `bucket_interval` string, required
  - `end_time` string, required
  - `start_time` string, required
  - `stats` TimeBucketStats[], required
    - `avg_response_time_ms` number, double, required: Average response time in milliseconds
    - `bucket` string, required: Bucket timestamp in RFC3339 format
    - `error_count` integer, required: Number of errors (status >= 400)
    - `latency_count` integer, required: Number of requests in this bucket that recorded a latency value.
    - `p50_response_time_ms` number, double, required: p50 response time in milliseconds (0 when the bucket has no timings)
    - `p95_response_time_ms` number, double, required: p95 response time in milliseconds (0 when the bucket has no timings)
    - `p99_response_time_ms` number, double, required: p99 response time in milliseconds (0 when the bucket has no timings)
    - `request_count` integer, required: Total number of requests in this bucket
    - `total_request_bytes` integer, required: Total request bytes
    - `total_response_bytes` integer, required: Total response bytes

## Other responses

- `400`: Invalid parameters
- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 4 breaking
  - removed the required property `extensions` from the response with the `400` status
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-05** `4b228ebed583`: 4 info
  - added the optional property `status` to the response with the `400` status
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `500` status
- **2026-10-05** `63a80791dc58`: 4 warning
  - removed the optional property `status` from the response with the `400` status
  - removed the optional property `status` from the response with the `401` status
  - removed the optional property `status` from the response with the `403` status
  - removed the optional property `status` from the response with the `500` status
- **2026-09-23** `f4efc4d5c7b7`: 4 info
  - added the optional property `status` to the response with the `400` status
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `500` status
- …earlier changes not shown

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/proxy-logs/stats/time-buckets/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
