---
title: "GET /v1/analytics/hosts"
method: GET
path: "/v1/analytics/hosts"
tags: ["Analytics"]
---

# GET /v1/analytics/hosts

`GET /v1/analytics/hosts`

## Request

- Base URL: `https://api.redirectboss.com`
- URL: `https://api.redirectboss.com/v1/analytics/hosts`
- Auth: API key in header `X-Api-Key`

Per-host analytics rollup: redirect count, hits, and average response time. Defaults to month-to-date when startDate/endDate are omitted.

## Query parameters

- `startDate` string
- `endDate` string

## Response `200`

Default Response

- object
  - `data` object[], required: Per-host rollup, ordered by total hits descending
    - `hostId` string, uuid, required: Unique host identifier
    - `hostname` string, required: The domain name (e.g. "example.com")
    - `redirectCount` integer, required: Total redirects configured on this host
    - `activeRedirectCount` integer, required: Redirects on this host that are not archived
    - `totalHits` integer, required: Total redirect hits served for this host in the date range
    - `avgResponseTimeMs` integer, required: Average response time in milliseconds across all redirects on this host. Null when there were no hits.
  - `meta` object, required
    - `requestId` string, required: Unique identifier for this request
    - `status` 'completed', required: Operation status
    - `dateRange` object, required: Resolved UTC date range for the response
      - `startDate` string, required: UTC calendar date in YYYY-MM-DD format. Defaults to the first of the current month when omitted.
      - `endDate` string, required: UTC calendar date in YYYY-MM-DD format. Defaults to today when omitted.

## Other responses

- `400`: Default Response
- `401`: Default Response
- `429`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/redirectboss/apis/redirectboss-api.md) · [All operations](https://skmtc.dev/redirectboss/apis/redirectboss-api/llms.txt) · [OpenAPI document](https://skmtc.dev/redirectboss/apis/redirectboss-api/revisions/0159ad2b68fa?raw)
