Public APIs
MY IP favicon

MY IP

Development

Get IP address information.

MY IP's website screenshot

About MY IP

MY IP provides a JSON API for retrieving IP address and geolocation data. A request to the API endpoint returns the caller's IP address, the country associated with that IP, and a two-letter ISO 3166-1 alpha-2 country code; if location data is unavailable, the country fields return "Unknown" and "XX" respectively.

The service is free to use, has no stated request limit beyond server capacity, and is permitted for commercial applications, with attribution to myip.com requested but not required.

The API is suited for developers who need a simple way to look up IP-based location information, such as for geolocation lookups or IP-based country detection in applications.

Key features

  • Returns caller's IP address via JSON API
  • Includes IP geolocation country name
  • Includes ISO 3166-1 alpha-2 two-letter country code
  • Access via simple GET request to api.myip.com

Frequently asked questions

Is MyIP.com's API free?

Yes, it is a free service.

Are there API usage limits?

There is no request limit; the only restriction is server capacity.

Can I use it for a commercial application?

Yes, commercial use is allowed, and giving credit to myip.com is requested.

What data does the response include?

The response includes the IP address, the country name in English, and a two-letter ISO 3166-1 alpha-2 country code.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product