Usage Summary Endpoint
Read the current plan, billing period, available credits, and per-operation credit usage.
Getting Started
Send your API key as a bearer token. Start with the smallest request below.
Get Current Usage
Send an API key and read the current account summary.
curl -X GET "https://api.datablue.dev/v1/usage/summary" \ -H "Authorization: Bearer YOUR_API_KEY"
{
"success": true,
"as_of": "2026-08-25T12:00:00Z",
"plan": {
"id": "ef7ea042-2366-4f52-9298-b51dd03524c0",
"name": "starter",
"display_name": "Starter",
"access_status": "active",
"access_source": "razorpay",
"concurrency_limit": 5,
"features": {
"scrape": true,
"crawl": true
}
},
"subscription": {
"status": "active",
"billing_cycle": "monthly",
"cancel_at_period_end": false,
"pending_plan": null
},
"billing_period": {
"id": "0fae1ec8-726e-494b-8f7f-60b94666ef88",
"status": "active",
"starts_at": "2026-08-01T00:00:00Z",
"ends_at": "2026-09-01T00:00:00Z",
"timezone": "Asia/Kolkata"
},
"credits": {
"included": 1000,
"used": 125,
"remaining": 875,
"payg_balance": 50,
"payg_used_this_period": 25,
"total_used_this_period": 150,
"total_available": 925,
"unlimited": false
},
"usage": {
"by_operation": {
"scrape": {
"credits_used": 100
},
"data_api": {
"credits_used": 50
}
}
}
}Response
Unlimited plans return null for finite included, remaining, and total-available values. If no active billing period exists, period-scoped measurements are also null rather than zero.
Error Handling
Handle 401 for missing or invalid authentication. A temporary 503 means the active billing balance could not be measured safely; retry later without substituting zero values.
