IP Info Service
The EMD Digital IP Info service provides easy access to information related to the IP address of the requestor. The service is optimized for low latency and fast response times. It is accessible through HTTP/3, IPv4 and IPv6 and globally distributed. CORS requests are enabled so the IP is readily available from the browser through any domain. The service does not require any sort of authentication and has no usage limits.
The response includes the country, subdivision (usually the state) and time zone of the requestor.
Example response:
{
"country": "US",
"subdivision": "MA",
"timeZone": "America/New_York"
}
warning
Determining the location of a user based on their IP address is not perfectly reliable. A user can choose to use a VPN or other IP obfuscation methods such as TOR.
Use from the command line:
curl https://ipinfo.emddigital.com/v1/
Use from the browser:
fetch('https://ipinfo.emddigital.com/v1/').then((res) => res.json()).then(console.log);
// {country: 'US', subdivision: 'MA', timeZone: 'America/New_York'}