Get the total number of active hosts

GET {{baseUrl}}/api/v1/hosts/totals?from=-62147425

This endpoint returns the total number of active and up hosts in your Datadog account. Active means the host has reported in the past hour, and up means it has reported in the past two hours.

Request Params

KeyDatatypeRequiredDescription
fromnumberNumber of seconds from which you want to get total number of active hosts.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"total_active":70097963,"total_up":11529364}