Skip to main content

Get your own IP address Free

If you need a free API to get your current IP address, you can use our 100% free and unlimited current IP lookup service:

curl https://api.iplocate.io/
Response
123.243.56.78

Or, to get the response as JSON:

curl https://api.iplocate.io/json
Response
{ "ip": "123.243.56.78" }

This endpoint has no rate limiting and no API key required.

note

This endpoint only returns the IP address.

This is separate to our comprehensive IP Intelligence API, which provides much more detailed information about an IP address. The IP Intelligence API can also return information about the caller’s IP address by omitting the ip parameter. However, this API requires an API key.

Why is this useful?

This can be used as a quick way to get your own IP address. Or, it can be used to get the IP address of a user from Javascript, or any script or app that runs on an end-user’s device and needs to know their IP address.

This endpoint runs on the same fast, global infrastructure that powers our other APIs. This means we can always route your request to a server that’s close to you, so it’s super fast and reliable.

This also means it’s much faster than other IP address lookup services like canhazip, ipify, and others.

And, of course, it’s free and unlimited!