Hi gents,
Hope you all having a good start of Summer.
I am wondering if someone could help me on the following.
I am trying to retrieve data from this website and automate it to download it monthly on an excel sheet.
Website: USDA/NASS QuickStats Ad-hoc Query Tool
I am trying to get the:
- PROGRAM: SURVEY
- SECTOR: ANIMALS&PRODUCTS
- GROUP: LIVESTOCK
- COMMODITY: HOGS
- CATEGORY: INVENTORY
- DATA ITEM: HOGS - INVENTORY
- GEOGRAPHIC: NATIONAL
- YEAR: 2017-2022
- PERIOD: ANNUAL
I would like to know how this can be done in order not to have to choose every category each time, so I just plug the API and code in R, and it downloads automatically.
Thank you so much.
M