Skip to content

Instantly share code, notes, and snippets.

@rruntsch
rruntsch / c_usda_quick_stats.py
Created March 31, 2022 09:49
Demonstration Python program to request agricultural data with the USDA's Quick Stats API.
# Name: c_usda_quick_stats.py
# Author: Randy Runtsch
# Date: March 29, 2022
# Project: Query USDA QuickStats API
# Author: Randall P. Runtsch
#
# Description: Query the USDA QuickStats api_GET API with a specified set of
# parameters. Write the retrieved data, in CSV format, to a file.
#
# See Quick Stats (NASS) API user guide: https://quickstats.nass.usda.gov/api