IP to Country API
Lightning-fast country detection for any IP address. Perfect for geo-restrictions, compliance checks, and basic localization needs.
Why Use IP to Country?
Ultra Fast
Optimized endpoint returns only country data for minimum latency.
Accuracy
Country-level detection with industry-leading accuracy rates.
Countries
Complete global coverage with ISO 3166-1 country codes.
Common Use Cases
Geo-Restrictions
Block or allow access based on country. Perfect for content licensing, regulatory compliance, or region-locked services.
Currency & Language
Automatically detect visitor country to display appropriate currency, language, and regional content defaults.
Traffic Analytics
Build geographic traffic reports. Understand which countries drive the most engagement and conversions.
Risk Assessment
Flag requests from high-risk countries. Add an extra layer of security to your fraud prevention stack.
Simple Response
GET /v1/country/8.8.8.8
{
"ip": "8.8.8.8",
"country": "United States",
"country_code": "US",
"continent": "North America",
"continent_code": "NA"
}