---
title: "Return the top callers (by client IP, ranked by request count) in a project's API traffic window."
method: GET
path: "/projects/{project_id}/api-analytics/callers"
tags: ["Analytics"]
---

# Return the top callers (by client IP, ranked by request count) in a project's API traffic window.

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

## 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/callers`
- Auth: HTTP bearer

IP addresses are returned as-is from `proxy_logs.client_ip`. The caller
is responsible for any presentation-layer masking required by their privacy
policy.

## Path parameters

- `project_id` integer, required

## Query parameters

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

## Response `200`

Top callers by request count

- ApiCallersResponse: Top callers (by IP) ranked by request count for a given project + time window.
  - `callers` ApiCallerEntry[], required: Top callers, ordered by request_count descending.
    - `client_ip` string, required: Caller IP address as recorded in proxy_logs.client_ip.
    - `error_rate` number, double, required: Error rate for this caller (0.0–1.0).
    - `last_seen` string, date-time, required: Timestamp of the most recent request from this IP in the period.
    - `request_count` integer, required: Total request count from this IP in the period.
  - `total_callers` integer, required: Total distinct client IPs seen in the period (before the limit).

## 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/callers/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)
