Get usage
Usage today and over the last 30 days, and the limits of your key.
Returns what the calling key has used today (since 00:00 UTC) and over the last 30 days, its limits, the
credit of its organization and the price list: pricing, in USD per 1,000 requests for each search mode,
similar and live site search, and per 1,000 pages for contents. It spends no tokens.
Response
object"usage"Always
usage.keyobjectThe key making the request.
Show child attributes
idstringThe key’s visible prefix.
namestringThe name given to the key.
limitsobjectThe key’s limits.
Show child attributes
tokens_per_dayintegerDaily model-token quota. Resets at 00:00 UTC.
requests_per_minuteintegerRequests allowed per minute.
requests_per_secondinteger | nullRequests allowed per second, set by the plan.
nullfor internal keys.
todayobjectUsage since 00:00 UTC.
Show child attributes
requestsintegerRequests.
tokensintegerModel tokens.
cost_usdnumberCost in US dollars.
remaining_tokensintegerTokens left today.
last_30_daysobjectUsage over the last 30 days.
Show child attributes
requestsintegerRequests.
tokensintegerModel tokens.
cost_usdnumberCost in US dollars.
creditobject | nullThe credit of the organization behind this key.
nullfor internal keys, which aren’t billed.Show child attributes
balance_usdnumberThe balance available now, in US dollars.
planenum<string>payg(pay as you go) orplan(a monthly credit plan).spent_this_month_usdnumberWhat this key has spent since the 1st of the month (UTC), in US dollars.
monthly_limit_usdnumber | nullThe key’s monthly spending cap, in US dollars: once reached, its requests get a 402
spend_limit_reacheduntil the next month or until you raise it.nullwhen it has none.
pricingobjectShow child attributes
currency"USD"per_1000_requestsobjectShow child attributes
ultranumberfastnumbernormalnumberdeepnumbersimilarnumbersimilar_deepnumbersite_searchnumber
per_1000_pagesobjectShow child attributes
contentsnumbercontents_with_querynumber
per_1000_urls_per_monthobjectShow child attributes
custom_indexnumber
per_1000_chartsobjectShow child attributes
query_addonnumberfrom_datanumber