Skip to content
ipaddress.se

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=text

Endpoints

PathDescriptionDataRate limits
GET/api/v1/my-ipTry it: /api/v1/my-ipYour IP address (also as plain text with ?format=text).Own datasets120 · 240/min
GET/api/v1/ip/{address}Try it: /api/v1/ip/81.224.0.1Network, routing, registry and location data for an address.Own datasets30 · 30/min
GET/api/v1/asn/{asn}Try it: /api/v1/asn/AS3301Holder, registry and announced prefixes of an autonomous system.Own datasets30 · 30/min
GET/api/v1/dns/{domain}?type=A,MXTry it: /api/v1/dns/internetstiftelsen.se?type=A,MXLive DNS records for a domain.Live query40 · 60/min
GET/api/v1/rdap/{query}Try it: /api/v1/rdap/AS3301Registration data from the authoritative RDAP server.Live query10 · 6/min
GET/api/v1/healthTry it: /api/v1/healthLiveness of the service.Own datasets120 · 240/min
GET/api/v1/data-statusTry it: /api/v1/data-statusAge and size of each dataset.Own datasets120 · 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.