Documentation

API URL


GET /countries, GET /countries/:code, GET /countries/search, GET /countries/match, GET /export

Headers
Code
Content-Type: application/json
Query Parameters


Example GET Request

Code
GET /countries/search?q=united

Successful Response

Status
HTML
200 OK
Body
Code
[
  {
    "countryName": "United States",
    "iso2": "US",
    "iso3": "USA",
    "numericCode": "840"
  }
]

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 error

Last Updated:  May 4, 2026