Get stats for a service

GET {{fastly_url}}/service/{{service_id}}/stats/summary?end_time&month&start_time&year

Get the stats from a service for a block of time. This lists all stats by PoP location, starting with AMS. This call requires parameters to select block of time to query. Use either a timestamp range (using starttime and endtime) or a specified month/year combo (using month and year).

Authorization: Requires API token.

Request Params

KeyDatatypeRequiredDescription
end_timenullEpoch timestamp. Limits the results returned.
monthnull2-digit month.
start_timenullEpoch timestamp. Limits the results returned.
yearnull4-digit year.

HEADERS

KeyDatatypeRequiredDescription
Hoststring
Acceptstring