---
title: "Get the top pages accessed by a specific AI agent over a time window."
method: GET
path: "/proxy-logs/stats/ai-agent-pages"
tags: ["Proxy Logs"]
---

# Get the top pages accessed by a specific AI agent over a time window.

`GET /proxy-logs/stats/ai-agent-pages`

## 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/ai-agent-pages`
- Auth: HTTP bearer

Returns page paths ranked by request count, scoped to a single canonical
agent name (e.g. `ChatGPT-User`). Use `GET /proxy-logs/ai-agents/known` to
list all valid agent names. Unknown agent names return an empty items array.

## Query parameters

- `agent` string, required
- `project_id` integer, nullable
- `environment_id` integer, nullable
- `start_time` string, nullable
- `end_time` string, nullable
- `limit` integer, nullable

## Response `200`

Pages breakdown for the requested agent

- AiAgentPagesResponse: Response wrapping the per-agent pages breakdown rows.
  - `agent` string, required: The agent name this breakdown is scoped to.
  - `end_time` string, required
  - `items` AiAgentPageRow[], required
    - `last_seen` string, nullable: Last-seen timestamp in RFC3339 format, or `None` if no rows matched.
    - `path` string, required
    - `request_count` integer, required
    - `unique_ips` integer, required
  - `start_time` string, required

## 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/ai-agent-pages/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)
