Skip to main content

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.commodity.psd_data()
# Get the current Corn World Trade table from the PDS report.
obb.commodity.psd_data(report_id='corn_world_trade')
# Get all attributes for Coffee globally, for a single year.
obb.commodity.psd_data(commodity='coffee', start_year=2025, end_year=2025)
# Compare Brazil coffee exports versus the world from 2010 to present.
obb.commodity.psd_data(commodity='coffee', country='brazil', attribute='exports', aggregate_regions=True, start_year=2010)
# Get historical production of corn in the US from 2020.
obb.commodity.psd_data(commodity='corn', country='united_states', attribute='production', start_year=2020)
# Get regional aggregates for wheat beginning and ending stocks from 2020.
obb.commodity.psd_data(commodity='wheat', country='world', attribute='beginning_stocks,ending_stocks', aggregate_regions=True, start_year=2020)

Parameters


Returns

results: CommodityPsdData

Serializable results.

provider: Optional[Literal['government_us']]

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.