Country
About
One Record API uses ISO 3166 codes to provide a standardized representation of a country. The country is identified by the two-letter code (e.g. "FR" for France), while places are identified by a three-letter code (e.g. for airports, their IATA three-letter location identifier code such as “LAX” for Los Angeles International Airport), ensuring uniformity and accuracy in international data exchanges, geographic information systems, and various applications requiring precise identification of countries and places. For countries or territories not officially recognized, the X
code is used, e.g. XK
for Kosovo.
Endpoints
Get all countries
column_name
asc|desc
Bad Request
Unauthorized Entity
Unprocessable Entity
GET /country HTTP/1.1
Host: api.one-record.fr
Authorization: Bearer JWT
Accept: */*
{
"data": [
{
"code": "AD",
"name": "text",
"code3": "text",
"codeNumeric": "text",
"region": "Europe",
"createdAt": null,
"updatedAt": null
}
],
"metadata": {
"count": 1,
"current": "text",
"next": "text"
}
}
Get a country
Bad Request
Unauthorized Entity
Unprocessable Entity
GET /country/{code} HTTP/1.1
Host: api.one-record.fr
Authorization: Bearer JWT
Accept: */*
{
"code": "AD",
"name": "text",
"code3": "text",
"codeNumeric": "text",
"region": "Europe",
"createdAt": null,
"updatedAt": null
}
Last updated