Countries, Cities, States & Zip Codes REST API

The API with information from more than 200 Countries

Power your app with our API

Our API provides the building blocks you need to create amazing experiences.

Easy Integration

Seamless integration with clear documentation.

Powerful Features

Access to advanced features, including AI-powered recommendations.

Scalable

Designed to scale, handle your application's growth and ensure reliability.

Security

Robust security measures to protect your application and user data.

Start now. Sign up today

Get Started

CountryDataAPI is perfect for...

Code 3Developers

Deploy projects that leverage reliable data and advanced algorithms.

User GroupStartups

Power your startup project with our simple yet effective REST APIs.

14Companies

Deliver first-class information consistently and scalably to your end users.

Geographical Data API - Countries, States, Cities and Zip Codes

CountryDataAPI is the ultimate countries API platform that provides access to detailed information from all countries worldwide. Our zip codes API allows you to validate and obtain accurate geographical information of zip codes by country, state and region. Additionally, we offer complete data on cities and states to create localized experiences in your applications.

Comprehensive Global Coverage

200+ Countries
Complete data for every nation
5,000+ States
Provinces and administrative regions
150,000+ Cities
Urban centers worldwide
500,000+ Zip Codes
Postal codes for accurate delivery

Common Use Cases

  • E-commerce shipping calculators and address validation
  • Location-based user registration and forms
  • International market analysis and research
  • Travel and tourism applications
  • CRM and customer data enrichment
  • Logistics and delivery route optimization

Trusted by developers worldwide

Join thousands of developers who use CountryDataAPI to power their applications

200+
Countries covered
150K+
Cities in database
500K+
Postal codes
6
Supported languages

Frequently Asked Questions

What data formats does the API support?

CountryDataAPI returns data in JSON format, making it easy to integrate with any programming language or framework.

What plans are available?

We offer flexible paid plans starting at $9.99/month with 10,000 monthly requests, scaling up to enterprise-level volumes. All plans include full access to every endpoint.

How often is the data updated?

Our geographical database is updated regularly to ensure accuracy. Country borders, city names, and zip codes are verified against official sources.

What programming languages work with CountryDataAPI?

CountryDataAPI works with any language that can make HTTP requests — JavaScript, TypeScript, Python, PHP, Java, Ruby, Go, and more. We also offer a TypeScript SDK and MCP Server for AI tools.

How do I get started?

Create your account, copy your API key from the dashboard, and make your first request in minutes. Full documentation with code examples is available in the Docs section.

Is there a rate limit?

Yes. All plans have monthly request limits starting at 10,000 requests/month, scaling up based on your plan. Limits reset at the beginning of each billing cycle.

Can I use the API for commercial projects?

Yes! All plans include commercial use rights. Check the pricing page for full details on each plan.

Does the API support IP-based geolocation?

CountryDataAPI focuses on structured geographic data — countries, states, cities, and zip codes. For IP geolocation, you would use our country code or timezone endpoints in combination with a separate IP lookup service.