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