API Limit
NamePrism added a limit of 50 API request per day instead of 1000 request per hours. The package is sort of hard to use with this limit, but it can be circumvented by asking NamePrism to be whitelisted/get an API token. Would it be possible to add a function that lets you input a custom API key/token, similar to how it's done in the get_gender function?
A very simple (temporary) solution is to edit in your token/api with trace().
trace("get_ethnicities", edit=TRUE) And then change http://www.name-prism.com/api_eth/ to http://www.name-prism.com/api_token/eth/csv/[Your-API-Token]/. If you want nationality, do the same with trace("get_nationalities", edit=TRUE), but use http://www.name-prism.com/api_token/nat/csv/[Your-API-Token]/ instead.
It's not very elegant, but it's a way to circumvent the API limit if the package isn't updated.
Hi, the package has been updated, so now you can use your Name-Prism API access token as a parameter of the get_ethnicities and get_nationalities functions. The anonymous API seems to be disabled, so you must get your own token.