cURL
curl --request GET \ --url https://api.videodb.io/billing/usage \ --header 'x-access-token: <api-key>'
{ "success": true, "data": { "credit_balance": 100.5, "usage_this_month": 25.75, "breakdown": {} } }
Retrieve detailed usage statistics and credit consumption
import videodb conn = videodb.connect(api_key="your_api_key") # Get usage statistics usage_data = conn.check_usage() print(f"Total Credits Used: {usage_data.get('total_credits_used')}") print(f"Monthly Credit Limit: {usage_data.get('monthly_limit')}") print(f"Credits Remaining: {usage_data.get('credits_remaining')}")
API key for authentication (sk-xxx format)
Billing usage data
true
Show child attributes