MojeIP API
Free API for checking IP address and geolocation
API Endpoint
GET
https://mojeip.eu/api/ipThe API automatically detects the caller's IP address and returns detailed location information.
Usage example
curl -X GET "https://mojeip.eu/api/ip" Response format
{
"success": true,
"timestamp": "2024-01-15T12:00:00.000Z",
"data": {
"ip": "185.123.45.67",
"version": "IPv4",
"location": {
"city": "Warszawa",
"region": "Mazowieckie",
"region_code": "14",
"country": "Poland",
"country_code": "PL",
"country_code_iso3": "POL",
"capital": "Warsaw",
"continent_code": "EU",
"in_eu": true,
"postal": "00-001",
"latitude": 52.2298,
"longitude": 21.0118,
"timezone": "Europe/Warsaw",
"utc_offset": "+0100"
},
"country_info": {
"tld": ".pl",
"calling_code": "+48",
"currency": "PLN",
"currency_name": "Zloty",
"languages": "pl",
"area_km2": 312685,
"population": 37978548
},
"network": {
"asn": "AS12345",
"organization": "Example ISP"
}
}
} Field descriptions
Test the API
Limits & terms
Free
No fees and no registration
CORS Enabled
Can be called from the browser
Note: The API is free, but please use it responsibly. Excessive load may result in temporary access restrictions.