Want to get your ip address thru an API?

Koh Chi Hao
1 min readJul 23, 2017

Ever wanted to get your external IP address through an API? Now you don’t need to wait. I’ve created an API for this. So you may ask why you should use my API?

Here are some reasons why you should use my API:

  1. It works flawlessly!
  2. You can always use it without any limit.
  3. It runs on Heroku which means regardless of rain or shine, the API will always be up.
  4. It is easily to use!

Here’s a short tutorial on how to use it! Simply type this to your terminal

curl ipdata2017.herokuapp.com

It will return you something like this

{
“ip”: “124.232.246.249”,
”city”: “Singapore”,
”country”: “SG”
}

It is really simple to use and it’s totally FREE.

Here are some reasons you why you may need it

  1. You need your external IP address to access some files behind your home router.
  2. You need to get the IP address of your newly provisioned cloud servers
  3. You need your IP address to know what is your house external IP address
  4. For your IoT projects

There are literally millions of reasons why you may need to get your IP Address programmatically. Feel free to use this API and do give some feedback.

You can support me on:
Instagram

Donate to support my server (Any amount is welcomed):
Paypal

--

--