Using the API index name you got from the API Search/Discovery functions or from the API list available on data.gov.in, get the data in a convenient way parsed into a an R-friendly data frame.
Index name of the API
Integer number of results to get per request ; "all" would get all the results
A named character vector of field id (not the name) - value(s) pairs ; can take multiple fields as well as multiple comma separated values
A character vector of fields required in the final data frame
A character vector of fields to sort by in the final data frame
data.frame containing the queried data
if (FALSE) {
register_api_key("api_key")
request_data<-get_api_data(api_index="3b01bcb8-0b14-4abf-b6f2-c1bfd384ba69",
results_per_req=10,filter_by=c(state="Punjab,Haryana",
district="Amritsar,Ludhiana"),
field_select=c('state','district','city'),
sort_by=c('state','district','city'))
}