---
title: "Get the total number of active hosts"
method: GET
path: "/api/v1/hosts/totals"
tags: ["Hosts"]
---

# Get the total number of active hosts

`GET /api/v1/hosts/totals`

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.

## Query parameters

- `from` integer

## Response `200`

OK

- HostTotals — Total number of host currently monitored by Datadog.
  - `total_active` integer — Total number of active host (UP and ???) reporting to Datadog.
  - `total_up` integer — Number of host that are UP and reporting to Datadog.

## Other responses

- `400` — Invalid Parameter Error
- `403` — Forbidden
- `429` — Too many requests

---

[API](https://skmtc.net/datadog/apis/api-v1.md) · [All operations](https://skmtc.net/datadog/apis/api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v1/revisions/ca5871004d26/schema)
