Get usage statistics

GET {{fastly_url}}/stats/usage?from&to

Returns usage information aggregated across all Fastly services and grouped by region. To aggregate across all Fastly services by time period, see /stats/aggregate.

Authorization: Requires API token.

Request Params

KeyDatatypeRequiredDescription
fromnullTimestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the Chronic Ruby library, such as 'yesterday', or 'two weeks ago'. Default varies based on the value of by.
tonullTimestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as from.

HEADERS

KeyDatatypeRequiredDescription
Hoststring
Acceptstring