GET /api/countries
<?xml version="1.0" encoding="UTF-8"?> <countries type="array" page="1" per_page="100" total="247"> <country> ... </country> <country> ... </country> ... </countries>
GET /api/countries?code=US
Shows the country with the ISO 3166 Alpha-2 country code “US”. It doesn’t matter if you use upper– or lowercase.
The following parameters can be used:
Parameter | Description |
---|---|
code | Country code as ISO 3166 Alpha-2 |
GET /api/countries/{id}
<?xml version="1.0" encoding="UTF-8"?> <country> <id type="integer">190</id> <name>United States</name> <code>US</code> </country>