Airtel IP API

⭐ Beginner's Pick Geocoding / No Auth Required Beginner HTTPS
Free to Use Varies (check documentation)

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

IP address details
latitude and longitude
city and country
timezone
ISP information
IP address information

Example Response

JSON 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

const url = "https://sys.airtel.lv/ip2country/1.1.1.1/";
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

Empty or unexpected response Private or reserved IP ranges (e.g., 192.168.x.x, 10.x.x.x) cannot be geolocated.
Only query publicly routable IP addresses. Use an external service to retrieve the user's real public IP before calling this API.
Service unavailable / timeout This is a small third-party API with no guaranteed SLA and may experience downtime.
Implement a fallback to a secondary geolocation API (e.g., ip-api.com) in your error handling.
Inaccurate country result Multi-source aggregation may occasionally return outdated or conflicting geolocation data.
For accuracy-critical applications, verify results against a second geolocation provider.

Matrix Score Breakdown

🌐 Reachability 0/30
⚡ Speed 20/20
🔒 Security 15/15
🛠 Developer XP 15/20
✓ Reliability 7/15
Response Time 146ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Geocoding
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →