GET /stats/usage_by_month
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.
Servers
- https://api.fastly.com
Request headers
Name | Type | Required | Description |
---|---|---|---|
host |
String | No |
Query parameters
Name | Type | Required | Description |
---|---|---|---|
month |
String | No |
2-digit month. |
year |
String | No |
4-digit year. |
billable_units |
String | No |
If true, return results as billable units. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.