---
title: "Fetch Page Stats"
method: GET
path: "/pages/{page_id}/stats"
tags: ["Page"]
---

# Fetch Page Stats

`GET /pages/{page_id}/stats`

Retrieve statistics for a page, including views, opt-ins, sales, and earnings.
Stats are computed from the page's associated funnel step.

`funnel` and `step` are `null` when the page is not part of a funnel
(e.g. a standalone page or site page). This endpoint currently only reports
analytics for pages reached via a funnel step; page-level analytics for standalone
pages will be exposed in a future release.

Defaults to a 30-day timerange ending now. Override with `timerange_start` and
`timerange_end`. Timerange values are automatically clamped: future end dates
are clamped to now, windows exceeding 90 days are clamped to 90 days, and if
start is after end the window resets to 30 days ending at `timerange_end`.

## Path parameters

- `page_id` integer, required

## Query parameters

- `timerange_start` string, date-time
- `timerange_end` string, date-time

## Response `200`

OK

- PageStatsAttributes — Statistics for a page, including views, opt-ins, sales, and earnings. Stats are computed from the page's associated funnel step. `funnel` and `step` are `null` when the page is not part of a funnel (e.g. a standalone page or site page). This endpoint currently only reports analytics for pages reached via a funnel step; page-level analytics for standalone pages will be exposed in a future release.
  - `currency` string — ISO 4217 currency code for all monetary values (e.g. USD, EUR)
  - `timerange` object — The actual time range used for the stats (after any clamping)
    - `from` string, date-time — Start of the timerange (ISO 8601)
    - `to` string, date-time — End of the timerange (ISO 8601)
  - `page` PageSummary — Lightweight page identifier used inside the Page Stats response.
    - `id` integer — The page ID
    - `public_id` string — The public identifier of the page
    - `name` string — The page name
    - `current_path` string — The canonical page-level path for this page
    - `type` string — The page type (e.g. `landing_page`, `site_page`, `funnel_page`, `theme_page`)
  - `funnel` FunnelSummary — Lightweight funnel identifier used inside stats responses.
    - `id` integer — The funnel ID
    - `public_id` string — The public identifier of the funnel
    - `name` string — The name of the funnel
  - `step` FunnelStepStats — Per-step statistics for a funnel step. Used in the `steps` array of the Funnel Stats response and as the `step` object in the Page Stats response.
    - `page_id` integer, nullable — The id of the page this step renders (when the step is a show-page step). `null` for non-page steps.
    - `name` string — The step name
    - `current_path` string — The workflow-level routing segment for this step (from the `Workflows::Step#current_path` attribute). Note: this is the workflow step path, not the page's own `current_path` which is the page-level canonical path.
    - `views_all` integer — Total pageviews for this step
    - `views_unique` integer — Unique pageviews for this step
    - `optins` integer — Number of opt-ins on this step
    - `optin_rate` number, float — Opt-in rate (optins / unique views)
    - `sales_count` integer — Number of sales on this step
    - `sales_rate` number, float — Sales conversion rate (sales / unique views)
    - `sales_value` string — Total sales value as a decimal string (see top-level currency field)
    - `recurring_sales_count` integer — Number of recurring sales
    - `recurring_sales_value` string — Total recurring sales value as a decimal string (see top-level currency field)
    - `earnings_per_view` string — Earnings per view as a decimal string (see top-level currency field)
    - `earnings_per_unique_view` string — Earnings per unique view as a decimal string (see top-level currency field)

## Other responses

- `401` — Unauthorized
- `404` — Not Found

---

[API](https://skmtc.net/myclickfunnels/apis/clickfunnels-api.md) · [All operations](https://skmtc.net/myclickfunnels/apis/clickfunnels-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myclickfunnels/clickfunnels-api/revisions/ae6313eaa176/schema)
