# Check an IP address (/guides/ip-lookup)

The IP lookup API tells you how a site sees your connection. Open it through a proxy to confirm the exit country, whether the network looks like a datacenter or a residential ISP, and whether your browser sends consistent headers.

The API needs no API key. Lookups use only datasets bundled with the API; no third-party service is called while answering a request.

## Check your own connection [#check-your-own-connection]

Open [`https://api.runharvester.com/api/v1/ip`](https://api.runharvester.com/api/v1/ip) in a browser, or call it from a script:

```sh
curl -s https://api.runharvester.com/api/v1/ip
```

```json
{
  "ip": "8.8.8.8",
  "version": 4,
  "country": { "code": "US", "name": "United States" },
  "continent": { "code": "NA", "name": "North America" },
  "city": null,
  "location": { "latitude": 37.751, "longitude": -97.822, "timezone": "America/Chicago" },
  "asn": { "number": 15169, "name": "Google LLC", "domain": "google.com" },
  "network": { "type": "datacenter" },
  "reputation": { "listed_as_proxy": false },
  "client": {
    "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36",
    "os": { "name": "Windows", "version": "10" },
    "browser": { "name": "Chrome", "version": "130.0.0.0", "engine": "Blink" },
    "device": { "type": "desktop" },
    "accept_language": "en-US,en;q=0.9"
  },
  "detection": { "verdict": "clean", "signals": [] }
}
```

The address is the one the request arrives from, so a request sent through a proxy reports the proxy's exit IP.

## Check any IP address [#check-any-ip-address]

Put an IPv4 or IPv6 address after the path:

```sh
curl -s https://api.runharvester.com/api/v1/ip/8.8.8.8
curl -s https://api.runharvester.com/api/v1/ip/2a01:4f8::1
```

The response has the same location, network, and reputation fields. It has no `client` or `detection` blocks, because those describe the caller's browser, not the looked-up address. A value that is not an IP address returns `400` with the `VALIDATION_ERROR` code.

## Fields [#fields]

| Field | Meaning |
| --- | --- |
| `country`, `continent` | ISO country code and continent code with English names. |
| `city`, `location` | City, coordinates rounded to four decimals, and the IANA time zone of the address. |
| `asn` | Autonomous system number, owner name, and owner domain. |
| `network.type` | `datacenter` for hosting and published cloud ranges, `residential` for consumer ISPs, `null` when the network cannot be classified. |
| `reputation.listed_as_proxy` | `true` when the address appears in a known proxy list, `null` when that list is temporarily unavailable. |
| `client` | Operating system, browser, rendering engine, and device type parsed from the request's `User-Agent`. |
| `detection` | Header-based signals that a site could use to flag the request. |

A field that no dataset knows is `null`. The response is always sent with `Cache-Control: no-store`.

## Detection signals [#detection-signals]

`detection.verdict` is `clean` when no signal fires and `suspicious` when at least one does. The checks read request headers only, so they cost nothing on the client and take microseconds on the server. They catch common configuration mistakes, not a carefully spoofed browser.

| Signal | What it means |
| --- | --- |
| `headless_user_agent` | The `User-Agent` names a headless browser. |
| `unknown_browser` | No browser could be identified, which is typical for HTTP libraries. |
| `missing_accept_language` | The request has no `Accept-Language` header. |
| `missing_sec_fetch_headers` | `Sec-Fetch-Mode`, `Sec-Fetch-Site`, or `Sec-Fetch-Dest` is missing; modern browsers send all three. |
| `client_hints_missing` | A Chromium `User-Agent` arrived without `Sec-CH-UA`. |
| `client_hints_browser_mismatch` | The Chromium version in `Sec-CH-UA` differs from the `User-Agent`. |
| `client_hints_platform_mismatch` | `Sec-CH-UA-Platform` names a different operating system than the `User-Agent`. |
| `client_hints_mobile_mismatch` | `Sec-CH-UA-Mobile` disagrees with the device type in the `User-Agent`. |
| `language_country_mismatch` | The region of the first `Accept-Language` entry, such as `US` in `en-US`, differs from the IP country. A language without a region is not compared. |

Client Hints checks apply only to Chromium-based browsers, because Firefox and Safari do not send these headers.

## Limits [#limits]

Each path allows 120 requests per minute per caller IP address. Further requests return `429` with a `Retry-After` header.