My IP API
My IP API — keyless JSON API
My IP API. This API allows users to programmatically retrieve their IP address along with the country it is located in and the corresponding two-letter country code. It provides responses in simple JSON format and is free to use for both personal and commercial applications.
GET https://api.miip.my/
{
"ip": "46.1.3.138",
"country": "Turkiye",
"cc": "TR"
}curl "https://api.miip.my/"const res = await fetch("https://api.miip.my/");
const data = await res.json();
console.log(data);import requests
res = requests.get("https://api.miip.my/")
print(res.json())/PROBEDMy IP API — keyless JSON API
/?limit=5Paginated variant with limit parameter.
We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.
Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.
My IP API: common questions
Is My IP API free to use?
Yes — My IP API is a free open data API. Free tier: Free — limits not published. Whether the free tier allows commercial use is unclear — check the provider docs.
Does My IP API need an API key?
No — My IP API needs no API key or signup. You can call it straight away; rate limits still apply (Unpublished).
Can I call My IP API from the browser?
Yes — My IP API returns CORS headers over HTTPS, so front-end code can fetch it directly with no backend proxy. Use the fetch snippet on this page, or hit "Run live" to try it now.
Is My IP API up right now?
As of our last scheduled check, My IP API is healthy with 100% uptime over 90 days and a 306 ms median response. We re-probe it every sweep — the status badge and uptime chart above always show the latest.