GET /stats
Fetches historical stats for each of your Fastly services and groups the results by service ID.
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. |
region |
String | No |
Limit query to a specific geographic region. One of: usa - North America. europe - Europe. anzac - Australia and New Zealand. asia - Asia. asia_india - India. asia_southkorea - South Korea. africa_std - Africa. southamerica_std - South America. |
by |
String | No |
Duration of sample windows. One of: hour - Group data by hour. minute - Group data by minute. day - Group data by day. |
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.