Federal Spending Forensic API icon

Federal Spending Forensic API

Forensic federal spending intelligence - Uncover the $195B USASpending blind spot

Search Contracts

AI-generated

Summary

Search federal contract awards via the Federal Spending Forensic API.

Inputs

  • agency — Filter by federal agency. Defaults to 'all'. Options include all cabinet-level departments and GSA.
  • fiscalYear — isPlay: false,
  • fiscalYear — Federal fiscal year (October 1 - September 30). Defaults to 2025, range 2015-2026.
  • keywords — Search keywords (comma-separated). Defaults to empty string.
  • naicsCode — Filter by federal agency

Output shape

When waitForCompletion is true, returns an array of contract award items each merged with metadata _operation, _runId, _datasetId. When false, returns a single item { success: true, status: 'RUNNING', runId, datasetId, operation, message } indicating the run was started.

The operation searches federal contract awards with filters for agency, fiscal year, keywords, and NAICS code. It starts an Apify actor run and optionally waits for completion before returning results from the dataset.

Examples

Example 1: Search contracts with agency filter and wait for completion

Agency: All Agencies (default), Fiscal Year: 2024, Max Results: 50, Wait for Completion: true, Keywords: (empty), NAICS Code: (empty)

Example 2: Search contracts without waiting for completion

Agency: All Agencies (default), Fiscal Year: 2024, Max Results: 50, Wait for Completion: false - returns immediately with runId and datasetId for later status checking

Links

Discussion