IP Intelligence
Send one visitor IP to POST /v1/ip-checks. The response contains the country,
announcing network and eight public-list observations. Use an ordinary Emvero
secret API key and the shared prepaid balance. No page script, visit token,
page key or Sharp Signals activation is required.
Send the IP your server observed
Section titled “Send the IP your server observed”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"}'This is a documentation address. Replace it with the visitor IP from your application’s trusted request chain. If a CDN or reverse proxy forwards the address, use your framework’s verified proxy configuration. A forwarding header supplied directly by an untrusted client is insufficient.
The body contains exactly one JSON object with the field ip. Send a public
IPv4 or IPv6 address without a port, prefix or zone. IPv4 mapped inside IPv6
is normalised to IPv4. Private, loopback, multicast and shared address space
are refused before any reserve or list request.
Call from Node.js
Section titled “Call from Node.js”This server helper uses fetch and the secret key from your environment. Pass
one trusted IP and a key for the logical operation. It returns the response so
your application can inspect HTTP status and credit headers before using the
parsed body. It does not retry automatically.
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() };}Handle a failed HTTP response separately from a 200 body whose status is
partial. A transport error or an unreadable response can leave the financial
outcome unknown. Retry with the original IP and key within the replay window;
see credits and retries below.
Read country, network and lists
Section titled “Read country, network and lists”The response contains id, status, codes, location, network, lists
and meta. It does not echo the IP. See the complete schemas in the
API reference.
location.countryis the IP’s country, an ISO alpha-2 code ornull.networkis the announcing autonomous system, ornullwhen unknown. It containsasn,handle,name,countryandtype. The country here describes network registration and can differ from the IP country.network.typeisisp,hosting,business,education_research,government_adminorunknown. Hosting describes a network category.meta.networks_versionidentifies the local network and country data used.
Every response has all eight entries under lists:
| Entry | Observation and coverage |
|---|---|
vpn |
Membership in a public VPN range list, IPv4 and IPv6. Lists can also include hosting ranges; membership does not prove an active tunnel. |
public_proxy |
A listed open proxy exit, currently IPv4 only. |
tor |
A listed Tor exit, currently IPv4 only. |
private_relay |
An iCloud Private Relay egress, IPv4 and IPv6. This is Apple’s privacy service. |
crawler_google |
Google’s published crawler ranges, IPv4 and IPv6. |
crawler_microsoft |
Microsoft’s published crawler ranges, currently IPv4 only. |
crawler_apple |
Apple’s published crawler ranges, currently IPv4 only. |
crawler_openai |
OpenAI’s published crawler ranges, currently IPv4 only. |
An entry’s status is listed, not_listed or unavailable. The last state
has a reason. Sources and timestamps appear when a snapshot is available.
fetched_at is when the snapshot was fetched, not when the IP was checked;
source_updated_at is included when the publisher supplies it. The configured
maximum snapshot age is six hours. Older copies answer source_stale.
not_listed establishes absence from that snapshot only. It does not exclude
a VPN or proxy. Crawler ranges do not establish the purpose of every request
from an address. Your application decides how to use the observations.
Distinguish completeness from a visitor decision
Section titled “Distinguish completeness from a visitor decision”| Response status | Meaning | Credits |
|---|---|---|
complete |
All eight lists answered within their published coverage | 1 |
partial |
A list is missing, failed, stale or otherwise unavailable | 0 |
Five lists publish IPv4 only. For an IPv6 address, their unavailable with
unsupported_address_family keeps the response complete and billable.
This is a coverage limit. source_stale, source_unavailable,
not_configured, address_unavailable and a missing list make it partial.
Emvero uses missing for an absent or unreadable entry and
upstream_unavailable when the list service gives no usable response.
A list service timeout, TLS failure or non-200 response produces HTTP 200
with status: partial, not an HTTP error. Country and network information
remain available independently. Unknown country or network alone does not
make the result partial.
The stable fact codes are fp_network_vpn, fp_network_public_proxy,
fp_network_tor, fp_network_private_relay and fp_network_hosting, in that
order when present. They share their meaning with
Sharp Signals network codes. Crawler ranges add no
warning code. The IP response has no risk or action; neither completeness
nor a network label determines that a visitor is safe or abusive.
Read credits and retry safely
Section titled “Read credits and retry safely”Admission requires a maximum reserve of one credit even if the eventual result
is free. 402 insufficient_credits performs no list request.
X-Credits-Chargedis the charge for this attempt, zero on replay.X-Credits-Operation-IDis the operation ID, also returned asid.X-Credits-Remainingreports the balance when it is known.X-Idempotent-Replay: trueidentifies a stored answer.- Responses use
Cache-Control: private, no-store.
The optional Idempotency-Key belongs to the account, caller and logical
request. Within 30 minutes, repeat the same IP with the same key to retrieve
the saved answer without another charge. IPv4 mapped inside IPv6 has the
same canonical form as the corresponding IPv4 address.
A saved partial also replays unchanged. To ask again after an upstream
recovery, start a new operation with a new key; that operation may be billed.
The same key with another IP is 409 idempotency_conflict. An unfinished
first request is 409 request_in_progress with Retry-After: 1.
For a lost response, preserve the original key. If the API reports
accounting_uncertain, preserve the supplied operation ID and read
GET /v1/credit-operations/{id}. This returns financial state only.
There is no GET route for IP-check results, no batch route and no automatic
combined email-plus-IP-Intelligence method.
Handle HTTP errors
Section titled “Handle HTTP errors”| HTTP | Codes and recovery |
|---|---|
| 400 | missing_ip, invalid_ip, ip_not_public, unknown_field, malformed_request, invalid_idempotency_key; correct the request |
| 401 | Missing or invalid credential; check the server key |
| 402 | insufficient_credits; review the shared balance |
| 409 | Preserve the original request on request_in_progress; resolve a conflicting key before retrying |
| 413 | Request exceeds the body limit |
| 429 | Respect the returned Retry-After |
| 503 | product_unavailable, accounting_paused, accounting_unavailable, accounting_uncertain; handle the stated error and preserve an uncertain operation ID |
General error handling, limits and idempotency still apply.
Data handling and product boundaries
Section titled “Data handling and product boundaries”The IP is used for the lookup, sent only to Emvero’s internal list component, and is not stored in the result. The result without the IP is retained for 24 hours. The 30-minute idempotency binding uses keyed HMAC. Financial operation records have separate retention. Do not interpret the result’s expiry as deletion of all financial records.
The current product has no residential-proxy database, cross-customer IP history, city coordinates or persistent visitor identity. Browser automation, consistency and connection observations require the separate Sharp Signals integration. See Emvero’s privacy policy and data processing terms for the surrounding conditions.