IP 2 Country
APIFree API to map IP addresses to country details
Overview
IP 2 Country is a RESTful API that maps IPv4 and IPv6 addresses to country-level geocoding data. Its core endpoint accepts an IP address (e.g., /api/v1/ip/8.8.8.8) and returns JSON responses with country information like ISO 3166-1 alpha-2/3 codes, full name, and continent. Ideal for geotargeting website content, detecting location-based fraud, optimizing ad delivery, or enriching user analytics with country context. The API supports simple GET requests with no complex setup.
Example Integration (JavaScript)
fetch('https://ip2country.info')
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err)); Key Features
- RESTful Interface
- JSON Responses
- IPv4/IPv6 Support
- No Authentication Required
Frequently Asked Questions
? Is IP 2 Country free to use?
Yes, IP 2 Country offers free access for mapping IP addresses to country-level information.
? Does it require an API Key?
No, IP 2 Country does not require an API key for standard usage.
? What is the response format?
The API returns responses in JSON format, including details like country ISO codes and full name.
Top Alternatives
People Also Ask about IP 2 Country
Tool Info
Pros
- ⊕ Easy to integrate with minimal setup
- ⊕ Supports both IPv4 and IPv6 addresses
- ⊕ Free access for basic usage
Cons
- ⊖ Limited to country-level data only
- ⊖ No official service level agreement (SLA)
- ⊖ Potential rate limits for high-volume requests