The region to search for
Optional
The options
The fields to keep in the response
The matching countries
Search among the countries by their region
const countries = await searchByRegion('europe');const countries = await searchByRegion('europe', { fields: ['name', 'capital'] }); Copy
const countries = await searchByRegion('europe');const countries = await searchByRegion('europe', { fields: ['name', 'capital'] });
The region to search for