GET /countrydata/search
Søk i land etter navn med fuzzy-matching. Returnerer fullstendige landsprofiler for hvert treff, inkludert hovedstad, befolkning, region, språk og valuta. Nyttig for å bygge autofullfør-landssøkefelt og stedvelgere der brukere kan skrive delvise eller omtrentlige landsnavn.
q
påkrevd
Search query
| Navn | Påkrevd | Standard | Beskrivelse |
|---|---|---|---|
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"
HTTP 502: {
"error": "This API version has been deprecated. Please visit https://restcountries.com/docs/countries/legacy-api-deprecation to migrate to our new version (v5).",
"success": false
}