Government Budget & Spending Notices Scraper avatar

Government Budget & Spending Notices Scraper

Pricing

from $2.00 / 1,000 scraped results

Go to Apify Store
Government Budget & Spending Notices Scraper

Government Budget & Spending Notices Scraper

government awards and returns useful information such as Award ID, Recipient, Amount, Date, Description, and Award Link.

Pricing

from $2.00 / 1,000 scraped results

Rating

0.0

(0)

Developer

Data Pilot

Data Pilot

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

8 days ago

Last modified

Share

๐Ÿ’ฐ Government Budget & Spending Notices Scraper is a powerful Apify Actor designed to discover, track, and collect federal award data directly from USASpending.gov's own public API. This tool provides comprehensive Government Budget & Spending intelligence including award ID, recipient/title, award amount, start date, and a direct link to the official award record for any keyword. Whether you're building a public spending dashboard, tracking federal award trends, or conducting government transparency research, the Government Budget & Spending Notices Scraper delivers actionable Government Budget & Spending insights efficiently.

With grouped award-type querying, direct JSON API access, resilient error handling, and reliable Apify Dataset delivery, the Government Budget & Spending Notices Scraper ensures comprehensive Government Budget & Spending coverage across both contracts and grants/assistance award types. It focuses on key Government Budget & Spending signals including award amount, recipient, and award date, making it an essential tool for public spending research and transparency intelligence.


๐Ÿ“‹ Table of Contents


๐Ÿ”ฅ Features

  • Direct API Access โ€“ Queries USASpending.gov's official spending_by_award API directly for fast, structured Government Budget & Spending data.
  • Dual Award-Type Coverage โ€“ Searches both contracts (types Aโ€“D) and grants/assistance (types 02โ€“05) in a single run.
  • Keyword-Based Search โ€“ Scans Government Budget & Spending records for any keyword across a configurable multi-year time period.
  • Amount-Sorted Results โ€“ Returns results sorted by award amount, descending, so the largest awards surface first.
  • Direct Award Links โ€“ Builds a clickable link to the official USASpending.gov award record for every result.
  • Residential Proxy Support โ€“ Optional Apify proxy for reliable Government Budget & Spending API access.
  • Configurable Result Cap โ€“ Control how many records are pulled per award-type group.
  • Real-Time Dataset Push โ€“ Pushes all collected Government Budget & Spending records to Apify Dataset in a single batch.
  • Graceful Error Handling โ€“ Logs HTTP, validation, and JSON parsing errors per group without stopping the whole run.

๐Ÿ“Š Data Source

USASpending.gov Public API

  • Authority: The official U.S. government spending transparency API (api.usaspending.gov)
  • Access Method: Direct async HTTP POST requests via httpx
  • Coverage: Any publicly listed Government Budget & Spending award โ€” contracts and grants/assistance โ€” matching the given keyword
  • Data: Structured JSON award records covering fiscal years 2020โ€“2026 by default
  • Access: Public API, no API key required
  • Update Frequency: Reflects USASpending.gov's current published award data at time of run

โš™๏ธ How It Works

The Government Budget & Spending Notices Scraper accepts a search keyword and queries USASpending.gov's spending_by_award API twice โ€” once for contract award types and once for grant/assistance award types โ€” so both major categories of federal spending are covered. Each query requests the top results sorted by award amount in descending order, within a fixed 2020โ€“2026 time window. The Actor parses each result into a clean record containing the award ID, a title (description or recipient name), amount, start date, and a direct link to the award's USASpending.gov page. Every successfully parsed Government Budget & Spending record is collected and pushed to the Apify Dataset in a single batch at the end of the run.

Key Processing Steps:

  1. Input Parsing โ€“ Accept a search keyword, max results per group, and proxy setting
  2. Proxy Setup โ€“ Configure Apify proxy for the HTTP client, if enabled
  3. Award-Type Group Loop โ€“ Iterate through contracts and grants/assistance type groups
  4. API Request โ€“ POST a search query to USASpending.gov's spending_by_award endpoint
  5. Error Handling โ€“ Catch and log HTTP, validation, and JSON parsing errors per group
  6. Result Parsing โ€“ Extract award ID, title, amount, date, and build the award link
  7. Group Aggregation โ€“ Combine results from both award-type groups into one list
  8. Dataset Push โ€“ Push all collected records from the run in a single batch

Key Benefits:

  • Pull Government Budget & Spending award data for any keyword without manual searching
  • Cover both contracts and grants/assistance in a single run
  • Surface the largest federal awards first with amount-based sorting
  • Feed public spending dashboards, journalism research, or transparency tools
  • Automate recurring Government Budget & Spending checks as new awards are published

๐Ÿ“ฅ Input

The Actor accepts the following input parameters:

FieldTypeDefaultDescription
keywordstring(required)Search term to scan for matching Government Budget & Spending awards.
max_resultsinteger50Maximum number of records to request per award-type group.
useApifyProxybooleantrueEnable Apify proxy for the API requests.

Example Input:

{
"keyword": "solar energy",
"max_results": 50,
"useApifyProxy": true
}

Search a Single Keyword:

{
"keyword": "rural broadband"
}

Pull a Larger Batch:

{
"keyword": "disaster relief",
"max_results": 100
}

๐Ÿ“ค Output

The Actor pushes Government Budget & Spending records with the following structure:

FieldTypeDescription
doc_idstringThe official Award ID from USASpending.gov
titlestringAward description, or recipient name if no description is available
amountstring/numberTotal award amount as reported by USASpending.gov
linkstringDirect URL to the award's official USASpending.gov page
datestringAward start date

Example Government Budget & Spending Record:

{
"doc_id": "SPE30020D1234",
"title": "Rural Broadband Infrastructure Expansion Grant",
"amount": "18500000",
"link": "https://www.usaspending.gov/award/CONT_AWD_1234567_9700_...",
"date": "2026-03-12"
}

๐Ÿงฐ Technical Stack

  • HTTP Client: httpx (async) for fast, direct requests to USASpending.gov's API
  • Concurrency: asyncio for non-blocking, multi-group querying
  • Data Format: JSON request/response handling for the spending_by_award endpoint
  • Proxy: Apify Proxy (optional), wired into the httpx.AsyncClient
  • Logging: Apify Actor logging system
  • Platform: Apify Actor serverless environment

๐Ÿ“Š Data Fields Explained

Award Identity

  • doc_id: The official Award ID assigned by USASpending.gov
  • title: The award's description, falling back to the recipient name when no description exists

Financial Details

  • amount: The total dollar value of the Government Budget & Spending award
  • date: The award's start date

Access

  • link: Direct link to view the full award record on the official USASpending.gov website

๐ŸŽฏ Use Cases

  • Public Spending Research โ€“ Track how federal money is being awarded for a given keyword or industry
  • Journalism & Transparency โ€“ Source primary award data for government spending stories
  • Competitor Tracking โ€“ Monitor which organizations are winning Government Budget & Spending awards in a sector
  • Nonprofit & Grant Research โ€“ Identify recent grant activity related to a specific cause or region
  • Academic Research โ€“ Study federal spending patterns at scale
  • Market Research โ€“ Gauge government investment trends across industries and time periods

๐Ÿš€ Quick Start

1. Prepare Input

Go to Apify Console and enter:

{
"keyword": "solar energy"
}

2. Run the Actor

Click Start. The Actor will:

  • Query USASpending.gov for matching contract awards
  • Query USASpending.gov for matching grant/assistance awards
  • Parse and combine results from both groups
  • Push all results to the Dataset

3. Monitor Progress

Console shows:

[USASpending] Searching 'solar energy' in contracts...
-> 42 record(s) from contracts.
[USASpending] Searching 'solar energy' in grants_and_assistance...
-> 18 record(s) from grants_and_assistance.
Done! Successfully saved 60 record(s) to Apify Dataset.

4. View & Download Results

  • Results Tab: All Government Budget & Spending records
  • Export: JSON, CSV, Excel, or HTML
  • Filter: By amount or award date
  • API Access: Available via the Apify API

โš™๏ธ Configuration

Single keyword search:

{
"keyword": "rural broadband"
}

Larger batch pull:

{
"keyword": "disaster relief",
"max_results": 100
}

Run without proxy:

{
"keyword": "solar energy",
"useApifyProxy": false
}

๐Ÿ“ˆ Performance

Processing Speed

  • Two API requests per run โ€” one for contracts, one for grants/assistance
  • No browser rendering required, so requests complete quickly
  • Response time depends primarily on USASpending.gov's own API latency

Resource Usage

  • Memory: Low, since only lightweight JSON requests are made
  • Network: Two POST requests per run, regardless of keyword result volume
  • Proxy: One shared Apify proxy connection across both requests, if enabled

โš ๏ธ Important Notes

  • Fair Use: Uses USASpending.gov's official public API as intended
  • Public Data Only: Retrieves only publicly published Government Budget & Spending award data
  • Legal: Not legal advice โ€” consult qualified professionals before using this data for compliance-sensitive decisions

Data Quality

  • Freshness: Reflects USASpending.gov's currently published data at time of run
  • Completeness: Fixed to a 2020โ€“2026 time window by default; results depend on what has been reported to USASpending.gov
  • Accuracy: Sourced directly from the official U.S. government spending transparency API
  • Verification: Cross-check high-stakes figures against the live USASpending.gov website

Best Practices

  • Use specific keywords to keep result sets relevant and manageable
  • Increase max_results if you need deeper coverage per award-type group
  • Re-run periodically to catch newly published awards
  • Expect occasional 422 validation errors to be logged and skipped rather than stopping the run
  • Combine with agency- or NAICS-specific research tools for a fuller Government Budget & Spending picture

Terms of Use:

  • Use for legitimate research, journalism, and transparency purposes
  • Respect USASpending.gov's Terms of Use
  • Use Government Budget & Spending data responsibly and in compliance with applicable laws

Disclaimer: Government Budget & Spending Notices Scraper is provided as-is for research and analytics purposes. Users are responsible for compliance with USASpending.gov's terms and all applicable laws. This is not legal advice.


โš–๏ธ Government Budget & Spending Excellence

This Actor is optimized for Government Budget & Spending research with:

  • โœ… Direct, official API access โ€” no scraping fragility
  • โœ… Dual coverage of contracts and grants/assistance
  • โœ… Amount-sorted results for fast prioritization
  • โœ… Resilient per-group error handling
  • โœ… Real-time Dataset push
  • โœ… Production-ready code