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

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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