Is there a way to get metadata for each country? In particular:
- Is it a country, or a region/group (e.g.
Upper Middle Income)?
- If it is a country, to which region does it belong?
You can pull the metadata directly from this URL (xml returned by default):
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.