Estatísticas da página de status

GET https://uptime4.com/api/statistics/{status_page_id}
Parâmetros Detalhes Descrição
start_date Obrigatório String Data de início no formato Ymd.
end_date Obrigatório String Data de término no formato Ymd.
type Opcional String Valores permitidos: overview, referrer_host, referrer_path, continent_code, country_code, city_name, os_name, browser_name, device_type, browser_language, utm_source, utm_medium, utm_campaign
country_code Opcional String Available when: type = city_name
utm_source Opcional String Available when: type = utm_medium, utm_campaign
utm_medium Opcional String Available when: type = utm_campaign
referrer_host Opcional String Available when: type = referrer_path
curl --request GET \
--url 'https://uptime4.com/api/statistics/{status_page_id}?start_date=2020-01-01&end_date=2021-01-01' \
--header 'Authorization: Bearer {api_key}' \
{ "data": [ { "pageviews": 20, "visitors": 5, "formatted_date": "2021-01" }, { "pageviews": 35, "visitors": 10, "formatted_date": "2021-02" }, { "pageviews": 50, "visitors": 25, "formatted_date": "2021-03" } ] }