nondik

API documentation

Base URL: https://api.nondik.net. All responses are JSON. IPv4 and IPv6 are supported everywhere, and the API itself is reachable over both.

Quick start

  1. Create a free account and make a key in the dashboard.
  2. Call the API:
curl -H "X-API-Key: ndk_..." https://api.nondik.net/v1/8.8.8.8

Authentication

Send your key in the X-API-Key header, or as Authorization: Bearer ndk_.... Keys in the URL are refused, because URLs end up in logs. Keys are secret: call the API from your server, not from browsers.

Endpoints

RequestDoesCost
GET /v1/{ip}Look up one IPv4 or IPv6 address1 lookup
GET /v1/meLook up the address the request comes from1 lookup
POST /v1/batchLook up up to 256 addresses (Pro and above)1 per valid address
GET /v1/accountYour plan, quota and usagefree
GET /v1/healthService status and data date (no key)free
GET /v1/openapi.jsonOpenAPI 3.1 description (no key)free

Response fields

{
  "ip": "3.248.0.10",
  "found": true,
  "location": {
    "country_code": "IE", "region": "Leinster", "city": "Dublin",
    "latitude": 53.3498, "longitude": -6.2603, "timezone": "Europe/Dublin",
    "accuracy_km": 50, "source": "cloud-region"
  },
  "network": {
    "prefix": "3.248.0.0/13", "asn": 16509, "org": "Amazon.com, Inc.", "type": "cloud",
    "cloud": { "provider": "aws", "region": "eu-west-1", "service": "EC2" }
  },
  "privacy": { "anonymous": false, "vpn": false, "tor": false, "relay": false, "hosting": true },
  "crawler": null,
  "risk": { "score": 60, "level": "medium", "reasons": ["hosting_network"] },
  "threats": [],
  "data_date": "2026-11-25"
}
FieldMeaning
foundfalse when the address is not announced on the internet. Other objects are then null.
bogonPresent and true for private, reserved and documentation addresses (10.0.0.0/8, fc00::/7, …).
location.country_codeISO 3166-1 alpha-2 country of the user.
location.region, region_code, city, postalBest estimate; omitted when unknown.
location.latitude, longitudeApproximate point; omitted when unknown.
location.timezoneIANA time zone, e.g. Europe/Madrid.
location.accuracy_kmRadius: 25 (operator geofeed), 50 (cloud region, relay), 100 (city estimate), 500 (country only).
location.sourceWhere the location came from: geofeed, cloud-region, relay, dbip-city-lite, registry.
network.prefixThe block the address belongs to with identical data.
network.asn, orgThe autonomous system announcing the address and its registered name.
network.typeSee network types.
network.cloudProvider (aws, gcp, oracle, cloudflare), region and service from the provider’s published ranges, or null.
privacy.vpnNetwork operated by a VPN provider.
privacy.torCurrent Tor exit relay.
privacy.relayiCloud Private Relay egress (real Safari users, hidden address).
privacy.hostingCloud, hosting or CDN network (not set for Private Relay).
privacy.anonymousvpn || tor || relay.
crawlerVerified crawler by published ranges (googlebot, bingbot, gptbot), or null.
threatsThreat lists the address is on (empty for now; honeypot data is coming).
data_dateDate of the data release that answered.

There is no proxy field: residential proxies are not detected yet, and a false there would be a claim we cannot make.

Network types

isp (fixed broadband), mobile, cloud, hosting, cdn, vpn, education, government, business, or unknown. The type describes the network’s owner. A carrier that runs both fixed and mobile access is isp.

Risk score

A simple, explainable score from 0 to 100: the strongest signal wins and every contributing signal is listed in reasons.

ReasonScore
tor_exit90
threat_list85
vpn_provider75
hosting_network60
icloud_private_relay25
unknown_network15
verified_crawler5

Levels: high at 70 and above, medium from 40, low below. Use the individual flags when you need a specific policy (for example, allow Private Relay but block Tor).

Choosing fields

Add ?fields= with a comma-separated list; dotted names pick nested fields. ip is always included.

GET /v1/8.8.8.8?fields=location.country_code,privacy,risk.level

Batch

Pro, Business and Enterprise. Up to 256 addresses per request (1,000 on Enterprise). Results come back in the same order; invalid entries get an error object and are not charged.

curl -H "X-API-Key: $KEY" -H "Content-Type: application/json" \
  -d '{"ips": ["8.8.8.8", "2a00:1450:4001::1", "nonsense"]}' \
  https://api.nondik.net/v1/batch
{"results": [{...}, {...}, {"ip": "nonsense", "error": {"code": "invalid_ip", ...}}]}

Quotas and headers

Every charged response carries:

X-Quota-LimitLookups in your plan for the period
X-Quota-UsedUsed so far, including this request
X-Quota-RemainingLeft before the plan quota
X-Quota-PeriodYYYY-MM, or lifetime for the free trial
X-Quota-ResetWhen the period resets (paid plans)
X-Quota-WarningPresent once you are over the plan quota

Paid plans may go 20% over before requests get 429 quota_exceeded. The free trial stops at 1,000. Usage is counted in near real time; across many parallel requests the count can briefly lag by a few lookups.

Errors

{"error": {"code": "invalid_ip", "message": "\"1.2.3\" is not an IPv4 or IPv6 address"}}
StatusCodeMeaning
400invalid_ipNot an IP address
400invalid_requestMalformed batch body
400batch_too_largeToo many addresses in a batch
401missing_keyNo key in the header
401invalid_keyUnknown key
403key_disabledKey or account disabled
403plan_restrictionFeature not in your plan (batch)
404not_foundUnknown path
405method_not_allowedWrong HTTP method
429quota_exceededQuota (and allowance) used up
500internal_errorOur fault; retry
503data_unavailableData loading; retry in a few seconds

A 429 from too many requests per second can also come from the gateway; back off and retry.

Code examples

JavaScript (Node 18+)

const res = await fetch(`https://api.nondik.net/v1/${ip}`, {
  headers: { "X-API-Key": process.env.NONDIK_KEY },
});
const info = await res.json();
if (info.privacy?.anonymous || info.risk?.level === "high") {
  // ask for extra verification
}

Python

import os, requests

r = requests.get(f"https://api.nondik.net/v1/{ip}",
                 headers={"X-API-Key": os.environ["NONDIK_KEY"]}, timeout=5)
info = r.json()
print(info["location"]["country_code"], info["network"]["type"], info["risk"]["level"])

Go

req, _ := http.NewRequest("GET", "https://api.nondik.net/v1/"+ip, nil)
req.Header.Set("X-API-Key", os.Getenv("NONDIK_KEY"))
resp, err := http.DefaultClient.Do(req)
if err != nil { return err }
defer resp.Body.Close()
var info struct {
    Privacy struct{ Anonymous bool `json:"anonymous"` } `json:"privacy"`
    Risk    struct{ Level string `json:"level"` }      `json:"risk"`
}
err = json.NewDecoder(resp.Body).Decode(&info)

Data and updates

The database is rebuilt every day from registry, routing and operator data, and the API switches to each new release without downtime. data_date tells you which release answered. Sources and licences.

We do not log the addresses you look up; request logs record only the route, status and account.