Filter UN/LOCODEs.
Sample request:
GET /unlocodes?code=AU&offset=0&limit=10
or
GET /unlocodes?code=FRACO,FRAXV
If you want to search for multiple values for a given parameter, enter :
param=val1,val2
For example, the query shown above would return the UN/LOCODEs that have a code of FRACO
or FRAXV
.
Query parameters
-
Search characters.
Default value is empty.
-
UN/LOCODE country.
Default value is empty.
-
UN/LOCODE name.
Default value is empty.
-
UN/LOCODE subdivision.
Default value is empty.
-
UN/LOCODE coordinates.
Default value is empty.
-
Boolean that indicates the sort order. If it is set to true, results will be sorted by descending order.
Default value is
false
. -
Index of the first returned result.
Default value is
0
. -
Number of results to be returned. Max value is 10.
Default value is
10
.
GET
/unlocodes
curl \
-X GET https://soget-api-integration.azure-api.net/api-referential-list/v1/unlocodes \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Ocp-Apim-Subscription-Key: $API_KEY"
Response examples (200)
{
"total": 11,
"first": 3,
"items": [
{
"code": "UGMUK",
"country": "UG",
"name": "Mukono",
"subdivision": "108",
"coordinates": "0021N 03245E"
}
]
}
Response examples (400)
{
"status": "400",
"timestamp": "2022-10-18T14:53:52.239Z",
"code": "R001",
"message": "Information not found."
}