Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any Google API which would return all the countries in the world with the country code?

share|improve this question
The AJAX API has the list you require?… – Mapperz Jan 30 '12 at 15:06

The Google Maps API family does not have anything like this. There might be other API's that do, but since ISO 3166-1 is fairly static you are probably better off embedding the data rather than retrieving it from an API every time you need it.

You could use Wikipedia's article on ISO 3166-1 as a source for the list of countries and codes.

share|improve this answer

How about KML Countries at GeoCommons. It has entries such as:

  • Cntryname: Australia, Fipscntry: AS
  • Cntryname: Egypt, Fipscntry: EG
  • Cntryname: France, Fipscntry: FR
  • Cntryname: United States, Fipscntry: US
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.