apilayer / restcountries

Get information about countries via a RESTful API
https://restcountries.eu
Mozilla Public License 2.0
2.25k stars 355 forks source link

Add sub regions by country #87

Open RibeiroAna opened 6 years ago

RibeiroAna commented 6 years ago

For example, add US states or French provinces.

daverogers commented 6 years ago

+1

It looks like this repo has a pretty extensive dataset already: https://github.com/hexorx/countries/blob/master/lib/countries/data/subdivisions/

In the meantime, you could consume that YAML file using the raw URL and parse it in your language of choice: https://raw.githubusercontent.com/hexorx/countries/master/lib/countries/data/subdivisions/BY.yaml

Definitely would be better in this API though 👍

jaglick commented 6 years ago

Was just trying to find exactly the same! Please add sub regions!