CountryStateCity

CountryStateCity

Geocoding

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

Visit API

πŸ“š Documentation & Examples

Everything you need to integrate with CountryStateCity

πŸš€ Quick Start Examples

CountryStateCity Javascript Examplejavascript
// CountryStateCity API Example
const response = await fetch('https://countrystatecity.in/', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

const data = await response.json();
console.log(data);

Discover the ultimate solution for accessing comprehensive geographical data with the World Countries, States, Regions, Provinces, Cities & Towns API. This powerful API offers an extensive database that allows you to retrieve information on various administrative divisions and populated places around the globe in multiple formats, including JSON, SQL, XML, YAML, and CSV. Whether you are a developer building an application, a researcher analyzing geographical data, or a business looking to enhance your services with location intelligence, this API provides the rich, reliable data you need from a centralized source. With a straightforward and user-friendly interface, you can easily integrate it into your projects and start harnessing the power of global geographical insights today.

By utilizing this API, you can enjoy several benefits that streamline your development process and enhance your applications. Key advantages include:

  • Access to a comprehensive database of countries, states, and cities worldwide.
  • Multiple data formats for versatile integration into various applications.
  • Regularly updated information to provide the most accurate data for users.
  • Enhanced user experience with precise location data, improving local search results.
  • Cost-effective solution for businesses requiring extensive geographical data without extensive databases.

Here’s a simple JavaScript example demonstrating how to call the API:

fetch('https://api.countrystatecity.in/v1/countries', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json',
        'API-Key': 'YOUR_API_KEY' // Replace with your API key
    }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
πŸ”’

Security Assessment

F
πŸ”’HTTPS
Enabled
πŸ›‘οΈHeaders
0/100
πŸ•’Last Assessed
3 weeks ago
ℹ️Click for detailed analysis

πŸ“Š 30-Day Uptime History

Daily uptime tracking showing online vs offline minutes

Jun 17Jun 19Jun 21Jun 23Jun 25Jun 27Jun 29Jul 1Jul 3Jul 5Jul 7Jul 9Jul 11Jul 13Jul 1604008001440Minutes
Online
Offline

Related APIs in Geocoding