Skip to content
AnswerWell geo Documentation

Research · 7 min read · Answerwell

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.

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.

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:

  1. Using a regular API key instead of an organization analytics API key.
  2. Assuming paid/promo breakdown on credit_usage without reading categories.
  3. Summing daily_active_users buckets to infer unique members over a window.
  4. Treating Project or Comet axes on query_volume as partitions that sum to count.
  5. Reusing a page cursor after changing dataset, start_time, or other parameters.
  6. Expecting today’s daily bucket on v1/v2—use 1h buckets 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.

  1. 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).

  2. Call GET /v1/analytics/computer/usage with dataset=credit_usage, a recent start_time, and bucket_width=1d; verify 200, a categories array, and chronologically ordered data buckets.

  3. If you need per-member credits or query volume by day, call GET /v2/analytics/computer/usage with group_by=user_email and page until has_more is false.

  4. Deliberately pass a mismatched page cursor or an invalid user_email and confirm 400 responses match the documented error shapes.

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

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.