API
The same data as the website, as JSON or plain text. No key, no account; fair-use rate limits apply.
curl https://ipaddress.se/api/v1/my-ip?format=textEndpoints
| Path | Description | Data | Rate limits |
|---|---|---|---|
| GET/api/v1/my-ipTry it: /api/v1/my-ip | Your IP address (also as plain text with ?format=text). | Own datasets | 120 · 240/min |
| GET/api/v1/ip/{address}Try it: /api/v1/ip/81.224.0.1 | Network, routing, registry and location data for an address. | Own datasets | 30 · 30/min |
| GET/api/v1/asn/{asn}Try it: /api/v1/asn/AS3301 | Holder, registry and announced prefixes of an autonomous system. | Own datasets | 30 · 30/min |
| GET/api/v1/dns/{domain}?type=A,MXTry it: /api/v1/dns/internetstiftelsen.se?type=A,MX | Live DNS records for a domain. | Live query | 40 · 60/min |
| GET/api/v1/rdap/{query}Try it: /api/v1/rdap/AS3301 | Registration data from the authoritative RDAP server. | Live query | 10 · 6/min |
| GET/api/v1/healthTry it: /api/v1/health | Liveness of the service. | Own datasets | 120 · 240/min |
| GET/api/v1/data-statusTry it: /api/v1/data-status | Age and size of each dataset. | Own datasets | 120 · 240/min |
Rate limits
Requests are limited per client address with a token bucket. When the limit is reached the API answers 429 with a Retry-After header. Limits are counted in memory with a hashed, daily-rotated key; addresses are not stored.
Errors
Errors use HTTP status codes and a JSON body of the form {"error": {"code": "…", "message": "…"}}.
Versioning
Paths under /api/v1/ keep their response shape. New fields may be added; existing fields are not removed or renamed within v1.
Attribution
Location data comes from DB-IP (CC BY 4.0). If you show it, credit DB-IP as the licence requires.