GET /countrydata/search
Search countries by name with fuzzy matching. Returns full country profiles for each match, including capital, population, region, languages, and currency. Useful for building autocomplete country search fields and location pickers where users might type partial or approximate country names.
q
required
Search query
| Name | Required | Default | Description |
|---|---|---|---|
q |
Yes | - | 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 the https://restcountries.com/docs/legacy-api-deprecation to migrate to our new version (v5).",
"success": false
}