API documentation
Create and verify your account, sign in, then create an API key. Send it only in the Authorization header, never in a URL. The API returns native source records without merging providers.
Lookup
GET /api/v1/lookup/{IPv4-or-IPv6}?database=all
Authorization: Bearer ipa_YOUR_KEYSet database to one identifier or a comma-separated list, for example maxmind-city,dbip-city,iplocate-asn. Use all for every enabled source. One successful HTTP lookup counts as one request, even if multiple datasets are selected. If all selected sources are unavailable, the response is 503 and no monthly quota is charged.
Clean, raw and selected fields
Default responses omit build timestamps, checksums, reader metadata and repeated source/licence fields. Name dictionaries retain English only. Add mode=raw for the native record and metadata. Add fields=place.city.name,network.asn to select native record paths; field names differ by provider. The matched network and result status remain. Source attribution and build details remain in Databases, the catalogue and source notices.
Provider-level results
Use maxmind (MaxMind Geolite2), dbip or iplocate for matching geolocation and ASN editions in one result. Native sections remain separate, including partial availability. Existing edition identifiers still work. Legacy MaxMind/DB-IP Country identifiers become country-only projections from City; coverage and matched prefixes may differ from the former standalone files.
Bulk lookup
POST /api/v1/bulk
Authorization: Bearer ipa_YOUR_KEY
Content-Type: application/json
{"database":"maxmind","ips":["8.8.8.8","1.1.1.1"],"mode":"clean"}Exactly one provider/dataset per batch. Supply at most 256 IPs or one IPv4 CIDR no broader than /24, never both. A full /24 includes all 256 addresses. Duplicate IPs are looked up once. Each successful or not-found IP costs one monthly unit; unavailable results do not. The batch must fit remaining quota before it starts, and quota is rechecked before charging. A batch counts as one HTTP request for RPS limits; server bulk concurrency is separately bounded. No quota bypass. Private, reserved and other non-global inputs are rejected before lookups.
Keys and presets
Keys support optional expiry, database restrictions, descriptions and a bulk-enable switch, alongside monthly/RPS limits and IP/CIDR allowlists. Existing keys keep no-expiry and all otherwise-permitted sources unless edited. Rotating a key can overlap for up to 24 hours; replacements inherit scope and share the original key quota/rate group. Account presets save provider IDs and optional native fields, never secret key values.
Client libraries
The private source release includes a standard-library Python client and a JavaScript ES module under clients/. They use header authentication, IPv6-safe URL encoding, timeouts and bounded retries only for rejected 429 requests. They do not retry ambiguous network failures or 5xx responses that may already have consumed quota. No package-registry publication is implied.
Discover datasets
GET /api/v1/databases
No API key required for the public catalogue. Each item includes id, provider, name, state, format, licence, source and installed build metadata. Sources awaiting download or access details do not return results.
Response shape
{
"ip": "8.8.8.8",
"request_id": "unique-id",
"results": {
"provider-edition": {
"status": "ok",
"record": { "all_native_keys": "preserved" },
"network": "matched network or source range"
}
},
"quota": { "period": "YYYY-MM", "account_used": 1, "account_limit": 50000 }
}This is a structural example. Records, optional values and keys differ by provider. Status can be ok, not_found, unavailable, disabled or expired. A not_found result is a completed lookup, not proof of a safe IP. Native CSV fields remain strings to avoid guessing numeric types.
Limits and errors
- 400: invalid IP address or dataset identifier, or a special-purpose lookup target (private, reserved or otherwise not globally routable).
- 401: missing, revoked or invalid API key, or suspended/unverified owner.
- 403: client outside the key's IP/CIDR allowlist.
- 429: per-key/account RPS or monthly allowance reached. Retry-After indicates a delay in seconds.
- 503: none of the selected databases is available. No quota charged.
Limits apply at both key and account level. Monthly usage resets at 00:00 UTC on the first of each month. Additional keys do not create new account allowance. X-MonthlyLimit-Remaining reports the account balance; X-RateLimit-Limit reports the current per-second ceiling.
Example with curl
curl --fail-with-body \ -H 'Authorization: Bearer ipa_YOUR_KEY' \ 'https://YOUR_HOST/api/v1/lookup/2001:4860:4860::8888?database=all'
Account and admin APIs
The browser dashboard uses /account/me, /account/keys, /account/usage and /admin/data. Session-authenticated mutations require X-CSRF-Token from /account/me. Admins can PATCH /admin/users/{id} with monthly, rps and suspended, or POST /admin/defaults for future-account limits. The reserved admin address requires both the server bootstrap token and email verification. Machine-readable account schemas are in the OpenAPI document too.
Every database, by name
Pass one identifier or a comma-separated list in the database parameter. Live list, straight from the catalogue:
Loading the current catalogue…
OpenAPI specification
The full API as OpenAPI 3.1 JSON, always generated from the running service: /openapi.json. Import it into any OpenAPI client.
Try a lookup
Checking your session…
For language models
Feeding this API to an LLM or agent? One click copies a compact, current text reference: endpoints, authentication, quota rules, error codes and the live database identifiers. It contains no credentials.

