Get usage statistics per service
GET {{fastly_url}}/stats/usage_by_service?from&to
Returns usage information aggregated by service and grouped by service and region. For service stats by time period, see /stats and /stats/field/:field.
Authorization: Requires API token.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
from | null | 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. | |
to | null | Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as from. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Host | string | ||
Accept | string |