3

I am getting country data from World Bank via Pandas Remote Data API.

Is there a way to get metadata for each country? In particular:

  • Is it a country, or a region/group (e.g. Arab World or Upper Middle Income)?
  • If it is a country, to which region does it belong?

1 Answer 1

1

You can pull the metadata directly from this URL (xml returned by default):

http://api.worldbank.org/countries

It looks like it has what you need. Regions/groups are treated like countries but you can distinguish them based on empty or "NA" field values.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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