BrowserSolver

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.current is the pack being drawn from now. On workspaces without a monthly plan, subscription reports 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

FieldTypeDescription
remaininginteger | "unlimited"Total still available across all three balances (subscription quota + one-time pack + credits). "unlimited" when one of them is unlimited
total_usedintegerTotal consumed across all three balances (pack usage persists across billing periods)
renewal_datestring | nullDate when the subscription renews (ISO 8601), or null without a billing period
period.startstringStart of the current billing period (period is null without one)
period.endstringEnd of the current billing period
subscription.usedintegerAPI calls used against combined subscription quota + packs
subscription.totalintegerCombined cap (subscription quota + packs)
subscription.remaininginteger | "unlimited"Remaining combined subscription quota + packs, or "unlimited"
subscription.percent_usednumberPercentage of combined subscription quota + packs consumed (two decimals)
credits.givenintegerCredits granted (separate ledger)
credits.consumedintegerCredits consumed
credits.remainingintegerCredits remaining
credits.percent_usednumberPercentage of credits consumed (two decimals)
rate_limit.per_minuteinteger | "unlimited" | nullRequests per minute allowed for each API key. "unlimited" when the plan has no cap, null when the plan sets no limit
rate_limit.per_secondinteger | "unlimited" | nullRequests per second allowed for each API key. "unlimited" when the plan has no cap, null when the plan sets no limit
account.namestringName of the workspace
account.slugstringWorkspace identifier slug
api_key.aliasstringFriendly name of the API key
api_key.activebooleanWhether the key is currently active
api_key.categorystring | nullKey category (e.g. development, production), or null
api_key.expiresstring | nullExpiry date of the key (null = never expires)
api_key.quotasobjectCustom per-key quotas: total, daily, weekly, monthly (null = no cap)
packsobject | nullOne-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.countintegerNumber of active packs
packs.exhausted_countintegerNumber of packs fully consumed
packs.all_exhaustedbooleantrue when every pack is fully consumed
packs.totalintegerCredits granted by all active packs
packs.usedintegerCredits consumed across all packs
packs.remainingintegerCredits left across all packs
packs.percent_usednumberPercentage of all packs consumed (two decimals)
packs.current_indexintegerPosition of packs.current in packs.items, starting at 1
packs.currentobjectThe 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.

On this page