ParseForge Scrapers

USAspending Loans Scraper

parseforge/usaspending-loans-scraper

OtherLead generation

Scrapes federal loan records from USAspending.gov by recipient name, awarding agency, or fiscal year. Returns each loan as a flat row with amount, recipient, agency, and program details. Export to CSV, JSON, Excel, or XML.

Run this scraper See the API call
Total users
4
Monthly active
1
Total runs
101
Bookmarked
0
Rating
Not rated yet
Last modified
12 days ago

Overview

ParseForge

USAspending Loans Scraper

Scrape federal loan records from USAspending.gov by recipient, agency, or fiscal year, up to a million per run. Each loan comes with its amount, recipient, agency, and program details. No API key or login. Export to CSV, JSON, Excel, or XML.

USAspending.gov is the official open data source for federal spending, but its website and API are built for browsing, not bulk analysis. This Actor reads the public loan records directly, filtered by recipient name, awarding agency, or fiscal year, and returns each match in one fixed schema.

Who uses it What they scrape USAspending.gov for
Government contractors Which agencies are issuing loans to their competitors
Financial analysts The volume and terms of federal credit programs
Journalists Which companies received federal loans in a given year
Researchers Loan-level data for economic studies
Nonprofits Federal loan activity in their sector

What it does

This Actor collects federal loan records from USAspending.gov based on recipient name, awarding agency, or fiscal year, and returns each loan as a flat row.

  • ๐Ÿ” Recipient search: filter by a company or individual name keyword.
  • ๐Ÿ›๏ธ Agency filter: narrow to a top-level awarding agency.
  • ๐Ÿ“… Fiscal year: select any year from 2008 to 2030.
  • ๐Ÿ“Š Bulk export: collect up to 1,000,000 loans per run.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with USAspending.gov data

๐Ÿ“ˆ Track federal credit programs.

A financial analyst runs the Actor for a fiscal year and agency to see the total loan volume and top recipients.

๐Ÿ”Ž Investigate loan recipients.

A journalist searches a company name to find all federal loans awarded to that entity.

๐Ÿ“Š Build a loan database.

A researcher collects all loans for multiple years and exports them to CSV for statistical analysis.

๐Ÿ›๏ธ Monitor agency lending.

A government contractor filters by agency to see which competitors received loans from that agency.

Why choose this scraper

What you get
No API key Reads public USAspending.gov data directly
Fixed schema Every loan returns the same flat fields
Bulk collection Up to 1,000,000 loans per run
Flexible filters Recipient, agency, and fiscal year

How it compares

This Actor focuses specifically on federal loans, while the competitors below cover contracts and grants more broadly.

Feature ParseForge USAspending Contracts Intelligence - Federal Data USAspending Scraper - Federal Contract Data & Grants API USASpending Scraper - Federal Contracts & Grants Data
Loan-specific filtering Yes Not listed Yes Not listed
Recipient name search Yes Not listed Yes Not listed
Agency filter Yes Not listed Yes Not listed
Fiscal year filter Yes Not listed Not listed Not listed
Bulk export up to 1M records Yes Not listed Not listed Not listed
AI opportunity analysis Not listed Yes Not listed Not listed

Configure the run

Drive the Actor with a recipient name keyword, an awarding agency, and a fiscal year, alone or together, and set a maximum number of loans to collect. The Input tab lists every parameter.

A first run with the defaults:

{
 "maxItems": 10
}

A larger pull:

{
 "maxItems": 200
}

Pricing

Pay-per-result: $0.021 per result collected. You pay only for the results written to your dataset.

Results collected Approximate cost
100 results $2.10
1,000 results $21.00
10,000 results $210.00

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the USAspending Loans Scraper.
  3. Set your inputs and any filters, then click Start.
  4. Export the results as CSV, Excel, JSON, or XML from the Dataset tab.

Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

Give an AI agent live access to USAspending.gov through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/usaspending-loans-scraper"

Then prompt it in plain language to run the scraper and read back the results.

Troubleshooting

Why am I getting no results?

Check your filters. The recipientSearch and agency inputs are keyword filters, so try a broader term. Also ensure the fiscalYear is within 2008-2030.

Why did the run stop before reaching maxItems?

The Actor stops when there are no more matching loans. Try removing or broadening your filters.

Why is the run slow?

Collecting a large number of loans takes time. Reduce maxItems or narrow your filters.

Why are some fields empty?

Not all loans have every field populated on USAspending.gov. Empty fields mean the data was not available for that loan.

FAQ

Question Answer
Do I need an API key for USAspending.gov? No. This Actor reads the public data directly from USAspending.gov without requiring an API key or login.
What loan data does this Actor return? It returns federal loan records from USAspending.gov, including recipient name, loan amount, awarding agency, fiscal year, and other fields available in the public data.
Can I filter by recipient name? Yes. Use the recipientSearch input to filter by a keyword in the recipient name.
Can I filter by awarding agency? Yes. Use the agency input to filter by a top-level agency keyword.
Can I filter by fiscal year? Yes. Use the fiscalYear input to select a year from 2008 to 2030.
How many loans can I collect in one run? You can set maxItems up to 1,000,000 loans per run.
What export formats are supported? You can export the results to CSV, JSON, Excel, or XML.
Is this an official USAspending.gov API? No, this is an unofficial scraper that reads the public website data. It is not affiliated with or endorsed by the U.S. government.
Does this Actor include grants and contracts? No, this Actor focuses on federal loans. For grants and contracts, see other USAspending scrapers on Apify.
Can I run this Actor on a schedule? Yes, you can schedule runs on Apify to collect new loan data automatically.

Related actors

Browse the full ParseForge collection for more scrapers.

๐Ÿ†˜ Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.

โš ๏ธ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by U.S. Department of the Treasury. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

Input

FieldTypeWhat it doesDefault
maxItems integer How many loans to collect per run. 10
recipientSearch string Filter by recipient name keyword not set
fiscalYear integer Fiscal year (2008-2030) not set
agency string Top-level agency keyword filter not set

Pricing

from $19.00 per 1,000 results

Charged forWhat it isPrice each
result Single result in the default dataset. $0.019 to $0.021

Tiered: the lower figure is the price on a higher Apify plan. Billing and the free credit live on Apify.

API

One POST returns the dataset directly. Same shape for every scraper in the library, so swapping the slug is the only change.

POST ยท run and get results
curl -X POST "https://api.apify.com/v2/acts/parseforge~usaspending-loans-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "helloWorld": 123
  }'

Examples

Input that runs as-is.

input.json
{
  "helloWorld": 123
}

Reviews

No reviews yet. Be the first.

Issues

We build and maintain this scraper, so a problem with it comes to us. Report it on the Apify listing and the thread stays attached to the scraper where the next person can find it: open an issue.

Broken and urgent, or you would rather not post in public? Write to parseforge@protonmail.com and it reaches the people who wrote it.

Related scrapers

Run USAspending Loans Scraper on Apify All scrapers