---
title: "Return a time-bucketed series of request volume, error rate, and latency percentiles for a project's API traffic."
method: GET
path: "/projects/{project_id}/api-analytics/timeseries"
tags: ["Analytics"]
---

# Return a time-bucketed series of request volume, error rate, and latency percentiles for a project's API traffic.

`GET /projects/{project_id}/api-analytics/timeseries`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/api-analytics/timeseries`
- Auth: HTTP bearer

Bucket granularity is auto-selected based on the requested window:
≤6 h → 5 min, ≤24 h → 1 h, ≤72 h → 6 h, else → 1 day.

## Path parameters

- `project_id` integer, required

## Query parameters

- `environment_id` integer
- `start_date` string, required
- `end_date` string, required

## Response `200`

Time-series of request volume, errors, and latency

- ApiTimeseriesResponse: Timeseries of API request volume, error rate, and latency percentiles.
  - `bucket_interval` string, required: Bucket interval used for time series (e.g. "1 hour", "6 hours", "1 day").
  - `overall_avg_latency_ms` number, double, nullable: Overall mean response time in milliseconds over the full period.
  - `overall_error_rate` number, double, required: Overall error rate over the full period (0.0–1.0).
  - `points` ApiTimeseriesPoint[], required: Time-bucketed data points ordered ascending by timestamp.
    - `avg_latency_ms` number, double, nullable: Mean response time in milliseconds. Null when no rows with a recorded response_time_ms exist in the bucket.
    - `error_count` integer, required: Number of requests with status >= 400.
    - `error_rate` number, double, required: Error rate: error_count / request_count (0.0–1.0). Zero when request_count == 0.
    - `p95_latency_ms` number, double, nullable: p95 response time in milliseconds. Null when insufficient data.
    - `p99_latency_ms` number, double, nullable: p99 response time in milliseconds. Null when insufficient data.
    - `request_count` integer, required: Total request count in this bucket.
    - `timestamp` string, date-time, required: Bucket start timestamp (ISO 8601 with Z suffix).
  - `total_errors` integer, required: Aggregate error count (status >= 400) over the full period.
  - `total_requests` integer, required: Aggregate request count over the full period.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-09-07** `2b95ed4ff1d2`: 1 info
  - endpoint added
- **2026-09-07** `f7404eb7ac98`: 1 breaking
  - api path removed without deprecation
- **2026-08-14** `5b69d84f67d1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/api-analytics/timeseries/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)
