# Checker IP addresses

> GET /v1/ips: the IP addresses upfour checks your sites from, as plain text or JSON, with caching rules and the publication guarantee.

Source: https://upfour.io/docs/api/checker-ips

If a firewall or WAF in front of your service blocks unknown clients, allow the addresses on this list. `GET /v1/ips` needs no key and always returns the current list.

## Formats

The default is plain text with one IPv4 address per line, for active and reserve addresses, sorted by region and then by address. There are no comments, so a script can feed the output straight into a firewall.

```bash
curl https://app.upfour.io/v1/ips
```

JSON adds region, status and dates, and also lists addresses removed in the last 30 days. Ask for it with the `Accept` header or with `?format=json`.

```bash
curl -H 'Accept: application/json' https://app.upfour.io/v1/ips
curl 'https://app.upfour.io/v1/ips?format=json'
```

```json
{
  "data": [
    { "ip": "203.0.113.10", "region": "eu", "status": "active", "listed_at": "2026-10-01T09:00:00Z", "removed_at": null, "provider": "upcloud", "zone": "de-fra1" },
    { "ip": "203.0.113.11", "region": "eu", "status": "reserve", "listed_at": "2026-11-05T12:00:00Z", "removed_at": null, "provider": "upcloud", "zone": "de-fra1" },
    { "ip": "203.0.113.9", "region": "eu", "status": "removed", "listed_at": "2026-08-01T09:00:00Z", "removed_at": "2026-11-02T08:30:00Z", "provider": "upcloud", "zone": "de-fra1" }
  ]
}
```

This response is not wrapped in the usual pagination object and is not paged: the whole list is returned.

## Fields

| Field | Type | Meaning |
| --- | --- | --- |
| `ip` | string | The IPv4 address, canonical form. |
| `region` | string | The check location the address belongs to, for example eu. |
| `status` | string | active, reserve or removed. See below. |
| `listed_at` | string | RFC 3339 time the address was added to the list. |
| `removed_at` | string or null | RFC 3339 time the address was removed. null unless status is removed. |
| `provider` | string | The hosting provider of the checker, empty if not known. |
| `zone` | string | The provider zone, empty if not known. |

## Status

| Status | Meaning |
| --- | --- |
| `active` | A checker sends checks from this address. Allow it. |
| `reserve` | Published ahead of use so a new checker under load can start at once. Allow it; no checks come from it yet. |
| `removed` | No longer used. Kept in the JSON for 30 days so you can see what changed, then dropped. Not in the text list. |

## What upfour guarantees

- An address is on the list before its first check. A checker only receives jobs once its address has been listed for at least 90 seconds.
- There is no fixed lead time. A new address can appear and start checking within minutes; refresh the list at least every few minutes and do not rely on a notice period.
- Reserve addresses are published ahead of use. Allowing them costs nothing and means a new checker is never blocked.
- A removed address stays in the JSON for 30 days with its removal date.

## Caching

The response carries `Cache-Control: public, max-age=60` and a strong `ETag`. Send it back as `If-None-Match` and an unchanged list answers `304` without a body. `Vary: Accept` is set because text and JSON share one URL. Polling once a minute is enough.

The endpoint needs no authentication, answers `HEAD`, and allows cross-origin reads from any website (`Access-Control-Allow-Origin: *`).

## Errors

If upfour cannot read the list, the answer is `503` with a `Retry-After` header and an error object, never an empty list. Treat any status other than `200` and `304` as "keep the current allowlist". See [Errors](https://upfour.io/docs/api/errors.md) for the object.

## Automate your allowlist

Fetch the list, refuse to apply anything that is not a 200 with at least one address, and only then replace the rules.

```bash
#!/bin/sh
set -eu
tmp=$(mktemp)
code=$(curl -s -o "$tmp" -w '%{http_code}' https://app.upfour.io/v1/ips)
[ "$code" = "200" ] && [ -s "$tmp" ] || { echo "keeping current allowlist (HTTP $code)" >&2; exit 1; }
grep -Eq '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$' "$tmp" || exit 1
# replace your firewall set with the lines of "$tmp"

```

The older `https://upfour.io/ips.txt` keeps working without following a redirect. Point new automation at `https://app.upfour.io/v1/ips`.
