IPdon API
Look up an IP address, explore network evidence, or enrich a list of addresses in one request. Start without an API key.
Your first lookup
Use the free profile endpoint for any IPv4 or IPv6 address. There’s no account to create and no token to pass. You get five successful lookups per visitor IP each UTC day on this node.
curl --fail-with-body \ "https://your-ipdon-host/v1/free/profile/1.1.1.1"
Replace the address with your own. A result reflects this node’s available data; fields can be unknown. Try the browser explorer or open a complete illustrative JSON record.
Switch from IPinfo
For a shell script that needs its public address, change the host to ipdon.com. /ip returns one IPv4 or IPv6 literal as plain text and uses no lookup credits.
curl --fail-with-body https://ipdon.com/ip
For JSON integrations, update the endpoint, send an IPdon bearer token for account usage, and map the fields your application reads. These paths are relative to your IPdon host.
| Task | IPdon endpoint or field |
|---|---|
| Look up an address from a legacy, Lite or paid API | GET /v1/profile/{ip} |
| Look up the caller as JSON | GET /v1/me |
| Read ASN and organization | asn.number is numeric. asn.organization and asn.description describe the source’s network label. |
| Read country, city, region or coordinates | geolocation.country_code, geolocation.city, geolocation.region and geolocation.coordinates. |
| Read timezone, postal code or reverse DNS | geography.timezone.name, geography.postal_code and ptr_hostnames. Reverse DNS can return several names. |
| Read hosting or privacy evidence | classifications reports per-category evidence states. Handle unknown and conflicting states explicitly. |
| Send several addresses at once | POST /v1/batch |
IPdon returns a different JSON schema and uses its own allowances. Handle null values and empty arrays, and review coverage and evidence states before relying on any particular field.
Ready for more? Use an API token.
Create an account and an API token in your dashboard. Then use the authenticated endpoint with your token in the Authorization header. All tokens on an account share its allowance.
curl --fail-with-body \ -H "Authorization: Bearer $IPDON_API_TOKEN" \ "https://your-ipdon-host/v1/profile/1.1.1.1"
Keep tokens on your server or in environment variables. Browser sessions use a secure cookie and a CSRF nonce; API integrations use bearer tokens. Choose “My API token” above for a complete example in your language.
Choose the right endpoint
All paths below are relative to your IPdon host. Responses are JSON. Use the /v1/free prefix for free versions of the five read endpoints.
| GET endpoint | What you get |
|---|---|
/v1/profile/{ip} | Your starting point: network, ownership, location, PTR, domains, classifications and sources. |
/v1/ip/{ip} | Underlying IP evidence: DNS observations, prefix and enrichment claims. |
/v1/hostname/{hostname} | Observed A and AAAA addresses, source, observation time and TTL. |
/v1/asn/{asn} | ASN organization label, allocation, registration and routing-prefix evidence. Accepts AS13335 or 13335. |
/v1/me | A profile of the caller’s IP, using the server’s configured proxy trust. |
/v1/free/usage | Remaining free lookups and reset time. Does not consume a lookup. |
More detailed investigations
Authenticated association browsing uses /v1/dns/ip/{ip}/names and /v1/dns/hostname/{hostname}/addresses. Follow next_cursor explicitly; each page uses a query. A stale or expired cursor requires restarting.
Explicit collection endpoints are /v1/ptr/{ip}, /v1/registry/{ip}, and /v1/registry/asn/{asn}. They require authentication, an enabled collector and source-use authorization. Public lookups read locally collected PTR and forward DNS with their original TTL. Explicit registry collection requires separate authorization.
Ask for just the fields you need
GET /v1/free/profile/1.1.1.1?fields=ip,asn,ptr_hostnames,registry
Comma-separated fields select response fields; limit bounds returned evidence. Projection preserves source attribution through response headers. The OpenAPI specification describes the authenticated schemas.
Look up multiple addresses
Send up to 1,000 items in an authenticated batch request. Each item specifies an ID, a query kind, a target, and optional fields. Reuse the same idempotency key for an identical retry within five minutes.
curl --fail-with-body https://ipdon.com/v1/batch \
-H "Authorization: Bearer $IPDON_API_TOKEN" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: example-enrichment-1' \
--data '{"items":[
{"id":"v4","kind":"profile","target":"1.1.1.1","fields":"ip,asn.number"},
{"id":"v6","kind":"profile","target":"2606:4700:4700::1111","fields":"ip,asn.number"}
]}'
Check every item’s status and state, even when the request returns HTTP 200. Results retain input order and their IDs. Each admitted item uses one account lookup, and a batch can complete partially.
The Python client exposes lookup() and lookup_many(). In PHP, use lookup() and lookupMany(). Both return the original per-item outcomes for batch requests.
Read the record with confidence
A profile brings the evidence together. This excerpt shows the response format for a fictional documentation address.
{
"ip": "192.0.2.42",
"asn": {
"state": "candidate",
"number": 64496,
"organization": "Meridian Example Networks"
},
"ptr_hostnames": ["edge.example.com"],
"hostnames": ["edge.example.com", "api.example.com"],
"registry": {
"organization": "Meridian Example Networks Ltd.",
"network_name": "MERIDIAN-EXAMPLE",
"abuse_emails": ["[email protected]"]
}
}Download the complete illustrative record
| Field | Meaning |
|---|---|
asn | IP-to-AS association and publisher organization label. |
routing | Observed BGP origins and prefix. Independent of publisher AS mappings. |
company | Sourced name and scope for a published network or service operator, or an ASN operator candidate. |
registry / registration | Network registration, organization, country and abuse contacts when available. |
ptr_hostnames | Names from reverse DNS (PTR). |
hostnames | Names observed resolving to the IP through forward DNS. |
geolocation / geography | Country, region, city, coordinates, accuracy, postal code, timezone and country context. |
classifications | Hosting, VPN, proxy, Tor, residential, mobile, privacy relay and anycast evidence. |
evidence / warnings | Source references, observation and expiry times, and limits or disagreements. |
Company, registry, and registrar
The company result identifies the published operator of a network or service when address-level evidence is available. An asn_operator result identifies the organization associated with the ASN. The AS organization is a publisher’s label for an autonomous system. The registered organization is the administrative holder of an IP network or ASN. Neither alone proves who runs a specific endpoint.
A Regional Internet Registry (RIR) manages number resources: ARIN, RIPE NCC, APNIC, LACNIC or AFRINIC. The explorer identifies it from allocation records or attributed registry sources. An IP’s registry and its ASN’s registry can differ.
A domain registrar manages domain registration. A PTR name does not establish its registrar, and IPdon does not currently provide domain-registration/registrar records. It does show reverse DNS and observed domain-to-IP associations.
For example, Cloudflare documents 1.1.1.1 and one.one.one.one, and its partnership with APNIC. Those public reference pages are separate from the live evidence available in an IPdon node.
Know what counts
Free: five successful read requests per visitor IP, per UTC day, on each node. Requests from a shared public IP share the allowance. Validation failures and server errors do not consume it. Counters are held in node memory and reset on restart; they are not a global billing quota.
Free responses include X-Free-Limit, X-Free-Remaining and X-Free-Reset (Unix seconds). When exhausted, HTTP 429 includes Retry-After. GET /v1/free/usage reports the balance without using a lookup.
Account: admitted requests share your plan’s allowance across tokens, including cached results. Read X-Quota-Limit, X-Quota-Used and X-Quota-Remaining. An identical retry with the same Idempotency-Key within five minutes counts once. Check your dashboard for usage.
When a request needs attention
| Status | What to do |
|---|---|
400 | Check the IP, hostname, ASN or selected fields. |
401 / 403 | Check the bearer token or sign in again. Confirm account access. |
409 / 410 | A cursor became stale or expired. Restart the association traversal. |
429 | Free allowance or account limit reached. Read the error and Retry-After header when present. |
502 / 503 | A collector, dataset, source permission or node is unavailable. Retry later; repeated authentication won’t fix missing data. |
Error responses include error and may include a machine-readable code. Keep both when diagnosing a failed request.
Useful evidence. Honest unknowns.
A successful lookup can contain unknown fields. IPdon only returns evidence available to this node under its current source permissions. It does not fill gaps with a cached example or quietly infer a company from a hostname.
Network, DNS and geolocation evidence come from local snapshots. City and region are publisher estimates for a network prefix. A postal code appears only when the source provides one for that prefix. The time zone can come from the publisher’s country and region tables. Snapshots retain their original build dates and expiry, and DNS records keep their original TTL.
- Supported
- Usable operator or independently verified evidence supports the field.
- Candidate
- A publisher or another candidate source provides a value; independent confirmation is limited.
- Conflict
- Sources disagree. Inspect the candidates and source references.
- Unknown
- No usable evidence selects a value. This is not a negative finding.
Anycast addresses can represent many physical locations. Registration country is administrative, not endpoint location. Always keep uncertainty and attribution with the value.
Data credits and licensesData credits and licenses
Results retain their original sources and validity. These notices cover the data used by IPdon.
BGP routing
This product utilizes data provided by RouteViews (www.routeviews.org). Use of this data is subject to the CC BY 4.0 license.
With contributions from network operators and volunteers all over the world, RouteViews collects BGP data by direct peering at Internet Exchange Points (IXPs) or multi-hop peering. Data are archived and made publicly available for download at archive.routeviews.org, lg.routeviews.org, and api.routeviews.org.
IPdon extracts observed prefixes and origin ASNs from RouteViews routing table data. RouteViews terms of use.
Publisher credits and license details
ASN organization and approximate location
The API reads its local datasets. IPFire provides country-level estimates and ASN organization labels under CC BY-SA 4.0. IPFire Location.
City, region, time zone and available postal estimates come from a local ipgeo Community Edition snapshot by WhoisXML API under CC BY-SA 4.0. It includes IP Geolocation by DB-IP under CC BY 4.0. The publisher derives time zones from country and region tables. ipgeo source notices.
VPN evidence
Provider snapshots and observations are collected separately and loaded locally. The summary fields vpn.status and vpn.match_types identify a known exit, tunnel ingress or provider gateway.
IP-to-ASN mappings
IPv4 and IPv6 network mappings are provided by IPtoASN, maintained by Frank Denis, under the Public Domain Dedication and License (PDDL 1.0). A registration country is not a measurement of an IP address's physical location.
Number-resource allocation
Numerical allocation ranges, country attributes, status and dates come from the five RIRs’ public delegation statistics. These are administrative allocation facts. WHOIS contacts and legal registrant records are separate and are only shown when an authorized source supplies them.
DNS observations
DNS associations come from stored forward-DNS observations and bounded live A/AAAA resolution. Reverse DNS is resolved separately; a PTR name appears as a forward association only when A/AAAA independently confirms the address. Cached responses retain their original observation time and TTL. The domain seed inventory includes Majestic Million, licensed under CC BY 3.0, and the operator's domains. The seed inventory was normalized and resolved to create observations; it is not a complete inventory of Internet domains.
Bundled references
Country reference data and timezone boundary data use the Open Database License 1.0. Country reference data comes from mledoze/countries. Timezone lookup uses tzf-rs and tzf-rel boundary data derived from timezone-boundary-builder. Boundary source databases remain available from those projects under their original licenses.
Address-purpose classifications use the bundled IANA/RFC rule references identified in each profile.