Skip to content

API guides/IP, DNS, and HTTP

FreeFreemium

IP address to location API

City, region, country, ASN, and ISP from an IP. Compare ip-api (free, HTTP, non-commercial), IPinfo, and ipapi.co.

Check official docs

3 providers · 6 min · Limits change — verify before you ship

IP, DNS, and HTTP

What this is for

Geolocation is a best-effort database lookup, not GPS. Accuracy varies by ISP and VPN. PureDevKit’s CIDR tool does subnet math only — it does not know the city. These providers do.

ProviderPricingKeyHTTPSCORS
ip-apiFreeNo keyNoUsually yes
IPinfoFreemiumRequiredYesVerify
ipapi.coFreemiumOptionalYesUsually yes

ip-api

Free

GET http://ip-api.com/json/{ip}

Official docs

HTTPS

HTTP only

API key

No key

CORS

Usually yes

Use

Free tier

Limits. Free: about 45 requests/minute, HTTP only, non-commercial. HTTPS and higher volume are paid (Pro).

Commercial. Free tier is non-commercial. Use Pro for commercial HTTPS.

Note. Do not send HTTPS to the free host — it is not offered there. Omit the IP to look up the caller.

curl -sS "http://ip-api.com/json/8.8.8.8"

IPinfo

Freemium

GET https://ipinfo.io/{ip}/json?token=YOUR_TOKEN

Official docs

HTTPS

Yes

API key

Required

CORS

Verify

Use

See limits

Limits. Free tier is typically tens of thousands of requests per month with a token. Paid plans add privacy/ASN detail.

Commercial. Free tier allows commercial use subject to current IPinfo terms.

Note. Token belongs on a server. Check the current free-tier number on their pricing page.

curl -sS "https://ipinfo.io/8.8.8.8/json?token=YOUR_TOKEN"

ipapi.co

Freemium

GET https://ipapi.co/{ip}/json/

Official docs

HTTPS

Yes

API key

Optional

CORS

Usually yes

Use

See limits

Limits. A small daily quota without a key; paid plans raise limits and unlock extra fields.

Commercial. See ipapi.co pricing. Do not assume the no-key path is unlimited.

curl -sS "https://ipapi.co/8.8.8.8/json/"

PureDevKit does not host or proxy these APIs. Pricing, rate limits, CORS, authentication, and JSON shapes can change without notice. Always confirm the current rules on the provider’s official documentation before you ship.