API reference
Get billing
Read what each call costs with GET /v1/billing and, with an API key, your organization’s balance and this month’s usage. Free, read-only, key optional.
GET
TypeScript
Billing is in beta. Its fields can change without notice. See Versioning.
When to use it
Call it before a large job to check that the balance covers it, or let an agent check its own budget. Over MCP, theget_billing tool returns the same object.
Without a key, you get the public list prices and account: null. Keyless calls are limited to 60 requests per minute per IP address, separate from the search and fetch rate limits.
search.extra_result counts each result past the first 10 in one search. It’s listed at 0 because results past 10 aren’t charged: a search costs the same whether it returns 1 result or 50.
With a key, prices lists your organization’s own prices. Each one adds list_unit_price and source: list when you pay the list price, contract when your organization has its own. A SKU without a price on your plan is left out. account adds:
balance.available: what you can still spend, your unused free allowance plus your purchased balance. It’s negative only if your organization may go into debt and has.balance.purchased: the part you bought. It’s spent after the free allowance.usage.since: when the current monthly period started, the day your free allowance last renewed.usage.cost: everything charged since then, the same spend your balance subtracts.usage.line_items:quantityandcostforsearch,search.extra_resultandfetch. Other charged products count towardusage.costbut have no line item, so the line items can add up to less thanusage.cost.billing_url: the console page where a person can top up.as_of: when the values were read. Usage can lag recent calls by about a minute.
Money object: amount is a number in US dollars, with up to nine decimal places, and currency is usd. Prices under a cent keep every digit, such as 0.0005.
Caching
Without a key, the response carriesCache-Control: public, max-age=300, so you can cache the list prices for 5 minutes. With a key, it carries Cache-Control: private, no-cache. Both carry Vary: Authorization, X-API-Key, so a shared cache never serves the public prices in answer to a call with a key.
Errors
A call with a key that isn’t accepted never falls back to the public view.SDK and MCP
Related pages
- Balance and usage explains the free allowance, the prepaid balance and
usageon each response. - Pricing lists the standard price of each SKU.
Authorizations
Response
Prices and, with an API key, your organization's balance and usage