public apis
/
CategoriesMCPBlogRandomStar
Public APIs

A searchable directory of 2,000+ free public APIs, curated by the community and maintained with APILayer.

Powered byAPILayer

Popular

  • Weather APIs
  • Finance APIs
  • Crypto APIs
  • Geocoding APIs
  • Machine learning APIs
  • Games APIs

Directory

  • Categories
  • All APIs
  • MCP servers
  • FAQ
  • Stats
  • JSON API
  • llms.txt

APILayer

  • Browse the API suite ↗
  • Get a free API key ↗
  • APILayer blog ↗
  • Postman collection ↗
  • Discord community ↗

Project

  • public-apis on GitHub ↗
  • Contribute an API ↗
Public APIs · by APILayerData from public-apis (MIT)
  1. Home
  2. /Geocoding
  3. /Country
Geocoding
Country logo

Country

Get your visitor's country from their IP.

Country API is a free Geocoding API that requires no API key, is served over HTTPS and supports CORS, so it can be called from the browser.

Authentication
None required
HTTPS
Yes
CORS
Yes
Category
Geocoding
Visit documentation ↗country.is

About Country

Country is a free IP-to-country geolocation API that returns a user’s country based on their IP address.

Provider
Country
Website
country.is ↗

Details from country.is.

APILayer

Unified API suite · now live

Geocode an address, validate an email, track a flight or pull stock data with one account, one dashboard and one API key.

Get your free API key→Free tier on every API

Country API alternatives

CitySDK logo

CitySDK

Open APIs for select European cities

No authHTTPSCORS ?
CountryStateCity logo

CountryStateCity

World countries, states, regions, provinces, cities & towns in JSON, SQL, XML, YAML, & CSV format

apiKeyHTTPSCORS
C

Cep.la

Brazil RESTful API to find information about streets, zip codes, neighborhoods, cities and states

No authNo HTTPSCORS ?
Ducks Unlimited logo

Ducks Unlimited

API explorer that gives a query URL with a JSON response of locations and cities

No authHTTPSNo CORS
Cartes.io logo

Cartes.io

Create maps and markers for anything

No authHTTPSCORS ?
GeoApi logo

GeoApi

French geographical data

No authHTTPSCORS ?

Country API FAQ

Who provides the Country API?

The Country API is provided by Country (country.is). Country is a free IP-to-country geolocation API that returns a user’s country based on their IP address.

Is the Country API free?

Yes. The Country API is listed in the Geocoding category of the public-apis directory, which only includes APIs that are free or have a free tier. Check its documentation for rate limits and paid plans.

Does the Country API require an API key?

No. The Country API requires no authentication, so you can start making requests without signing up.

Can I call the Country API from the browser?

Yes. The Country API supports CORS, so front-end JavaScript can call it directly.

Does the Country API support HTTPS?

Yes. The Country API is served over HTTPS, so it's safe to use in production.