Usage
Monitor subscription quota, one-time pack, and credits in real time.
The Usage endpoint returns your remaining subscription quota, one-time pack, credits, rate limits, and API key details. It does not consume any credits.
Note: the subscription object reports the combined subscription quota plus remaining packs, not the subscription portion alone. The dashboard API usage panel shows the three balances separately.
This endpoint is free. It never consumes any credits.
Request
curl "https://api.browsersolver.com/v1/usage" \
-H "x-api-key: YOUR_API_KEY"The three balances
Every call draws from up to three balances, always in this order. The response reports each one separately so you can tell where your credits come from.
- Subscription quota (
subscription): calls included in the plan. Resets each billing period (period,renewal_date). - One-time pack (
packs): one-time API packs, never reset, consumed in purchase order after subscription quota.packs.currentis the pack being drawn from now. On workspaces without a monthly plan,subscriptionreports the sum of all packs. - Credits (
credits): used only after subscription quota and the one-time pack are exhausted. Billed separately.
remaining is the total still available across all three balances, and total_used the total consumed. When remaining reaches 0, calls return 402 until a pack or credits are added.
Response Fields
| Field | Type | Description |
|---|---|---|
remaining | integer | "unlimited" | Total still available across all three balances (subscription quota + one-time pack + credits). "unlimited" when one of them is unlimited |
total_used | integer | Total consumed across all three balances (pack usage persists across billing periods) |
renewal_date | string | null | Date when the subscription renews (ISO 8601), or null without a billing period |
period.start | string | Start of the current billing period (period is null without one) |
period.end | string | End of the current billing period |
subscription.used | integer | API calls used against combined subscription quota + packs |
subscription.total | integer | Combined cap (subscription quota + packs) |
subscription.remaining | integer | "unlimited" | Remaining combined subscription quota + packs, or "unlimited" |
subscription.percent_used | number | Percentage of combined subscription quota + packs consumed (two decimals) |
credits.given | integer | Credits granted (separate ledger) |
credits.consumed | integer | Credits consumed |
credits.remaining | integer | Credits remaining |
credits.percent_used | number | Percentage of credits consumed (two decimals) |
rate_limit.per_minute | integer | "unlimited" | null | Requests per minute allowed for each API key. "unlimited" when the plan has no cap, null when the plan sets no limit |
rate_limit.per_second | integer | "unlimited" | null | Requests per second allowed for each API key. "unlimited" when the plan has no cap, null when the plan sets no limit |
account.name | string | Name of the workspace |
account.slug | string | Workspace identifier slug |
api_key.alias | string | Friendly name of the API key |
api_key.active | boolean | Whether the key is currently active |
api_key.category | string | null | Key category (e.g. development, production), or null |
api_key.expires | string | null | Expiry date of the key (null = never expires) |
api_key.quotas | object | Custom per-key quotas: total, daily, weekly, monthly (null = no cap) |
packs | object | null | One-time API packs, pack by pack (null when the workspace has none). For pack-only workspaces, subscription.total is the sum of all packs |
packs.count | integer | Number of active packs |
packs.exhausted_count | integer | Number of packs fully consumed |
packs.all_exhausted | boolean | true when every pack is fully consumed |
packs.total | integer | Credits granted by all active packs |
packs.used | integer | Credits consumed across all packs |
packs.remaining | integer | Credits left across all packs |
packs.percent_used | number | Percentage of all packs consumed (two decimals) |
packs.current_index | integer | Position of packs.current in packs.items, starting at 1 |
packs.current | object | The pack currently being consumed (packs are used in purchase order). When every pack is exhausted, the most recent pack |
packs.items[] | object[] | Every active pack: id, title, purchased_at, total, used, remaining, percent_used, exhausted |
Example Response
{
"remaining": 4350,
"total_used": 16150,
"renewal_date": "2026-04-25",
"period": {
"start": "2026-03-25",
"end": "2026-04-25"
},
"subscription": {
"used": 16150,
"total": 20000,
"remaining": 3850,
"percent_used": 80.75
},
"packs": {
"count": 2,
"exhausted_count": 1,
"all_exhausted": false,
"total": 10000,
"used": 6150,
"remaining": 3850,
"percent_used": 61.5,
"current": {
"id": "cm…",
"title": "One-time pack",
"purchased_at": "2026-02-07",
"total": 5000,
"used": 1150,
"remaining": 3850,
"percent_used": 23,
"exhausted": false
},
"current_index": 2,
"items": [
{ "id": "cm…", "title": "One-time pack", "purchased_at": "2025-11-10", "total": 5000, "used": 5000, "remaining": 0, "percent_used": 100, "exhausted": true },
{ "id": "cm…", "title": "One-time pack", "purchased_at": "2026-02-07", "total": 5000, "used": 1150, "remaining": 3850, "percent_used": 23, "exhausted": false }
]
},
"credits": {
"given": 500,
"consumed": 0,
"remaining": 500,
"percent_used": 0
},
"rate_limit": {
"per_minute": 600,
"per_second": 10
},
"account": {
"name": "Acme Corp",
"slug": "acme-corp"
},
"api_key": {
"alias": "production",
"active": true,
"category": "production",
"expires": null,
"quotas": {
"total": null,
"daily": null,
"weekly": null,
"monthly": null
}
}
}See also: Stats for platform infrastructure health over the last hour. That endpoint is not your workspace usage.