Get month-to-date usage statistics

GET {{fastly_url}}/stats/usage_by_month?billable_units&month&year

Returns month-to-date usage details for a given month and year. Usage details are aggregated by service and across all Fastly services, and then grouped by region. This endpoint does not use the from or to fields for selecting the date for which data is requested. Instead, it uses month and year integer fields. Both fields are optional and default to the current month and year respectively. When set, an optional billable_units field will convert bandwidth to GB and divide requests by 10,000.

Authorization: Requires API token, Requires API token.

Request Params

KeyDatatypeRequiredDescription
billable_unitsnullIf true, return results as billable units.
monthnull2-digit month.
yearnull4-digit year.

HEADERS

KeyDatatypeRequiredDescription
Hoststring
Acceptstring