Open Data Asked by Shishir Kumar on December 2, 2021
I am new to APIs and am having problems in accessing data from catalog.data.gov. I have successfully used the below code to search my dataset of interest, but can’t figure out how I can fetch the data for the collection “Monthly Traffic Volume Trends”. I am interested in getting all the 154 datasets in this collection. Please guide me through this
import urllib3
from urllib.parse import quote
import json
import pprint
# Make the HTTP request.
http = urllib3.PoolManager()
response = http.request('GET','http://catalog.data.gov/api/3/search/dataset?q="monthly_traffic_volume_trends_may_2002"&rows=10')
# Use the json module to load CKAN's response into a dictionary.
response_dict = json.loads(response.data)
# Check the contents of the response.
result = response_dict['results']
pprint.pprint(result)
7 Asked on January 4, 2022
1 Asked on January 4, 2022 by k-ghazal
1 Asked on January 2, 2022 by maksim-grinman
0 Asked on December 17, 2021 by stan-rhodes
0 Asked on December 2, 2021 by shishir-kumar
1 Asked on November 22, 2021 by tav
1 Asked on November 22, 2021
0 Asked on November 22, 2021 by mikey-wood
1 Asked on November 20, 2021
1 Asked on November 13, 2021 by guillermo-mosse
1 Asked on November 10, 2021 by ksona
1 Asked on September 30, 2021 by mark-jones
2 Asked on September 30, 2021 by patrick-lamatiere
Get help from others!
Recent Questions
Recent Answers
© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP