ProxySpace

Free · no key · HTTPS · CORS

Free IP geolocation API

Country, city, coordinates, time zone and network for any IPv4 or IPv6 address, as JSON. No key, no sign-up; 4,777 lookups in the last 24 hours.

$curl -s https://geo.proxyspace.pro/ip
Response · application/json

Endpoints

All GET, all on https://geo.proxyspace.pro, all returning the same JSON object.

/ipYour own IP address (the one making the request)
/ip/{ip}Any IPv4 or IPv6 address
/ipandport/{ip}:{port}A proxy line as-is; the port is ignored
/domain/{domain}The first A record of a domain
/ipheaderYour IP plus the request headers your client sent

Response fields

FieldTypeMeaningExample
ipstringThe address that was looked up"8.8.8.8"
countrystringCountry name in English"United States"
country_codestringISO 3166-1 alpha-2 code"US"
citystring | nullNearest city; approximate"Mountain View"
latitudenumber | nullLatitude of the city37.422
longitudenumber | nullLongitude of the city-122.085
time_zonestring | nullIANA time zone at that location"America/Los_Angeles"
asn_numbernumber | nullAutonomous system number15169
asn_organizationstring | nullOrganisation that holds the network"Google LLC"
postal_codestring | nullPostal code, only where knownnull

Code examples

curl -s https://geo.proxyspace.pro/ip/8.8.8.8

Data, accuracy and fair use

The API looks addresses up in the DB-IP Lite city and ASN databases (CC BY 4.0), which are refreshed every month. Country data is reliable; city data is approximate and for mobile, VPN and cloud addresses usually points at the network rather than the person.

There is no key and no hard limit. Cache what you look up, and keep bulk jobs to a few requests per second. Looking up proxies? The per-country proxy lists are already sorted by country, and the IP blacklist check adds a risk score on top of the location.

More free endpoints, for proxy lists, IP ranges and ASN data, are on the API page.

IP geolocation API: questions

Is this IP geolocation API really free?

Yes. There is no key, no account and no paid tier. It has answered requests for free since 2023. Please use it fairly: cache results instead of looking up the same address again and again. For heavy or commercial use, get in touch.

How accurate is it?

The country is right for the vast majority of addresses. The city is an estimate: for mobile networks, VPNs and cloud servers it is often the location of the network, not of the person. No IP database can give a street address.

Where does the data come from?

Location and network come from the DB-IP Lite databases (CC BY 4.0), refreshed every month. The time zone is derived from the coordinates.

Does it support IPv6?

Yes. /ip/{ip} accepts IPv4 and IPv6 addresses, and /ip returns whichever address you connect with.

Can I call it from a web page?

Yes. It answers over HTTPS with Access-Control-Allow-Origin: *, so fetch() from any site works without a proxy. The What is my IP and IP lookup tools on this site use it that way.

What happens with private or unknown addresses?

Addresses that are not in the database, such as 192.168.x.x or 10.x.x.x, return a JSON object with an error field instead of a location.