Documentation
¶
Overview ¶
Package perplexity implements the Perplexity usage provider.
Auth: Usage Buttons Helper extension with the user's perplexity.ai browser session. Endpoints (the /rest/billing/credits endpoint, briefly removed in early 2026, is alive again and is the source for the credit-balance tiles; the rest mirror what perplexity.ai/account/usage fetches):
GET /rest/pplx-api/v2/groups — discover org/group ID
GET /rest/pplx-api/v2/groups/{groupId} — balance + plan tier
GET /rest/pplx-api/v2/groups/{groupId}/usage-analytics — meter cost summaries
GET /rest/rate-limit/all — per-tier query quotas
GET /rest/billing/credits?version=2.18&source=default — plan/purchased/bonus credits + meter usage breakdown
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct{}
Provider fetches Perplexity usage data.
func (Provider) BrandColor ¶
BrandColor returns the accent color used on button faces.
Click to show internal directories.
Click to hide internal directories.