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.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
billable_units | null | If true, return results as billable units. | |
month | null | 2-digit month. | |
year | null | 4-digit year. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Host | string | ||
Accept | string |