API reference
Usage API: requests and credits per key
Read requests and credits for each API key of your organization, per UTC day, with GET /v1/usage. Reconcile each key’s spend. Free and read-only.
GET
The Usage API is in beta. Its fields can change without notice. See Versioning.
What it answers
The call answers for the whole organization of the key you send, all of its keys included. Any API key of the organization works, and so does a signed-in session’s bearer token. Every member sees the same figures on the console’s Usage page. It shares your organization’s fixed limit of 20 requests per second for calls outside search, fetch and Time Machine. See Rate limits.Pick a window
Send
from and to together. They take precedence over days, and the window can be at most 92 days with both dates included, so any calendar quarter fits. days applies only when you send neither from nor to. The response always gives the window it used in from, to and days.
Example
This call reads November 2026 for every key of your organization:daily list. This example is shortened to two days:
Example response · shortened to two days
Fields
keyslists only the keys with requests or credits in the window, not every key of the organization. A key nobody used in the window is left out.- Keys are sorted by
credits_total, highest first, then bytotal, then bylabel. key_idis the key’s id, the middle part of its masked formdisplay.labelis the name you gave the key, ordisplaywhen it has none.key_id: null, labelledConsole, is calls made without an API key: the console’s playground, and apps you signed in to with OAuth, such as the MCP server at/mcp-oauth.- A revoked key still appears if it was used in the window, with
revoked: true. A key deleted from the organization appears asDeleted key, withdisplay: nullandrevoked: true. totalis the key’s requests in the window, all products.credits_totalis its credits, all products.dailyhas one entry for every day of the window, oldest first, days without calls included.
So a day can show
select credits with 0 select requests. An operation your organization is measured on but not charged for shows its requests with 0 credits. Which operations count as charged follows your organization’s current plan: if your plan started charging for an operation partway through the window, the earlier days show credits for it too.
Credits and US dollars
1 credit is $0.004 for every organization, so divide credits by 250 to get US dollars. At standard prices, a search or a fetched page costs 1 credit. If your organization has its own prices, a call spends a different number of credits, and a credit is still worth $0.004. See Balance and usage. Credits are what the calls cost before the free monthly allowance. The allowance belongs to the organization, not to a key, so it isn’t split across keys. In a month your organization stayed within the allowance, every key still shows its credits, though nothing was taken from your prepaid balance.Reconcile a key’s spend
To check one key’s spend for a calendar month:- Call with
fromset to the first day of the month andtoto the last, such asfrom=2026-11-01&to=2026-11-30. Days are UTC days. - Find the key by its
key_idinkeys. Don’t match onlabel: it’s display text, two keys can share it, and every deleted key is labelledDeleted key. If the key isn’t listed, it had no requests or credits that month. - Read its
credits_totaland divide by 250 for US dollars.
daily entries: one row per day, with requests and credits per product.
Credits are JSON numbers with up to 8 decimal places, and most JSON parsers read them as binary floats, which pick up rounding errors when you add them. Parse and add them with a decimal type instead. In Python:
Production 150 credits = 0.6 USD.
Errors
Retrying a
400 unchanged returns the same error.
Related pages
- Balance and usage explains the free allowance, the prepaid balance and the console’s Usage page.
- Billing API returns your prices and your organization’s balance.
Authorizations
Query Parameters
Response
Usage by API key