NEWDirect chain access. 50% cheaper than competitors.

GET /usage

Check API usage

Response

creditsobject

Credit usage

Credits
minuteobject

Per-minute usage

monthobject

Per-month usage

Month Usage
usedinteger
Credits used in the current billing period
limitinteger
Credit limit per month
remaininginteger
Credits remaining in the current billing period
reset_atstring
ISO 8601 timestamp when the billing period resets
billing_period_startstringoptional
ISO 8601 timestamp when the billing period started, or null if using calendar month billing
api_callsobject

API call counts (informational)

API Calls
minuteobject

API calls made in the current minute

monthobject

API calls made in the current billing period

subscription_planstring

Current 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"
}