Get Project Usage
Retrieve credit usage, subscription details, and per-service request counts for a project within the current billing cycle.
Overview
Returns a complete picture of a project’s credit consumption for the current billing cycle, including credits remaining, subscription plan details, and a breakdown of requests by service type (RPC, DAS, gRPC, WebSocket, etc.).Request Parameters
Response Fields
YYYY-MM-DD format.YYYY-MM-DD format."business", "professional").creditsUsed after rounding.laserstreamGrpc, laserstreamWebsocket) do not appear here — see dataTransfer. Fields: rpc, enhancedApi, walletApi, das, webhooks, preConfirmations, archival, photon, other.credits but never in requests. Fields: laserstreamGrpc, laserstreamWebsocket.Request Parameters
Authorizations
API key passed as a query parameter.
Path Parameters
The project ID to retrieve usage for. Must match the project associated with the API key.
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Response
Project usage retrieved successfully.
Number of credits remaining in the current billing cycle. Calculated as creditsLimit - regularCreditsUsed, floored at 0.
487500
Total credits consumed in the current billing cycle, including both regular and prepaid credits.
12500
Number of prepaid credits remaining.
50000
Number of prepaid credits consumed in the current billing cycle.
0
Details about the project's subscription plan and current billing cycle.
Per-product credit consumption for the current billing cycle, in whole credits.
Covers every product. Values are accumulated raw and rounded once at the end to
match billing, so per-product credits may not sum exactly to creditsUsed after
rounding.
Request counts for the current billing cycle, for request-metered products only.
The bandwidth-metered LaserStream products (laserstreamGrpc, laserstreamWebsocket)
do not appear here — see dataTransfer.
Bytes transferred for the current billing cycle, for the bandwidth-metered
LaserStream products only. These products are billed by data transferred, not
request count, so they appear here and in credits but never in requests.