- **1 credit = $0.001** (1,000 credits = $1.00).
- Subscription plan credits refresh each billing cycle; directly purchased top-up credits expire after 12 months.
Check Team Credit Balance
Query your team’s current credit usage, limit, and remaining balance withGET /api/team/credit-info (requires the usage.read scope on scoped API keys).
Response
Inspect Per-Job Usage
Check credits, page counts, agent steps, and token totals for any completed Web API or Agent job withGET /api/usage/job/{jobId} (requires usage.read).
cURL
Response
Cost Optimization Best Practices
Always stop sessions and sandboxes in try/finally
Always stop sessions and sandboxes in try/finally
Browser sessions are billed per millisecond while active (no minimum duration), and sandboxes are billed while running. Always call
sessions.stop(id) or sandboxes.stop(id) in a finally block instead of waiting for timeoutMinutes to expire.Use caching on Web API calls
Use caching on Web API calls
Set
cache.maxAgeSeconds on Fetch, Batch Fetch, and Crawl (or maxAgeSeconds on Search) when reading pages that do not change every second.Enable proxies, ultra stealth, and JSON extraction only when needed
Enable proxies, ultra stealth, and JSON extraction only when needed
A standard Fetch costs 1 credit/page; enabling a proxy adds +9 credits/page and JSON extraction adds +5 credits/page. Start with
stealth: "auto" (or "none" on open sites) and enable stealth: "ultra" or browser.location only on protected or geo-sensitive targets.Right-size browser memory and sandbox resources
Right-size browser memory and sandbox resources
Keep
browserMemorySize at small (4 GiB, 1× rate) unless heavy tabs require medium (2×) or large (4×). For sandboxes, match vCPU and memory tiers to the actual workload and stop idle instances promptly.Monitor balances
Monitor balances
Poll
GET /api/team/credit-info in monitoring alerts before hitting zero remaining credits.