Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to apply filter to get specified data from data.gov.in api?

Tags:

java

json

rest

I am trying to use data.gov.in api in order to get the air traffic data for my area.

I am using this.

I want to know how to apply the filter and get specified city data (e.g. Noida).

like image 376
Sachin Goyal Avatar asked Dec 13 '25 08:12

Sachin Goyal


1 Answers

I have used filters in different API like below to pass in querystring, &filters[state]=Gujarat&filters[district]=Banaskanth

It works perfectly.

Example: https://api.data.gov.in/resource/9ef84268-d588-465a-a308-a864a43d0070?api-key=579b464db66ec23bXXXXXXXXXXXXXXXXX40c1435e88575ea73c1b&format=json&state=Gujarat&offset=0&limit=20&filters[state]=Gujarat&filters[district]=Banaskanth

like image 97
techkrg Avatar answered Dec 15 '25 22:12

techkrg