Scrapes the API websites to retrieve an updated list of supported countries for each API.

supported_countries(type)

Arguments

type

Obligatory parameter to define the API from which to obtain the supported countries. Must be one of the following character strings:

  • genderize - Available countries for the Genderize.io API.

  • agify - Available countries for the Agify.io API.

  • nationalize - Available countries for the Nationalize.io API.

Value

Returns a data.frame with the supported ISO 3166-1 alpha-2 country code, country name the number of items (names) for each country.

Warning

Please be conscious that this function directly scrapes the website, do not overuse it as it might overwhelm the server.

Examples

if (FALSE) { supported_countries(type="genderize") }