# PageLens API

**Canonical:** https://apis.io/apis/pagelens-io/pagelens-io-api/  
**Provider:** PageLens — https://apis.io/providers/pagelens-io/  
**Base URL:** https://app.pagelens.io  
**Documentation:** https://pagelens.io/docs/api

PageLens API is one of 2 APIs that [PageLens](https://apis.io/providers/pagelens-io/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 2 JSON Schema definitions. The published artifact set on APIs.io includes an OpenAPI specification and 2 JSON Schemas.

PageLens API as documented publicly: 21 operations. Contract generated from the documentation by API Evangelist (2026-11-20); not the provider's own document.

## Operations (21)

| Method | Path | Summary |
|---|---|---|
| GET | `/api/sites` | Your sites |
| GET | `/api/sites/{id}` | One site with its settings |
| GET | `/api/sites/{id}/bots` | Bot and AI traffic |
| GET | `/api/sites/{id}/breakdown/{dimension}` | rows of value, visitors, sessions, count. Supports search |
| GET | `/api/sites/{id}/errors` | JavaScript errors |
| GET | `/api/sites/{id}/events` | Custom events and properties |
| GET | `/api/sites/{id}/export/{type}` | CSV download |
| POST | `/api/sites/{id}/funnel` | Create a funnel |
| GET | `/api/sites/{id}/goals` | Goals with conversions |
| POST | `/api/sites/{id}/goals` | Write keys: create a goal |
| GET | `/api/sites/{id}/journeys` | Common paths |
| GET | `/api/sites/{id}/pages` | Per-page metrics |
| GET | `/api/sites/{id}/performance` | Web Vitals |
| GET | `/api/sites/{id}/realtime` | Visitors in the last 5 minutes |
| GET | `/api/sites/{id}/retention` | Cohorts; unit = day or week |
| GET | `/api/sites/{id}/segments` | Saved segments |
| GET | `/api/sites/{id}/sessions` | Sessions. tab = engaged, bounced, errors or replay. user = an identified user id. |
| GET | `/api/sites/{id}/sessions/{sid}` | Events of one session |
| GET | `/api/sites/{id}/users` | Users. tab = identified or anonymous. Supports search . |
| GET | `/api/sites/{id}/users/{uid}` | One user's profile and sessions |
| POST | `/api/track` | POST /api/track |

## Machine-readable artifacts (3)

- **OpenAPI** — https://artifacts.apis.io/pagelens-io/openapi/_ae-authored/pagelens-io-openapi-generated.yml
- **JSONSchema** — https://artifacts.apis.io/pagelens-io/json-schema/pagelens-io-post-api-track-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/pagelens-io/json-schema/pagelens-io-post-api-sites-id-funnel-request-schema.json

## Other PageLens APIs (1)

- [PageLens API](https://apis.io/apis/pagelens-io/pagelens-api/)

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/pagelens-io` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/pagelens-io/pagelens-io-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/pagelens-io/.
