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