Skip to main content
Version: v5

award_search

Search federal contract and assistance awards from USAspending by agency, recipient, keyword, amount, and date, then drill into any award by its id.

Examples​

from openbb import obb
# Search the largest recent defense contracts.
obb.ustreasury.award_search(award_group='contracts', agency='Department of Defense', provider='us_treasury')
# Find recent grants to a recipient by keyword.
obb.ustreasury.award_search(award_group='grants', recipient='California', keywords='medicaid', provider='us_treasury')

Parameters​


Returns​

results: UsSpendingAwardSearch

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​