Obtain an API key from data.gov.in by registering on the platform. You can find it on your "My Account" page after logging in. Here is the official guide for your reference https://data.gov.in/help/how-use-datasets-apis

register_api_key(user_api_key, show_key = TRUE)

Arguments

user_api_key

API Key obtained from data.gov.in

show_key

Whether to API show key in messages

Value

Success/Failure of API key validation

Examples

if (FALSE) {
register_api_key(api_key=xxx,show_key=FALSE)
}