USAspending.gov Federal Agency Spending Scraper avatar

USAspending.gov Federal Agency Spending Scraper

Pricing

from $2.09 / 1,000 usaspending records

Go to Apify Store
USAspending.gov Federal Agency Spending Scraper

USAspending.gov Federal Agency Spending Scraper

Extract US federal spending, agency budgets, and procurement records from USAspending.gov API as structured JSON dataset rows. Not affiliated with USAspending.gov API.

Pricing

from $2.09 / 1,000 usaspending records

Rating

0.0

(0)

Developer

PlainKit bin

PlainKit bin

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

20 hours ago

Last modified

Features

Limited permissions

Share

Introduction

The USAspending.gov Federal Agency Spending Scraper delivers clean tabular federal spending data from api.usaspending.gov directly to your data pipelines. Procurement analysts, government contracting researchers, public policy researchers, civic developers, and automated software agents require dependable access to US federal contract outlays, agency obligations, and budgetary numbers without navigating complex bulk archives or fragmented interfaces. Each run queries the USAspending.gov API to fetch structured records detailing agency identifiers, toptier codes, agency abbreviations, obligated amounts, budget authority numbers, outlay amounts, fiscal year tracking, and links to congressional justifications.

This Actor is an independent utility and is not affiliated with USAspending.gov API.

Tutorial

Getting started with the USAspending API Scraper is straightforward:

  1. Specify an optional search keyword such as an agency name, acronym, or code (for example HHS, Treasury, or Defense).
  2. Choose a sorting metric such as obligated_amount, budget_authority_amount, outlay_amount, or percentage_of_total_budget_authority.
  3. Set the sort direction to desc (descending) or asc (ascending) according to your research objectives.
  4. Set the maximum number of items to retrieve (max_items, from 1 to 1000).
  5. Run the Actor on the Apify platform or trigger it via API, automated workflows, or scheduled tasks.
  6. Export the resulting dataset in your preferred format (JSON, CSV, Excel, or Parquet).

Pricing

This Actor operates on the Apify Pay-Per-Event model. You are charged only for successfully delivered dataset records:

  • Event name: gov-contract
  • Pricing tier breakdown:
    • FREE subscription tier: $0.003 per delivered row
    • BRONZE subscription tier: $0.0027 per delivered row
    • SILVER subscription tier: $0.0024 per delivered row
    • GOLD subscription tier: $0.00209 per delivered row
    • PLATINUM subscription tier: $0.00209 per delivered row
    • DIAMOND subscription tier: $0.002 per delivered row

Each agency record is pushed first to the output dataset and charged immediately after a successful push. A refused charge stops execution and that record remains delivered and uncharged. A reached spending limit halts processing after that record is charged. Failed requests or connection errors produce zero charges and push no data. If the platform restarts or resumes a run, restart safety ensures that previously delivered records are recognized and never pushed or charged twice.

Input and output examples

Input Parameters

FieldTypeDescriptionDefaultPrefill
searchStringFilter by agency name, abbreviation, or slug keyword (case-insensitive).""""
sortString (select)Metric used to sort spending records (obligated_amount, budget_authority_amount, etc.).obligated_amountobligated_amount
orderString (select)Sorting direction: descending (desc) or ascending (asc).descdesc
max_itemsInteger (1-1000)Maximum total number of agency spending records to output.105

Sample Input

{
"search": "Health",
"sort": "obligated_amount",
"order": "desc",
"max_items": 5
}

Sample Output Record

Each delivered record adheres to the following unified schema:

{
"abbreviation": "HHS",
"active_fq": "4",
"active_fy": "2026",
"agency_id": 806,
"agency_name": "Department of Health and Human Services",
"agency_slug": "department-of-health-and-human-services",
"budget_authority_amount": 3524332883053.65,
"congressional_justification_url": "https://www.hhs.gov/cj",
"current_total_budget_authority_amount": 14142952299307.62,
"obligated_amount": 3178504574728.37,
"outlay_amount": 2954915382244.14,
"percentage_of_total_budget_authority": 0.24919357772465844,
"toptier_code": "075"
}

Actor recommendations

For teams monitoring public government spending, integrating multiple specialized scrapers provides comprehensive transparency:

  • Pair with AusTender Contracts Scraper for Australian public procurement oversight.
  • Connect with SEC Filings Scraper to cross-reference corporate government contractors with public disclosures.
  • Feed structured datasets into analytics pipelines and AI agents for automated procurement intelligence and compliance reporting.

FAQ and support

  • Where does this data originate? Data is retrieved from the public USAspending.gov API endpoints operated by the US Department of the Treasury.
  • Is an API key required? No API key or user authentication is required. The Actor connects directly to public endpoints with bounded polite rates.
  • How are rate limits managed? Requests are throttled with polite spacing and bounded exponential backoff retries. If the upstream API returns HTTP 401, 403, or 429, the run finishes gracefully with a single uncharged status notice.
  • How do I get assistance? For questions, feature requests, or technical support, please contact support@example.com or submit feedback through the Apify platform console.