Usage

Get usage

Requests and words by day, endpoint or API key for the key's mode, plus what is left of this period's allowance and any pay-as-you-go use. Needs the usage scope.

GET

Billing. Free. Credits & pricing

Query parameters

startdate

First day, inclusive, YYYY-MM-DD (UTC). Defaults to the first of this month.

enddate

Last day, inclusive, YYYY-MM-DD (UTC). Defaults to today.

group_byenumdefault: day

Bucket for the series.

Available options:dayendpointkey
key_idstring

Only count requests made with this API key.

Response

200 · application/json
object"list"

Always "list".

dataobject[]

One bucket per day, endpoint or key.

balanceobject

Words left this period and pay-as-you-go use.

Errors