Usage Analytics API: Datasets, Time Buckets, and Pagination
How to query organization usage time series, choose datasets and bucket widths, paginate results, and pull per-member breakdowns.
This page summarises Perplexity documentation for the Analytics API, which gives Enterprise organizations programmatic access to usage analytics across Perplexity Computer—credits, query volume, active members, connectors, artifacts, skills, spaces, workflows, and task durations—as bucketed time series for BI tools or internal reporting. Analytics requests are free and do not consume API credits. The API is available to Perplexity Enterprise organizations; if the Analytics API toggle is missing in admin settings, the feature may not be enabled yet.
Analytics API access: who can call it and which key to use
Section titled “Analytics API access: who can call it and which key to use”The Usage Analytics endpoint and the per-member variant require an organization analytics API key, minted by an org admin from Settings → Organization → Computer in the Perplexity web app—not a regular API key. Setup and semantics are described in the Analytics API admin guide.
The Analytics API gives Perplexity Enterprise organizations programmatic access to organization usage analytics across Perplexity — credits, query volume, active members, connectors, artifacts, skills, spaces, workflows, and task durations — as bucketed time series you can pull into BI tools or internal reporting.
— Perplexity, Analytics API
Callers authenticate with Authorization: Bearer <token>. A missing or invalid key returns 401 (unauthorized). If Analytics is not enabled for the org, the API returns 404 (feature_disabled).
GET /v1/analytics/computer/usage: one time series per dataset
Section titled “GET /v1/analytics/computer/usage: one time series per dataset”GET /v1/analytics/computer/usage returns one time series per request for a single dataset. The OpenAPI reference documents parameters and response shapes; the Querying Usage section of the admin guide explains bucket semantics and pagination patterns.
Required and optional query parameters (v1)
Section titled “Required and optional query parameters (v1)”| Parameter | Required | Role |
|---|---|---|
dataset |
Yes | Which metric to return (see datasets below). |
start_time |
Yes | Window start, Unix seconds (UTC), inclusive; snapped down to the bucket grid. |
end_time |
No | Window end, Unix seconds (UTC), exclusive; defaults to now; future values capped at now. |
bucket_width |
No | 1d (default) or 1h; aligns to UTC. |
limit |
No | Buckets per page: 1d default 7, max 31; 1h default 24, max 168. |
page |
No | Opaque cursor from next_page; must repeat the same query parameters. |
user_email |
No | Restrict to one member; not valid for query_volume or daily_active_users. |
The window may span at most 90 days per request; longer ranges require pagination within the window.
Datasets: what each one counts and which options apply
Section titled “Datasets: what each one counts and which options apply”Each dataset measures something different. Most accept both bucket_width values and optional user_email; query_volume and daily_active_users are organisation-level daily aggregates only—they reject bucket_width=1h and user_email with 400 rather than an empty series.
| Dataset | Counts | Breakdown axes | Grain / scope |
|---|---|---|---|
credit_usage |
Credits | Model; optional legacy Credit Source | 1d or 1h |
query_volume |
Queries | Feature, Model, Model Family, Project, Comet | 1d, org only |
daily_active_users |
Distinct members active that day | None | 1d, org only |
connectors |
Threads | Connector | 1d or 1h |
artifacts |
Threads | Artifact Type | 1d or 1h |
skills |
Threads | Skill | 1d or 1h |
spaces |
Threads | Space | 1d or 1h |
workflows |
Threads | Workflow | 1d or 1h |
task_durations |
Completed threads | Task Duration | 1d or 1h |
For query_volume, Feature splits queries into Search or Computer; Project and Comet are overlapping subsets, not partitions—a query in a project is still Search or Computer—so those axes do not sum to count. For credit_usage, count can exceed the sum of any single breakdown because unattributed usage counts toward the total but not toward a breakdown.
For per-member query volume, use the v2 endpoint rather than user_email on v1 org-level query_volume.
v1 response: categories, buckets, and pagination
Section titled “v1 response: categories, buckets, and pagination”The response lists breakdown axes in categories (canonical order). credit_usage may include a legacy Credit Source axis (paid / promo); when funding data is unavailable or totals-only reporting is enabled, Credit Source is omitted—omitted means unavailable, not zero paid or promotional usage.
Each element of data is one bucket (start_time, end_time, count, by_categories). Buckets without data have count: 0 and empty breakdown lists. When the window has more buckets than limit, has_more is true and next_page must be passed as page with identically the same other parameters; a cursor reused with different parameters returns 400.
Time windows and bucket_width: UTC grid rules
Section titled “Time windows and bucket_width: UTC grid rules”The API serves complete UTC grid buckets only.
start_time snaps down to the start of its bucket, so the first bucket can include usage from before your requested start.
end_time is exclusive and is capped at the current time, then snapped down — the in-progress bucket is never returned. With bucket_width=1d, today’s bucket is not included; use 1h for intraday data.
— Perplexity, Analytics API — Time Windows and Buckets
A valid window that contains no complete buckets still returns 200 with empty data. Requesting bucket_width=1h for a daily-only dataset, or user_email for an organisation-only dataset, returns 400.
user_email filtering on v1: single-member series
Section titled “user_email filtering on v1: single-member series”Pass user_email to restrict a v1 series to one organisation member (all datasets except query_volume and daily_active_users):
curl --request GET \ --url "https://api.perplexity.ai/v1/analytics/computer/usage?dataset=credit_usage&start_time=1746057600&user_email=member@example.com" \ --header "Authorization: Bearer YOUR_API_KEY"The email must belong to a current member; any other value returns a generic 400 with a message that the email does not match a member of the organisation. Details are in Filtering by Member.
GET /v2/analytics/computer/usage: per-member daily breakdown
Section titled “GET /v2/analytics/computer/usage: per-member daily breakdown”GET /v2/analytics/computer/usage breaks usage down per member instead of as a single org total. It returns daily buckets; each day lists one row per member with usage that day, keyed by user_email. It uses the same organisation analytics API key, error envelope, and org-wide rate limits as v1. See Usage Analytics per Member and Per-Member Usage.
v2 parameters and supported datasets
Section titled “v2 parameters and supported datasets”| Parameter | Required | Role |
|---|---|---|
dataset |
Yes | credit_usage or query_volume (only datasets with per-member grouping today). |
group_by |
Yes | Must be user_email (only value supported today). |
start_time |
Yes | Snapped to day grid; inclusive. |
end_time |
No | Exclusive; defaults to now. |
limit |
No | Member rows per page; default 50, max 100; one page can span multiple days. |
page |
No | Cursor from next_page; same validation rules as v1. |
query_volume at this grain carries Feature, Project, and Comet breakdowns, but not Model or Model Family. Days with no attributable usage are omitted rather than returned empty. Time-window rules match v1’s 1d mode.
v2 paginates over member rows, not days: each (day, member) pair counts as one row toward limit. Page until has_more is false, passing next_page as page without changing other parameters—see Paginating Members.
Rate limits, errors, and common mistakes
Section titled “Rate limits, errors, and common mistakes”Limits (from the Analytics API):
- Time windows: 90 days per request; paginate for longer history.
- Rate limits apply per organisation across all keys minted by that org (429,
request_rate_limit_exceeded).
Common mistakes:
- Using a regular API key instead of an organization analytics API key.
- Assuming paid/promo breakdown on
credit_usagewithout readingcategories. - Summing
daily_active_usersbuckets to infer unique members over a window. - Treating Project or Comet axes on
query_volumeas partitions that sum tocount. - Reusing a
pagecursor after changingdataset,start_time, or other parameters. - Expecting today’s daily bucket on v1/v2—use
1hbuckets for intraday v1 data where the dataset allows it.
Other documented errors include 400 for start_time after end_time, windows over 90 days, or invalid pagination.
How to check this on your site
Section titled “How to check this on your site”-
Confirm your organisation is on Perplexity Enterprise and that an admin has enabled the Analytics API and created a key under Analytics API (Settings → Organization → Computer).
-
Call
GET /v1/analytics/computer/usagewithdataset=credit_usage, a recentstart_time, andbucket_width=1d; verify 200, acategoriesarray, and chronologically ordereddatabuckets. -
If you need per-member credits or query volume by day, call
GET /v2/analytics/computer/usagewithgroup_by=user_emailand page untilhas_moreis false. -
Deliberately pass a mismatched
pagecursor or an invaliduser_emailand confirm 400 responses match the documented error shapes. -
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about.