GET /name/{name}

restcountries.com:rest-countries-api

Summary: Search countries by name
Operation ID: getCountryByName
Auth: none

Search for countries by their common or official name. Supports partial name matching - searching for "germany" matches "Germany". Returns an array even for exact matches. This is the fuzzy search endpoint - use it when you know approximately what a country is called but might not have the exact common name. Results include all country data fields.

Original spec description

Search for countries by their common or official name. Partial matches are returned by default.

Usage Tips

- Search is case-insensitive - Partial matches work: "united" returns United States, United Kingdom, United Arab Emirates - Returns array even for single match - Search with spaces works: "united states" returns USA

Parameters (3)

fields (string, query, optional)

Comma-separated list of fields to include (max 10 fields)

fullText (boolean, query, optional)

If true, only returns exact name matches

name (string, path, required)

Country common or official name (case insensitive)

Examples (5)

TitleTypeURLAction
Search by country name openapi-spec https://restcountries.com/v3.1/name/germany?fields=name,capital,population
Search by name openapi-spec https://restcountries.com/v3.1/name/Germany
Search countries by name openapi-spec https://restcountries.com/v3/name/germany?fields=name,capital,population
Search countries by name openapi-spec https://restcountries.com/v3.1/name/germany?fullText=True&fields=name,capital,population
Search countries by name probe-gate https://restcountries.com/v3.1/name/germany?fullText=True&fields=name%2Ccapital%2Cpopulation

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-03-23 10:52:17.949142 200 326ms
2026-03-23 10:31:59.922775 200 313ms
2026-03-23 09:20:07.415511 200 321ms
2026-03-23 09:16:28.833789 200 325ms
2026-03-23 09:13:27.412679 200 320ms
2026-03-20T02:21:05.868280 200 357ms

Response Changes

WhenOldNew
2026-03-23 09:13:27.412679 9cf7eaea76d3 ce04c6067285
2026-03-23 09:16:28.833789 ce04c6067285 9cf7eaea76d3
2026-03-23 09:20:07.415511 9cf7eaea76d3 09eaa1a80914
2026-03-23 10:31:59.922775 09eaa1a80914 9cf7eaea76d3