Skip to main content
Version: v5

psd_data

Get data tables and historical time series from the USDA FAS Production, Supply, and Distribution (PSD) Reports.

Examples​

from openbb import obb
# Get the World Crop Production Summary table.
obb.usda.psd_data(provider='usda')
# Get all attributes for Coffee globally, for a single year.
obb.usda.psd_data(provider='usda', commodity='coffee', start_year=2025, end_year=2025)
# Get historical production of corn in the US from 2020.
obb.usda.psd_data(provider='usda', commodity='corn', country='united_states', attribute='production', start_year=2020)

Parameters​


Returns​

results: CommodityPsdData

Serializable results.

provider: str | None

Provider name.

warnings: Optional[list[Warning_]]

List of warnings.

chart: Optional[Chart]

Chart object.

extra: dict[str, Any]

Extra info.


Data​

region: str | None
Region group category.

country: str | None
Country or area name.

commodity: str | None
Commodity name.

attribute: str | None
Name of the row value.

marketing_year: str | None
Marketing year for the commodity.

value: float | int | None
Value for the commodity attribute in the given marketing year.

unit: str | None
Unit of measurement for the value.