Get historical origin data for a service

GET {{fastly_url}}/metrics/origins/services/{{service_id}}?cursor&datacenter&downsample&end&group_by&host&limit&metric&region&start

Fetches historical origin metrics for a given Fastly service, optionally filtering and grouping the results by origin host, region, or POP.

Authorization: Requires API token.

Request Params

KeyDatatypeRequiredDescription
cursornullCursor value from the next_cursor field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
datacenternullLimit query to one or more specific POPs. Values should be comma-separated.
downsamplenullDuration of sample windows.
endnullA valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided downsample value.
group_bynullDimensions to return in the query. Multiple dimensions may be separated by commas.
For example, group_by=host will return one timeseries for every origin host, as a total across all POPs.
hostnullLimit query to one or more specific origin hosts. Values should be comma-separated.
limitnullNumber of results per page. The maximum is 200.
metricnullThe metrics to retrieve. Multiple values should be comma-separated.
regionnullLimit query to one or more specific geographic regions. Values should be comma-separated.
startnullA valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided downsample value.

HEADERS

KeyDatatypeRequiredDescription
Hoststring
Acceptstring