Overview
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. Credit usage and query volume can also be broken down per member. Analytics requests are free and don’t consume API credits.This API is available to Perplexity Enterprise organizations. If you don’t see the Analytics API toggle described below, the feature may not be enabled for your organization yet — contact your Perplexity representative.
Getting Access
Access is managed by your organization’s admins from the Perplexity web app:1
Enable the Analytics API
In the Perplexity web app, open your organization’s Computer settings and find the Analytics section. Turn on Analytics API to provision API access for your organization.
2
Generate your API key
In the row that appears below the toggle, select Generate key.
- Org-scoped, admin-managed — the key belongs to your organization, not to the admin who created it. Any org admin can view the current key and regenerate it.
- One active key — your organization has at most one active analytics key. Regenerating revokes the previous key.
- Analytics-only — the key authenticates analytics endpoints only; it cannot call other Perplexity APIs and has no billing attached.
- Disabling revokes — turning the Analytics API toggle off permanently revokes the key.
Authentication
Pass the key as a bearer token:Querying Usage
GET /v1/analytics/computer/usage returns one time series per request, for a single dataset.
Parameters
Datasets
Each dataset measures something different. Most accept both bucket widths and a member filter;query_volume and daily_active_users are aggregated daily for the whole organization and accept neither.
Requesting
bucket_width=1h for a daily dataset, or user_email for an organization-only dataset, returns 400 rather than an empty series. For per-member query volume, use the v2 endpoint.
Response
categorieslists the breakdown axes the dataset surfaces, in canonical render order — see Datasets. Most datasets carry one axis,credit_usagecarries two,query_volumecarries five, anddaily_active_userscarries none (categoriesis[]and each bucket’sby_categoriesis{}).datacontains every bucket in the page’s window, in chronological order. Buckets without data carrycount: 0and an empty list under each axis inby_categories.by_categoriesmaps each axis label to its breakdown for the bucket. Categories within an axis are the dataset’s dimension values — connector names forconnectors, artifact types forartifacts, duration bands fortask_durations,paid/promoforcredit_usage’sCredit Source, model names forcredit_usage’sModel, and the titles your members gave the items forspaces/skills/workflows.- For
query_volume,Featuresplits every query intoSearchorComputer, andModel/Model Familyname the model that answered it (Modelis the exact selection,Model Familythe coarser grouping).ProjectandCometare overlapping subsets, not partitions — a query run in a project is also aSearchorComputerquery — so those axes do not sum tocount. - For
credit_usage,countcan exceed the sum of any single breakdown — usage without a category attribution counts toward the total but not the breakdown.
Time Windows and Buckets
The API serves complete UTC grid buckets only:start_timesnaps down to the start of its bucket, so the first bucket can include usage from before your requested start.end_timeis exclusive and is capped at the current time, then snapped down — the in-progress bucket is never returned. Withbucket_width=1d, today’s bucket is not included; use1hfor intraday data.- A valid window that contains no complete buckets returns
200with emptydata.
Data freshness. The analytics store is synced periodically, not in real time. A
count of 0 in a recent bucket can mean the data hasn’t synced yet rather than zero usage. When has_more is false you have reached the current data frontier — poll again later for newer buckets.Pagination
When the window spans more buckets thanlimit, the response sets has_more: true and a next_page cursor. Pass it back as page, keeping every other parameter identical — cursors are strictly validated and a cursor used with different parameters returns 400.
Filtering by Member
Passuser_email to restrict the series to a single member of your organization:
user_email except query_volume and daily_active_users, which are aggregated per organization and reject it with a 400. For per-member query volume, use the v2 endpoint.
The email must belong to a current member of your organization. Any other value — including emails with no Perplexity account — returns the same generic 400:
Per-Member Usage
GET /v2/analytics/computer/usage breaks a dataset down per member instead of as a single org total. It returns daily buckets, each listing one row per member with usage that day, keyed by email. It uses the same API key, error envelope, and limits as v1.
Two datasets support per-member grouping today, at daily granularity:
credit_usage— the member’s credits, with the sameModelandCredit Sourcebreakdown v1 carries.query_volume— the member’s queries, withFeature,ProjectandCometbreakdowns.
group_by is a parameter so more groupings can be added later without a breaking change.
Parameters
Response
- Each
dataentry is one UTC day;resultsholds one row per member with usage that day, in(day, member)order. Days with no usage are omitted rather than returned empty. user_emailidentifies the member.countis the member’s credits or queries for the day, depending ondataset, andby_categoriescarries that dataset’s axes — listed in the response’s top-levelcategories.- Time-window and bucket semantics match v1’s
1dmode — complete UTC days only, and the same freshness caveat applies.
Paginating Members
v2 paginates over member rows, not days — a single page can span several days, and each member’s day counts as one row towardlimit. Page until has_more is false, passing next_page back as page with every other parameter unchanged:
Errors
Errors use a consistent envelope:Limits
- Time windows are limited to 90 days per request (paginate within the window for long ranges).
- Requests are rate-limited per organization — all keys minted by your org share one allowance.