IP 2 Country

API

Free API to map IP addresses to country details

Visit Website

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)

script.js JS

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

IPinfo Compare
MaxMind GeoIP2 Search Google
IP2Location Compare

People Also Ask about IP 2 Country

IP 2 Country vs IPinfoIP 2 Country vs MaxMind GeoIP2IP 2 Country vs IP2Location IP 2 Country 2025 review

Tool Info

Pricing Free
Category Geocoding
Platform Public API

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

More Geocoding Tools