Downloads
Download a country dataset
Downloads one country dataset as CSV, XLSX or JSON after a same-origin token has been minted. Store postal codes as text; do not convert them to integers.
get/download.php
Query parameters
countrystring required
Example:es
ISO 3166-1 alpha-2 country code.
format'csv' | 'xlsx' | 'json' required
Export format.
tstring required
Download token from /download-token.php.
Response
Country dataset file in the requested format.
Example response
[
{
"country_code": "ES"
}
]