GET /stats/usage
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.
Servers
- https://api.fastly.com
Request headers
Name | Type | Required | Description |
---|---|---|---|
host |
String | No |
Query parameters
Name | Type | Required | Description |
---|---|---|---|
to |
String | No |
Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as from. |
from |
String | No |
Timestamp 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. |
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.