Reference · Source: ISO 3166 · Refreshed daily
Country Codes for Customs Filings: ISO List and API
Country of origin, country of consignment and port of loading all use ISO 3166 alpha-2 codes on customs documents.
Request
curl "https://api.eximfetch.com/country-code?country_code=IN" \ -H "Authorization: Bearer $EXIMFETCH_API_KEY"
Response
Real records from the dataset. Every list endpoint returns the same envelope and supports page and limit.
{
"success": true,
"data": [
{
"country_name": "India",
"country_code": "IN"
},
{
"country_name": "United Kingdom",
"country_code": "GB"
}
],
"pagination": {
"currentPage": 1,
"totalPages": 1,
"totalCount": 2,
"limit": 25,
"hasNextPage": false,
"hasPrevPage": false
}
}More requests
Get All Countries
Returns all country codes with default pagination
GET /country-codeFilter by Country Code
Returns all records where country_code contains "AU"
GET /country-code?country_code=AUFilter by Country Name
Returns all records where country_name contains "arg"
GET /country-code?country_name=argMultiple Filters with Pagination
Returns filtered records with custom pagination
GET /country-code?country_name=a&page=2&limit=10