JSON API

You can make automated requests to the site using the API.

Access URL:

https://api.myip.com

Response example:

{"ip":"66.249.75.9","country":"United States","cc":"US"}

Response elements:

ip: IP address
country: IP country location in English language
cc: Two-letter country code in ISO 3166-1 alpha-2 format

If there is no location data for an IP address cc will return "XX" and country "Unknown".

Is this a free service?

Yes.

What are the API usage limits?

There is no request limit, the only restriction is the server capacity which I will try to keep running smoothly.

Can I use it for my commercial application?

Yes, please give credit to myip.com if you can.

How can I exclude some parameter(s) from the response?

I will add that feature shortly, please check back for updates.

I want you to add some feature, how can I contact you?

If you have a suggestion please contact me here.

MyIP.com 2017.