Skip to main content
GET
TypeScript
Billing is in beta. Its fields can change without notice. See Versioning.
Read what each call costs and, with an API key, how much your organization has left and has spent this month. The call is read-only and free, and it takes no parameters.

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, the get_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: quantity and cost for search, search.extra_result and fetch. Other charged products count toward usage.cost but have no line item, so the line items can add up to less than usage.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.
Every amount is a 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 carries Cache-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

  • Balance and usage explains the free allowance, the prepaid balance and usage on each response.
  • Pricing lists the standard price of each SKU.

Authorizations

X-API-Key
string
header
required

Your API key, such as keen_.... Create one in the Keenable console. If you send both this header and Authorization, the API uses this one.

Response

Prices and, with an API key, your organization's balance and usage

object
enum<string>
required
Available options:
billing
prices
object[]
required

Without an API key, the public list prices. With one, your organization's prices; a SKU without a price on your plan is left out.

account
object | null
required

null without an API key.