---
title: "IP Intelligence Integration: Server API Guide | Emvero"
description: "Connect POST /v1/ip-checks from your server. Pass a trusted IPv4 or IPv6 address, read country and public-list facts, and handle partial responses and safe retries."
url: https://emvero.io/ip-intelligence/integration/
language: en
updated: 2026-11-18
---

# Connect IP Intelligence from your server

Use a secret API key and the visitor IP observed by your server. Send one request, read the country, network and list facts, and apply your application’s rules.

No browser script, visit token, page key or separate product activation is required.

Start for free

View documentation

[Run the Node.js example](https://docs.emvero.io/using/starter/) Start locally with prepared responses. The interface and full guide are in English.

[Install the Emvero agent skill](https://docs.emvero.io/using/agent-skill/) For Codex CLI and Claude Code. The skill and installation guide are in English.

## Get a key and a trustworthy visitor IP

Open [API keys](https://emvero.io/account/api-keys/) and create a key or use one you already keep on your server. Obtain the visitor IP from the request using your framework’s trusted proxy configuration. Hosted forms must forward the actual visitor IP through a trustworthy integration.

Send the address as text without a port, CIDR prefix or IPv6 zone. The server normalises IPv4 mapped inside IPv6. Input errors are refused before a credit reserve or list lookup.

## Send one JSON object

POST /v1/ip-checks

```
curl https://api.emvero.tech/v1/ip-checks \
  -H "Authorization: Bearer $EMVERO_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: ip-check-example-001' \
  -d '{"ip":"203.0.113.7"}'
```

Node.js

```
async function checkIp(ip, idempotencyKey) {
  const response = await fetch('https://api.emvero.tech/v1/ip-checks', {
    method: 'POST',
    headers: {
      Authorization: `Bearer ${process.env.EMVERO_API_KEY}`,
      'Content-Type': 'application/json',
      'Idempotency-Key': idempotencyKey,
    },
    body: JSON.stringify({ ip }),
  });
  return { response, body: await response.json() };
}
```

The Node.js helper accepts the trusted IP and an idempotency key from your application. It returns the HTTP response and parsed body so you can inspect status and credit headers before applying rules. Retry a lost response with the same IP and key; the helper does not retry automatically.

The address above is for documentation. Replace it with the visitor IP obtained by your server. Send exactly one object with the field `ip`; omit email, visit tokens and browser details. Keep each idempotency key for one logical request.

## Read the result and the credit headers

`status` is `complete` or `partial`. `location.country` describes the IP, while `network.country` describes network registration. Country and network fields can be `null`. `meta.networks_version` identifies the country and network data used.

Each of the eight `lists` entries carries a status and available source dates. Match your own rules against the facts or the five stable codes: `fp_network_vpn`, `fp_network_public_proxy`, `fp_network_tor`, `fp_network_private_relay` and `fp_network_hosting`. Crawler ranges do not add warning codes.

`X-Credits-Charged` reports this attempt’s charge, `X-Credits-Operation-ID` identifies the financial operation, and `X-Credits-Remaining` reports the balance when available. A replay has `X-Idempotent-Replay: true` and charges zero for the repeated attempt.

For IPv6, `unsupported_address_family` in the five IPv4-only lists keeps the response complete and billable. A missing, failed or stale source makes it partial. Keep unavailable observations distinct from absence in a list.

## Handle refusals and uncertain accounting

| HTTP | What to do |
| --- | --- |
| 400 | Correct the IP, body or idempotency key. |
| 401 | Check the server credential. |
| 402 | The maximum reserve was unavailable; no list lookup ran. Review the shared balance. |
| 409 | For request_in_progress, wait for Retry-After and retry the same operation. For idempotency_conflict, check which request owns the key. |
| 413 | Reduce the request to the permitted body size. |
| 429 | Respect Retry-After. |
| 503 | Handle the returned product or accounting error. Preserve the operation ID if accounting is uncertain. |

When a response is lost, retry with the original key and identical IP. The replay window is 30 minutes; it includes saved partial responses. A new lookup after a partial response is a new operation with a new key and can incur a charge.

If the API returns `accounting_uncertain`, check `GET /v1/credit-operations/{id}` using the supplied operation ID. This establishes the financial state and does not return IP observations. Do not create a fresh paid attempt merely because the original response was lost.

## Review the observations before applying rules

Start with [prepared responses](https://emvero.io/ip-intelligence/#ip-examples-title) and a request from your application. Define how your application handles `listed`, `not_listed` and missing information. A complete response establishes data coverage; a network label alone does not establish abuse.

For the complete schema and field descriptions, open the [IP Intelligence documentation](https://docs.emvero.io/using/ip-intelligence/). The [product overview](https://emvero.io/ip-intelligence/) explains coverage, costs and the browser observations available through Sharp Signals.

## Frequently asked

**Which IP addresses can I send?**

Send one public IPv4 or IPv6 address without a zone identifier. Private, loopback, multicast and shared address space are refused. IPv4 mapped inside IPv6 is treated as IPv4.

**Can I use my existing API key?**

Yes. IP Intelligence uses ordinary Emvero secret API keys and the shared credit balance. Keep the key on your server; never embed it in page JavaScript.

**Where should I get the visitor IP behind a proxy?**

Use the trusted proxy configuration of your application or CDN. A client-supplied forwarding header is not a trustworthy address unless your infrastructure validates the chain.

**Is a partial response an API error?**

No. HTTP 200 with status partial returns the available evidence and costs zero credits. Handle unavailable lists explicitly. Authentication, invalid input, exhausted credit reserves and rate limits use HTTP errors.

**Can I retrieve the result later by its ID?**

There is no GET route for IP-check results. The same Idempotency-Key and request within 30 minutes replay the saved answer. GET /v1/credit-operations/{id} returns the financial state only.

## Make your first server request

Open IP Intelligence in your account for API-key access, prepared examples and your available check estimate.

Start for free

View documentation
