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)
API Key obtained from data.gov.in
Whether to API show key in messages
Success/Failure of API key validation
if (FALSE) {
register_api_key(api_key=xxx,show_key=FALSE)
}