API URL
GET /countries, GET /countries/:code, GET /countries/search, GET /countries/match, GET /export
Headers
Code
Content-Type: application/jsonQuery Parameters
Param
Type
Description
code
required
string
ISO2, ISO3, or numeric country code (for /countries/:code endpoint)
Example GET Request
Code
GET /countries/search?q=unitedSuccessful Response
Status
HTML
200 OKBody
Code
[
{
"countryName": "United States",
"iso2": "US",
"iso3": "USA",
"numericCode": "840"
}
]Field
Type
success
boolean
data
object
data.countryName
string
data.iso2
string
data.iso3
string
data.numericCode
integer
meta
object
meta.count
integer
meta.query
string
meta.matchType
string
meta.similarity
number
meta.timestamp
string
meta.correlationId
string
Error Response
Example
Code
404 NOT_FOUND – Country not found by provided identifier
400 BAD_REQUEST – Invalid search query or code format
500 INTERNAL_ERROR – Database connection or query errorLast Updated: May 4, 2026