API reference
Get usage
Your token usage for the current billing period, your plan and your top-up balance.
GET
/odds/v1/usage- Cost
- 0 tokens
- Authentication
- X-API-Key, your own key (not the demo key)
Parameters
This endpoint takes no parameters.
Request
The demo key (Free plan) cannot call this endpoint: it answers 403 plan_required. Set ODDS_API_KEY to your own key first.
Response
200 OK
Fields
period_typeisbilling_cycleon a paid plan (30 days from your billing date;periodis the cycle's start day) orcalendar_monthotherwise (periodis the UTC month).period_start/period_endbound it;resets_atis when the allowance refills.planis the stable plan id (free,starter,core,plus,max) andplan_namewhat to show a person.monthly_allowance,monthly_usedandmonthly_remainingrepeattokens_limit,tokens_usedandtokens_remaining(nulllimit = unlimited).topup_balanceis top-up tokens left, spent only once the allowance is used up.plan_valid_untilis your paid plan's current end date (nullwithout one).allowance_sourcesays where the allowance comes from:plan(your plan's own) orbet337_subscription(50,000 tokens a month included with an active bet337 subscription, which also includes every feature;planstaysfree).costsis the token price of each call type for your key, matching Tokens & pricing.