GET /countrydata/search
Durchsuchen Sie countries by name with fuzzy matching. Liefert full country profiles for each match, einschließlich capital, population, region, languages, und currency. Nützlich für building autocomplete country search fields und location pickers where users might type partial oder approximate country names.
q
erforderlich
Search query
| Name | Erforderlich | Standard | Beschreibung |
|---|---|---|---|
q |
Ja | - | Search query |
curl "https://nordapi.ee/api/v1/countrydata/search?q=norway"
curl "https://nordapi.ee/api/v1/countrydata/search?q=norway"
curl "https://nordapi.ee/api/v1/countrydata/search?q=united"
curl "https://nordapi.ee/api/v1/countrydata/search?q=island"
{
"count": 1,
"data": [
{
"area_km2": 386224.0,
"borders": [
"FIN",
"SWE",
"RUS"
],
"capital": "Oslo",
"code": "NO",
"code_alpha3": "NOR",
"continents": [
"Europe"
],
"currencies": {
"NOK": {
"name": "Norwegian krone",
"symbol": "kr"
}
},
"drives_on": "right",
"flag_png": "https://flagcdn.com/w320/no.png",
"flag_svg": "https://flagcdn.com/no.svg",
"languages": {
"nno": "Norwegian Nynorsk",
"nob": "Norwegian Bokmål",
"smi": "Sami"
},
"latitude": 62.0,
"longitude": 10.0,
"name": "Norway",
"official_name": "Kingdom of Norway",
"population": 5606944,
"region": "Europe",
"start_of_week": "monday",
"subregion": "Northern Europe",
"timezones": [
"UTC+01:00"
]
}
],
"success": true
}