AnswerBun.com

How to access data from catalog.data.gov using API's?

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)

Add your own answers!

Related Questions

Open API for SEC data?

12  Asked on January 4, 2022

     

OpenFDA Covid19 Serology Tests missing manufacturer?

1  Asked on January 2, 2022 by maksim-grinman

 

xbox achievement / trophy statistics?

0  Asked on December 12, 2021

 

How to access data from catalog.data.gov using API’s?

0  Asked on December 2, 2021 by shishir-kumar

     

Index in Google Trends

1  Asked on November 20, 2021 by pedro-stallone

 

Financial Corpus

1  Asked on November 20, 2021 by tomi-sargiotto

       

(Serious) Dataset of paedophilic Youtube comments (or similar)?

1  Asked on November 13, 2021 by guillermo-mosse

     

Looking for a motorcycle database

2  Asked on September 30, 2021 by patrick-lamatiere

     

3D brain tumor datasets for classification

1  Asked on September 30, 2021 by hela-yahyaoui

 

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP