Countries

List all countries

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>

The list can be filtered with parameters:

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:

ParameterDescription
codeCountry code as ISO 3166 Alpha-2

Show a specific country

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>