Skip to main content
GET
The Usage API is in beta. Its fields can change without notice. See Versioning.
Read how many requests each API key of your organization made, and how many credits they spent, for each UTC day of a window you pick. Use it to check what your production key spent against your own cost tracking, apart from your staging or test keys. The call is free and read-only: it isn’t billed and doesn’t appear in the usage it reports.

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:
The response has one entry per key and one entry per UTC day in each key’s daily list. This example is shortened to two days:
Example response · shortened to two days

Fields

  • keys lists 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 by total, then by label.
  • key_id is the key’s id, the middle part of its masked form display. label is the name you gave the key, or display when it has none.
  • key_id: null, labelled Console, 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 as Deleted key, with display: null and revoked: true.
  • total is the key’s requests in the window, all products. credits_total is its credits, all products.
  • daily has one entry for every day of the window, oldest first, days without calls included.
Each day splits requests and credits into four products: 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:
  1. Call with from set to the first day of the month and to to the last, such as from=2026-11-01&to=2026-11-30. Days are UTC days.
  2. Find the key by its key_id in keys. Don’t match on label: it’s display text, two keys can share it, and every deleted key is labelled Deleted key. If the key isn’t listed, it had no requests or credits that month.
  3. Read its credits_total and divide by 250 for US dollars.
For a cost tracker that books spend per day, read each key’s 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:
It prints one line per key with its credits and their value in US dollars, such as Production 150 credits = 0.6 USD.

Errors

Retrying a 400 unchanged returns the same error.
  • 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

X-API-Key
string
header
required

API key for authentication. Obtain one from the Keenable dashboard.

Query Parameters

from
string<date>

First UTC day of the window, YYYY-MM-DD, included. Send together with to; the window is at most 92 days. Takes precedence over days.

Example:

"2026-11-01"

to
string<date>

Last UTC day of the window, YYYY-MM-DD, included. Send together with from, on or after it.

Example:

"2026-11-30"

days
integer
default:30

The last this many UTC days, today included. Values outside 1–90 are clamped. Ignored when from and to are sent.

Required range: 1 <= x <= 90

Response

Usage by API key

from
string<date>
required

First UTC day of the window, included.

to
string<date>
required

Last UTC day of the window, included.

days
integer
required

Days in the window.

Required range: x >= 1
keys
object[]
required

Keys with requests or credits in the window, most credits first, then most requests.