GET /usage
Check API usage
Response
creditsobjectCredit usage
Credits
minuteobjectPer-minute usage
monthobjectPer-month usage
Month Usage
usedintegerCredits used in the current billing period
limitintegerCredit limit per month
remainingintegerCredits remaining in the current billing period
reset_atstringISO 8601 timestamp when the billing period resets
billing_period_startstringoptionalISO 8601 timestamp when the billing period started, or null if using calendar month billing
api_callsobjectAPI call counts (informational)
API Calls
minuteobjectAPI calls made in the current minute
monthobjectAPI calls made in the current billing period
subscription_planstringCurrent plan
curl "https://api.qoery.com/v0/usage" \ -H "X-API-KEY: your_api_key_here"
const response = await fetch( 'https://api.qoery.com/v0/usage', { headers: { 'X-API-KEY': 'your_api_key_here' } } );
import requests response = requests.get( 'https://api.qoery.com/v0/usage', headers={'X-API-KEY': 'your_api_key_here'} )
{ "credits": { "minute": { "used": 5, "limit": 60, "remaining": 55, "reset_at": "2023-11-30T12:01:00Z" }, "month": { "used": 1250, "limit": 10000, "remaining": 8750, "reset_at": "2023-12-01T00:00:00Z", "billing_period_start": "2023-11-01T00:00:00Z" } }, "api_calls": { "minute": { "used": 3 }, "month": { "used": 450 } }, "subscription_plan": "free" }