GET /metrics/domains/services/{service_id}

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

Authorization: Requires API token.

Servers

Path parameters

Name Type Required Description
service_id String Yes

Request headers

Name Type Required Description
host String No

Query parameters

Name Type Required Description
metric String No

The metrics to retrieve. Multiple values should be comma-separated.

datacenter String No

Limit query to one or more specific POPs. Values should be comma-separated.

end String No

A 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.

region String No

Limit query to one or more specific geographic regions. Values should be comma-separated.

group_by String No

Dimensions 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).

limit String No

Number of results per page. The maximum is 200.

domain String No

Limit query to one or more specific domains. Values should be comma-separated.

downsample String No

Duration of sample windows.

cursor String No

Cursor 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.

start String No

A 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.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. 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.
  3. Click Test request to test run your request to the API and see the API's response.