Skip to the content

Scraper API

USAspending

usaspending.recipientAvailable

US federal award recipient

The recipient: name, Unique Entity ID, level, parent, business types, place, and what it received in the last 12 months.

Give it USAspending's id of a recipient, or a company's name.

1 unit a run, for runs that return data. Runs that fail cost nothing. How units work

Counted
1 unit a run
Inputs
2, 1 required
Record
14 fields
A run takes
up to 5 minutes
Records kept
7 days
Measured
its success, on the status page

POST/v1/scrapers/usaspending.recipient/runs

{
"input": {
"recipient": "b97d19b0-833c-8d8f-3a2c-157d04ea55ef-P"
}
}

sent, and answered

a record of the run14 fields

{
recipient_id: "b97d19b0-833c-8d8f-3a2c-157d04ea55ef-P"
url: "https://www.usaspending.gov/recipient/b97d19b0-833c-8d8f-3a2c-157d04ea…
name: "LOCKHEED MARTIN CORP"
uei: "ZFN2JJXBLZT3"
level: "P"
parent_id: "b97d19b0-833c-8d8f-3a2c-157d04ea55ef-P"
parent_name: "LOCKHEED MARTIN CORP"
business_types: [ "category_business", "corporate_entity_not_tax_exempt", "manufacturer…
city: "BETHESDA"
… 5 more fields

ok1 unit a run

A record this scraper returned for this input. The first 9 of its 14 fields are set down here; the whole record is below.

usaspending.gov
The page US federal award recipient reads, as a browser shows it
The page this scraper reads, photographed in a browser on 23 November 2026. It belongs to its publisher, who has no part in this service.

What it is used for

Profile a federal supplier
Read a company's uei, parent and business_types before you partner with it.
Size its federal income
Follow total_amount and total_transactions over the last 12 months.
Resolve a corporate family
Use parent_id and parent_name to group subsidiaries under one owner.

What you send

USAspending's id of a recipient, or a company's name. These are its 2 inputs, as its schema has them.

recipientstring Required
The recipient's id from USAspending, or a company's name.
max_resultsinteger Optional
For a name: how many of the matches, largest first, to read in full, up to 10.Default 3

A request, ready to send

It starts a run with the input shown at the top of this page, waits up to 60 seconds for it, and reads its records. Put your key in the variable it reads.

# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/usaspending.recipient/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"recipient":"b97d19b0-833c-8d8f-3a2c-157d04ea55ef-P"}}'

# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
from enrichednow import EnrichedNow

client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY

# Start a run, wait for it to end, and get its records
result = client.scrape("usaspending.recipient", {
    "recipient": "b97d19b0-833c-8d8f-3a2c-157d04ea55ef-P",
})
print(result.run.id, result.run.status, result.run.record_count)

# Read its records: pages are fetched as you go
for record in result.records:
    print(record)

Install it with pip install enrichednow, then save as run.py and run python3 run.py

import EnrichedNow from "enrichednow";

const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY

// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("usaspending.recipient", {
  recipient: "b97d19b0-833c-8d8f-3a2c-157d04ea55ef-P",
});
console.log(run.id, run.status, run.record_count);

// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);

Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

package main

import (
	"context"
	"fmt"
	"log"
	"time"

	enrichednow "github.com/enrichednow/enrichednow-go"
)

func main() {
	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
	if err != nil {
		log.Fatal(err)
	}
	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
	defer cancel()

	// Start a run, wait for it to end, and get its records
	run, records, err := client.Scrape(ctx, "usaspending.recipient", map[string]any{"recipient": "b97d19b0-833c-8d8f-3a2c-157d04ea55ef-P"})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(run.ID, run.Status, run.RecordCount)

	// Read its records: pages are fetched as you go
	for records.Next() {
		fmt.Println(string(records.Current()))
	}
	if err := records.Err(); err != nil {
		log.Fatal(err)
	}
}

Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;

public class Run {
    public static void main(String[] args) {
        EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY

        // Start a run, wait for it to end, and get its records
        ScrapeResult result = client.scrape("usaspending.recipient", Map.of("recipient", "b97d19b0-833c-8d8f-3a2c-157d04ea55ef-P"));
        System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());

        // Read its records: pages are fetched as you go
        for (Map<String, Object> record : result.records()) {
            System.out.println(record);
        }
    }
}

Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

enrichednow run usaspending.recipient --input recipient=b97d19b0-833c-8d8f-3a2c-157d04ea55ef-P

Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

What comes back

The recipient: name, Unique Entity ID, level, parent, business types, place, and what it received in the last 12 months. A record has 14 fields. One we could not read is null, never an empty string or a zero.

A record usaspending.recipient returned
{
  "recipient_id": "b97d19b0-833c-8d8f-3a2c-157d04ea55ef-P",
  "url": "https://www.usaspending.gov/recipient/b97d19b0-833c-8d8f-3a2c-157d04ea55ef-P/latest",
  "name": "LOCKHEED MARTIN CORP",
  "uei": "ZFN2JJXBLZT3",
  "level": "P",
  "parent_id": "b97d19b0-833c-8d8f-3a2c-157d04ea55ef-P",
  "parent_name": "LOCKHEED MARTIN CORP",
  "business_types": [
    "category_business",
    "corporate_entity_not_tax_exempt",
    "manufacturer_of_goods"
  ],
  "city": "BETHESDA",
  "state": "MD",
  "country": "UNITED STATES",
  "total_amount": 52446074779.6,
  "total_transactions": 21914,
  "fetched_at": "2026-11-23T23:15:36.523436Z"
}

The scraper returned this record for the input above, reading a saved copy of the page, not the live site.

Values shortened for this page: business_types: 6 items, the first 3 shown.

The fields of a record

recipient_idstring
USAspending's id of the recipient.
urlstring
The recipient's page on usaspending.gov.
namestring
The recipient's name.
ueistring or null
Its Unique Entity ID.
levelstring or null
P a parent, C a child of a parent, R a recipient with no parent.
parent_idstring or null
USAspending's id of its parent.
parent_namestring or null
Its parent's name.
business_typeslist of strings
Its business types, as USAspending lists them.
citystring or null
Its city.
statestring or null
Its state, as two letters.
countrystring or null
Its country.
total_amountnumber or null
What it received in the last 12 months, in US dollars.
total_transactionsinteger or null
How many transactions that was.
fetched_atdatetime
When USAspending was asked, in UTC.

The whole schema, in its reference

Units and limits

Counted per request
Billed per request: a run that returns data costs 1 unit, however many records it returns.
A miss costs nothing
A run that fails, that meets something not supported yet, or that you cancel costs nothing. You pay for runs that return data.
What bounds a run
A run may take up to 5 minutes. Its records are read in pages of up to 1,000 and are kept for 7 days.

What it does not do

  • A name can match several companies: the largest are read first.
  • An id USAspending does not have ends as failed with the reason not_found, and costs nothing.

The bounds its schema sets

max_results
1 to 10; 3 unless you say otherwise

Scraper API pricing: how units workThe five ways a run ends

Questions

What does US federal award recipient return?

The recipient: name, Unique Entity ID, level, parent, business types, place, and what it received in the last 12 months. A record has 14 fields, among them recipient_id, url, name, uei, level and parent_id. A value that could not be read is null, never an empty string or a zero.

What do I send?

USAspending's id of a recipient, or a company's name. The input recipient is required. Optional: max_results.

How is it counted?

Billed per request: a run that returns data costs 1 unit, however many records it returns. A run that fails, that meets something not supported yet, or that you cancel costs nothing. The first 1,000 units each month are free.

How much does one run return?

Its schema sets these bounds: max_results 1 to 10 (3 unless you say otherwise). A run may take up to 5 minutes.

What does it not do?

A name can match several companies: the largest are read first. An id USAspending does not have ends as failed with the reason not_found, and costs nothing.

How long are the records kept, and in what format do they come?

Records are kept for 7 days after the run ended, and read in pages of up to 1,000. They come as JSON, as NDJSON with one record a line, or as CSV with a column for each field.

Can an AI assistant call it?

Yes. Through the EnrichedNow MCP server an assistant calls the tool run_scraper with the scraper_id usaspending.recipient and the same input. It costs what the same API call costs.

Used in this playbook

A playbook runs US federal award recipient as one of its steps and hands back the finished list. Its runs of this scraper cost what they cost here, and the playbook adds nothing.

  • Public sector

    Award Teaming Leads

    Companies that just won government contracts in your field, with what they won, their website and the email they publish.

USAspending

US federal contracts, grants and other awards from USAspending.gov: searches, one award in full, and the companies that receive them.

  • US federal awards search

    usaspending.awards

    Words, a recipient, an agency, a NAICS code, a state or dates. Federal awards: number, recipient, amount, agency, dates, description, NAICS and PSC codes or assistance listing, with the ids that read the award and the recipient in full.

  • US federal award

    usaspending.award

    USAspending's id of an award, or its address. The award in full: amounts and ceiling, dates, agencies and office, recipient and parent, place of performance, NAICS and PSC codes, competition, offers, set-aside, and subawards.

USAspending on the line-up

Run it on an input of your own.

Create an account, make a key, and send the request above with your own input. The first 1,000 units each month are free.