Agriculture

Agriculture Statistics

Crop and livestock statistics of one commodity since 2000: production, value of production, yield, area planted and harvested, prices received by farmers and inventories, for the US, a state or a county. view=series gives the values over time, view=ranking ranks the states (or the counties of a state) on one statistic and period, and view=list shows which statistics exist.

Before the first data load the answer has note: "Data is being prepared". An unknown commodity answers 404.

get/agriculture/stats

Request

  • Base URL: https://api.dataporium.io
  • URL: https://api.dataporium.io/agriculture/stats
  • Auth: API key in query parameter apikey

Query parameters

commoditystring required

corn, soybeans, wheat, cotton, rice, sorghum, barley, oats, hay, peanuts, sugar_beets, potatoes, cattle or hogs

viewstring

series (default), ranking or list

statisticstring

production, production_value, yield, area_planted, area_harvested, price_received or inventory

itemstring

all (default) or a class such as winter, upland or beef_cows

unitstring

Unit, for example bu, bu_per_acre, acres, usd_per_bu, head (default: the main unit)

frequencystring

annual, marketing_year, monthly or point

statestring

US state code or name (series: that state; ranking: its counties)

county_fipsstring

5-digit county code (series)

levelstring

Ranking: state (default) or county

periodstring

Ranking: the year (YYYY) or day (YYYY-MM-DD)

fromstring

First period: YYYY, YYYY-MM or YYYY-MM-DD

tostring

Last period: YYYY, YYYY-MM or YYYY-MM-DD

limitinteger

Values (series, up to 5000) or rows (ranking, up to 1000) per page

offsetinteger

Values or rows to skip, for paging

Response

Successful response (JSON).

object required

Changes

No recorded changes to this operation across all 1 revision of this API.