Get historical domain data for a service

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

Fetches historical domain metrics for a given Fastly service, optionally filtering and grouping the results by domain, 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.
domainnullLimit query to one or more specific domains. 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=domain will return one timeseries for every domain, as a total across all datacenters (POPs).
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