Overview
Airtel IP is a free, no-auth IP geolocation API that aggregates data from multiple sources to return the country associated with any given IP address. Because it needs no API key, you can integrate it into a project in minutes without any signup. It is a good lightweight option when you only need country-level location data.
Beginner Tip
Just pass any public IP address directly in the URL path and set ?full=true to get the full country name along with the country code. No API key or headers are required.
Available Data
The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.
Example Response
Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.
{
"ip": "203.0.113.42",
"city": "San Francisco",
"region": "California",
"country_code": "US",
"latitude": 37.7749,
"longitude": -122.4194,
"timezone": "America/Los_Angeles",
"isp": "Example ISP"
} Field Reference
country ISO 3166-1 alpha-2 country code for the IP address. country_name Full English name of the country (returned when ?full=true is set). ip The IP address that was queried. Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://sys.airtel.lv/ip2country/8.8.8.8/?full=true";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Metadata Score Breakdown
Estimated from metadata — endpoint not independently tested
Metadata estimate · endpoint not independently tested
Technical Specifications
Related Tags
Similar APIs
View All →administrative-divisons-db
⭐ Beginner's PickThe Administrative Divisions DB API provides a structured list of all administrative divisions (states, provinces, regions, cities) for countries around the world.
adresse.data.gouv.fr
adresse.data.gouv.fr provides programmatic access to address database of france, geocoding and reverse via REST API.
bng2latlong
⭐ Beginner's Pickbng2latlong is a simple, free API that converts British National Grid (OSGB36) easting and northing coordinates into standard WGS84 latitude and longitude.
Cartes.io
⭐ Beginner's PickCartes.io is a free API that lets you create maps and add custom markers without signing up.
Cep.la
Cep.la is a free Brazilian API that lets you look up address information using a Brazilian postal code (CEP).