# USAspending Federal Contracts Scraper (`scrapingmonkey/usaspending-federal-contracts-scraper`) Actor

Scrape USAspending Federal Contracts contract records. Search and collect record details. Export available fields to Excel, CSV or JSON.

- **URL**: https://apify.com/scrapingmonkey/usaspending-federal-contracts-scraper.md
- **Developed by:** [ScrapingMonkey](https://apify.com/scrapingmonkey) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

Extract USAspending Federal Contracts contract records for tender discovery, buyer research and procurement monitoring. **USAspending Federal Contracts Scraper** collects public information into one complete dataset table, ready to export as Excel, CSV or JSON.

Use search filters or individual public record links, set how many results you need and start the Actor. Search finds matching records; Details retrieves the available information for records you already know.

| At a glance | Details |
|---|---|
| 📥 Input | Search filters or individual public record links |
| 📋 Collection modes | Search contract records; Get contract details |
| 📤 Output | One row per record, or a failed row for an unsuccessful input |
| 📄 Pagination | Automatic, up to `maxResults` while more records are available |
| 🔐 Website login | Not required |
| 💾 Export | One dataset view with all fields; Excel, CSV and JSON |

### What the USAspending Federal Contracts scraper collects 📋

| Mode | What you receive |
|---|---|
| **Search contract records** | Matching contract records and the fields published in the search results. |
| **Get contract details** | Available public information for each supplied record. The full output example below shows its actual fields. |

The field table and complete examples below show the information this Actor returns. Optional values depend on what the source publishes for the selected record.

Coverage for this Actor:

- Search covers federal contract awards. Grants, loans and other assistance are outside this Actor.

### How to scrape USAspending Federal Contracts 🚀

1. Choose **Search contract records** or **Get contract details**.
2. Complete the search filters or individual public record links.
3. Set **Maximum results**. The minimum is 1.
4. Start the Actor and review the saved dataset.
5. Export the results or connect them to your workflow.

#### Search contract records — input example

```json
{
  "mode": "search",
  "maxResults": 10
}
```

#### Get contract details — input example

```json
{
  "mode": "details",
  "recordUrls": [
    "https://www.usaspending.gov/award/CONT_AWD_HT940216C0001_9700_-NONE-_-NONE-"
  ],
  "maxResults": 1
}
```

`maxResults` limits all saved rows for each search or supplied record, including a failed row. It does not guarantee that the source has that many matching records. A detail lookup normally returns one record, although sources with multiple revisions or establishments can return more.

### USAspending Federal Contracts data fields and complete output 📦

Each result stays in one row. Every returned field appears in the same dataset view, including list fields and additional published facts. Fields unavailable for a particular record remain empty.

| Field | Included data |
|---|---|
| `result_type` | Selected collection mode. |
| `input` | Submitted search settings, record link or record number. |
| `status` | Success or failed outcome. |
| `error_code` | Failure category for an unsuccessful input. |
| `error_message` | Readable explanation for an unsuccessful input. |
| `award_id` | Award id, when published. |
| `recipient_name` | Recipient name, when published. |
| `award_amount` | Award amount, when published. |
| `description` | Description, when published. |
| `awarding_agency` | Awarding agency, when published. |
| `awarding_sub_agency` | Awarding sub agency, when published. |
| `start_date` | Start date, when published. |
| `end_date` | End date, when published. |
| `awarding_agency_id` | Awarding agency id, when published. |
| `agency_slug` | Agency slug, when published. |
| `generated_internal_id` | Generated internal id, when published. |
| `record_id` | Stable identifier for the source record. |
| `url` | Public source link when the website provides one. |
| `additional_fields.name` | Names of additional published fields, when present. |
| `additional_fields.value` | Their corresponding values in the same order. |
| `id` | Id, when published. |
| `generated_unique_award_id` | Generated unique award id, when published. |
| `piid` | Piid, when published. |
| `category` | Category, when published. |
| `type` | Type, when published. |
| `type_description` | Type description, when published. |
| `total_obligation` | Total obligation, when published. |
| `subaward_count` | Subaward count, when published. |
| `total_subaward_amount` | Total subaward amount, when published. |
| `date_signed` | Date signed, when published. |
| `base_exercised_options` | Base exercised options, when published. |
| `base_and_all_options` | Base and all options, when published. |
| `total_account_outlay` | Total account outlay, when published. |
| `total_account_obligation` | Total account obligation, when published. |
| `account_outlays_by_defc.code` | Account outlays by defc / code, when published. |
| `account_outlays_by_defc.amount` | Account outlays by defc / amount, when published. |
| `account_obligations_by_defc.code` | Account obligations by defc / code, when published. |
| `account_obligations_by_defc.amount` | Account obligations by defc / amount, when published. |
| `parent_award` | Parent award, when published. |
| `latest_transaction_contract_data.idv_type_description` | Latest transaction contract data / idv type description, when published. |
| `latest_transaction_contract_data.type_of_idc_description` | Latest transaction contract data / type of idc description, when published. |
| `latest_transaction_contract_data.referenced_idv_agency_iden` | Latest transaction contract data / referenced idv agency iden, when published. |
| `latest_transaction_contract_data.referenced_idv_agency_desc` | Latest transaction contract data / referenced idv agency desc, when published. |
| `latest_transaction_contract_data.solicitation_identifier` | Latest transaction contract data / solicitation identifier, when published. |
| `latest_transaction_contract_data.solicitation_procedures` | Latest transaction contract data / solicitation procedures, when published. |
| `latest_transaction_contract_data.number_of_offers_received` | Latest transaction contract data / number of offers received, when published. |
| `latest_transaction_contract_data.extent_competed` | Latest transaction contract data / extent competed, when published. |
| `latest_transaction_contract_data.type_set_aside` | Latest transaction contract data / type set aside, when published. |
| `latest_transaction_contract_data.type_set_aside_description` | Latest transaction contract data / type set aside description, when published. |
| `latest_transaction_contract_data.evaluated_preference` | Latest transaction contract data / evaluated preference, when published. |
| `latest_transaction_contract_data.fed_biz_opps` | Latest transaction contract data / fed biz opps, when published. |
| `latest_transaction_contract_data.fed_biz_opps_description` | Latest transaction contract data / fed biz opps description, when published. |
| `latest_transaction_contract_data.small_business_competitive` | Latest transaction contract data / small business competitive, when published. |
| `latest_transaction_contract_data.product_or_service_code` | Latest transaction contract data / product or service code, when published. |
| `latest_transaction_contract_data.naics` | Latest transaction contract data / naics, when published. |
| `latest_transaction_contract_data.naics_description` | Latest transaction contract data / naics description, when published. |
| `latest_transaction_contract_data.sea_transportation` | Latest transaction contract data / sea transportation, when published. |
| `latest_transaction_contract_data.clinger_cohen_act_planning` | Latest transaction contract data / clinger cohen act planning, when published. |
| `latest_transaction_contract_data.labor_standards` | Latest transaction contract data / labor standards, when published. |
| `latest_transaction_contract_data.cost_or_pricing_data` | Latest transaction contract data / cost or pricing data, when published. |
| `latest_transaction_contract_data.domestic_or_foreign_entity` | Latest transaction contract data / domestic or foreign entity, when published. |
| `latest_transaction_contract_data.foreign_funding` | Latest transaction contract data / foreign funding, when published. |
| `latest_transaction_contract_data.major_program` | Latest transaction contract data / major program, when published. |
| `latest_transaction_contract_data.program_acronym` | Latest transaction contract data / program acronym, when published. |
| `latest_transaction_contract_data.subcontracting_plan` | Latest transaction contract data / subcontracting plan, when published. |
| `latest_transaction_contract_data.multi_year_contract` | Latest transaction contract data / multi year contract, when published. |
| `latest_transaction_contract_data.consolidated_contract` | Latest transaction contract data / consolidated contract, when published. |
| `latest_transaction_contract_data.type_of_contract_pricing` | Latest transaction contract data / type of contract pricing, when published. |
| `latest_transaction_contract_data.national_interest_action` | Latest transaction contract data / national interest action, when published. |
| `latest_transaction_contract_data.multiple_or_single_award_description` | Latest transaction contract data / multiple or single award description, when published. |
| `latest_transaction_contract_data.solicitation_procedures_description` | Latest transaction contract data / solicitation procedures description, when published. |
| `latest_transaction_contract_data.extent_competed_description` | Latest transaction contract data / extent competed description, when published. |
| `latest_transaction_contract_data.other_than_full_and_open` | Latest transaction contract data / other than full and open, when published. |
| `latest_transaction_contract_data.other_than_full_and_open_description` | Latest transaction contract data / other than full and open description, when published. |
| `latest_transaction_contract_data.commercial_item_acquisition` | Latest transaction contract data / commercial item acquisition, when published. |
| `latest_transaction_contract_data.commercial_item_acquisition_description` | Latest transaction contract data / commercial item acquisition description, when published. |
| `latest_transaction_contract_data.commercial_item_test_program` | Latest transaction contract data / commercial item test program, when published. |
| `latest_transaction_contract_data.commercial_item_test_program_description` | Latest transaction contract data / commercial item test program description, when published. |
| `latest_transaction_contract_data.evaluated_preference_description` | Latest transaction contract data / evaluated preference description, when published. |
| `latest_transaction_contract_data.fair_opportunity_limited` | Latest transaction contract data / fair opportunity limited, when published. |
| `latest_transaction_contract_data.fair_opportunity_limited_description` | Latest transaction contract data / fair opportunity limited description, when published. |
| `latest_transaction_contract_data.product_or_service_description` | Latest transaction contract data / product or service description, when published. |
| `latest_transaction_contract_data.dod_claimant_program` | Latest transaction contract data / dod claimant program, when published. |
| `latest_transaction_contract_data.dod_claimant_program_description` | Latest transaction contract data / dod claimant program description, when published. |
| `latest_transaction_contract_data.dod_acquisition_program` | Latest transaction contract data / dod acquisition program, when published. |
| `latest_transaction_contract_data.dod_acquisition_program_description` | Latest transaction contract data / dod acquisition program description, when published. |
| `latest_transaction_contract_data.information_technology_commercial_item_category` | Latest transaction contract data / information technology commercial item category, when published. |
| `latest_transaction_contract_data.information_technology_commercial_item_category_description` | Latest transaction contract data / information technology commercial item category description, when published. |
| `latest_transaction_contract_data.sea_transportation_description` | Latest transaction contract data / sea transportation description, when published. |
| `latest_transaction_contract_data.clinger_cohen_act_planning_description` | Latest transaction contract data / clinger cohen act planning description, when published. |
| `latest_transaction_contract_data.construction_wage_rate` | Latest transaction contract data / construction wage rate, when published. |
| `latest_transaction_contract_data.construction_wage_rate_description` | Latest transaction contract data / construction wage rate description, when published. |
| `latest_transaction_contract_data.labor_standards_description` | Latest transaction contract data / labor standards description, when published. |
| `latest_transaction_contract_data.materials_supplies` | Latest transaction contract data / materials supplies, when published. |
| `latest_transaction_contract_data.materials_supplies_description` | Latest transaction contract data / materials supplies description, when published. |
| `latest_transaction_contract_data.cost_or_pricing_data_description` | Latest transaction contract data / cost or pricing data description, when published. |
| `latest_transaction_contract_data.domestic_or_foreign_entity_description` | Latest transaction contract data / domestic or foreign entity description, when published. |
| `latest_transaction_contract_data.foreign_funding_description` | Latest transaction contract data / foreign funding description, when published. |
| `latest_transaction_contract_data.interagency_contracting_authority` | Latest transaction contract data / interagency contracting authority, when published. |
| `latest_transaction_contract_data.interagency_contracting_authority_description` | Latest transaction contract data / interagency contracting authority description, when published. |
| `latest_transaction_contract_data.price_evaluation_adjustment` | Latest transaction contract data / price evaluation adjustment, when published. |
| `latest_transaction_contract_data.subcontracting_plan_description` | Latest transaction contract data / subcontracting plan description, when published. |
| `latest_transaction_contract_data.multi_year_contract_description` | Latest transaction contract data / multi year contract description, when published. |
| `latest_transaction_contract_data.purchase_card_as_payment_method` | Latest transaction contract data / purchase card as payment method, when published. |
| `latest_transaction_contract_data.purchase_card_as_payment_method_description` | Latest transaction contract data / purchase card as payment method description, when published. |
| `latest_transaction_contract_data.consolidated_contract_description` | Latest transaction contract data / consolidated contract description, when published. |
| `latest_transaction_contract_data.type_of_contract_pricing_description` | Latest transaction contract data / type of contract pricing description, when published. |
| `latest_transaction_contract_data.national_interest_action_description` | Latest transaction contract data / national interest action description, when published. |
| `funding_agency.id` | Funding agency / id, when published. |
| `funding_agency.has_agency_page` | Funding agency / has agency page, when published. |
| `funding_agency.toptier_agency.name` | Funding agency / toptier agency / name, when published. |
| `funding_agency.toptier_agency.code` | Funding agency / toptier agency / code, when published. |
| `funding_agency.toptier_agency.abbreviation` | Funding agency / toptier agency / abbreviation, when published. |
| `funding_agency.toptier_agency.slug` | Funding agency / toptier agency / slug, when published. |
| `funding_agency.subtier_agency.name` | Funding agency / subtier agency / name, when published. |
| `funding_agency.subtier_agency.code` | Funding agency / subtier agency / code, when published. |
| `funding_agency.subtier_agency.abbreviation` | Funding agency / subtier agency / abbreviation, when published. |
| `funding_agency.office_agency_name` | Funding agency / office agency name, when published. |
| `awarding_agency.id` | Awarding agency / id, when published. |
| `awarding_agency.has_agency_page` | Awarding agency / has agency page, when published. |
| `awarding_agency.toptier_agency.name` | Awarding agency / toptier agency / name, when published. |
| `awarding_agency.toptier_agency.code` | Awarding agency / toptier agency / code, when published. |
| `awarding_agency.toptier_agency.abbreviation` | Awarding agency / toptier agency / abbreviation, when published. |
| `awarding_agency.toptier_agency.slug` | Awarding agency / toptier agency / slug, when published. |
| `awarding_agency.subtier_agency.name` | Awarding agency / subtier agency / name, when published. |
| `awarding_agency.subtier_agency.code` | Awarding agency / subtier agency / code, when published. |
| `awarding_agency.subtier_agency.abbreviation` | Awarding agency / subtier agency / abbreviation, when published. |
| `awarding_agency.office_agency_name` | Awarding agency / office agency name, when published. |
| `period_of_performance.start_date` | Period of performance / start date, when published. |
| `period_of_performance.end_date` | Period of performance / end date, when published. |
| `period_of_performance.last_modified_date` | Period of performance / last modified date, when published. |
| `period_of_performance.potential_end_date` | Period of performance / potential end date, when published. |
| `recipient.recipient_hash` | Recipient / recipient hash, when published. |
| `recipient.recipient_name` | Recipient / recipient name, when published. |
| `recipient.recipient_uei` | Recipient / recipient uei, when published. |
| `recipient.recipient_unique_id` | Recipient / recipient unique id, when published. |
| `recipient.parent_recipient_hash` | Recipient / parent recipient hash, when published. |
| `recipient.parent_recipient_name` | Recipient / parent recipient name, when published. |
| `recipient.parent_recipient_uei` | Recipient / parent recipient uei, when published. |
| `recipient.parent_recipient_unique_id` | Recipient / parent recipient unique id, when published. |
| `recipient.business_categories` | Recipient / business categories, when published. |
| `recipient.location.location_country_code` | Recipient / location / location country code, when published. |
| `recipient.location.country_name` | Recipient / location / country name, when published. |
| `recipient.location.state_code` | Recipient / location / state code, when published. |
| `recipient.location.state_name` | Recipient / location / state name, when published. |
| `recipient.location.city_name` | Recipient / location / city name, when published. |
| `recipient.location.county_code` | Recipient / location / county code, when published. |
| `recipient.location.county_name` | Recipient / location / county name, when published. |
| `recipient.location.address_line1` | Recipient / location / address line1, when published. |
| `recipient.location.address_line2` | Recipient / location / address line2, when published. |
| `recipient.location.address_line3` | Recipient / location / address line3, when published. |
| `recipient.location.congressional_code` | Recipient / location / congressional code, when published. |
| `recipient.location.zip4` | Recipient / location / zip4, when published. |
| `recipient.location.zip5` | Recipient / location / zip5, when published. |
| `recipient.location.foreign_postal_code` | Recipient / location / foreign postal code, when published. |
| `recipient.location.foreign_province` | Recipient / location / foreign province, when published. |
| `executive_details.officers.name` | Executive details / officers / name, when published. |
| `executive_details.officers.amount` | Executive details / officers / amount, when published. |
| `place_of_performance.location_country_code` | Place of performance / location country code, when published. |
| `place_of_performance.country_name` | Place of performance / country name, when published. |
| `place_of_performance.county_code` | Place of performance / county code, when published. |
| `place_of_performance.county_name` | Place of performance / county name, when published. |
| `place_of_performance.city_name` | Place of performance / city name, when published. |
| `place_of_performance.state_code` | Place of performance / state code, when published. |
| `place_of_performance.state_name` | Place of performance / state name, when published. |
| `place_of_performance.congressional_code` | Place of performance / congressional code, when published. |
| `place_of_performance.zip4` | Place of performance / zip4, when published. |
| `place_of_performance.zip5` | Place of performance / zip5, when published. |
| `place_of_performance.address_line1` | Place of performance / address line1, when published. |
| `place_of_performance.address_line2` | Place of performance / address line2, when published. |
| `place_of_performance.address_line3` | Place of performance / address line3, when published. |
| `place_of_performance.foreign_province` | Place of performance / foreign province, when published. |
| `place_of_performance.foreign_postal_code` | Place of performance / foreign postal code, when published. |
| `psc_hierarchy.toptier_code.code` | Psc hierarchy / toptier code / code, when published. |
| `psc_hierarchy.toptier_code.description` | Psc hierarchy / toptier code / description, when published. |
| `psc_hierarchy.midtier_code.code` | Psc hierarchy / midtier code / code, when published. |
| `psc_hierarchy.midtier_code.description` | Psc hierarchy / midtier code / description, when published. |
| `psc_hierarchy.subtier_code` | Psc hierarchy / subtier code, when published. |
| `psc_hierarchy.base_code.code` | Psc hierarchy / base code / code, when published. |
| `psc_hierarchy.base_code.description` | Psc hierarchy / base code / description, when published. |
| `naics_hierarchy.toptier_code.code` | Naics hierarchy / toptier code / code, when published. |
| `naics_hierarchy.toptier_code.description` | Naics hierarchy / toptier code / description, when published. |
| `naics_hierarchy.midtier_code.code` | Naics hierarchy / midtier code / code, when published. |
| `naics_hierarchy.midtier_code.description` | Naics hierarchy / midtier code / description, when published. |
| `naics_hierarchy.base_code.code` | Naics hierarchy / base code / code, when published. |
| `naics_hierarchy.base_code.description` | Naics hierarchy / base code / description, when published. |
| `total_outlay` | Total outlay, when published. |

The complete result below is included for every mode. Text and lists are not shortened. These are examples from validation runs; the source can change.

#### Search contract records — complete JSON result

```json
{
  "result_type": "search",
  "input": "{\"keywords\": null}",
  "award_id": "HT940216C0001",
  "recipient_name": "HUMANA GOVERNMENT BUSINESS INC",
  "award_amount": 51269205263.03,
  "description": "IGF::OT::IGF",
  "awarding_agency": "Department of Defense",
  "awarding_sub_agency": "Defense Health Agency",
  "start_date": "2016-08-01",
  "end_date": "2025-12-31",
  "awarding_agency_id": 1173,
  "agency_slug": "department-of-defense",
  "generated_internal_id": "CONT_AWD_HT940216C0001_9700_-NONE-_-NONE-",
  "status": "success",
  "record_id": "CONT_AWD_HT940216C0001_9700_-NONE-_-NONE-",
  "url": "https://www.usaspending.gov/award/CONT_AWD_HT940216C0001_9700_-NONE-_-NONE-",
  "additional_fields.name": [],
  "additional_fields.value": []
}
```

#### Get contract details — complete JSON result

```json
{
  "result_type": "details",
  "input": "https://www.usaspending.gov/award/CONT_AWD_HT940216C0001_9700_-NONE-_-NONE-",
  "id": 307885715,
  "generated_unique_award_id": "CONT_AWD_HT940216C0001_9700_-NONE-_-NONE-",
  "piid": "HT940216C0001",
  "category": "contract",
  "type": "D",
  "type_description": "DEFINITIVE CONTRACT",
  "description": "IGF::OT::IGF",
  "total_obligation": 51269205263.03,
  "subaward_count": 151,
  "total_subaward_amount": 1917332761.94,
  "date_signed": "2016-07-29",
  "base_exercised_options": 52641654181.19,
  "base_and_all_options": 56620536577.19,
  "total_account_outlay": 0.0,
  "total_account_obligation": 321840.0,
  "account_outlays_by_defc.code": [
    "Q"
  ],
  "account_outlays_by_defc.amount": [
    0.0
  ],
  "account_obligations_by_defc.code": [
    "Q"
  ],
  "account_obligations_by_defc.amount": [
    321840.0
  ],
  "parent_award": null,
  "latest_transaction_contract_data.idv_type_description": null,
  "latest_transaction_contract_data.type_of_idc_description": null,
  "latest_transaction_contract_data.referenced_idv_agency_iden": null,
  "latest_transaction_contract_data.referenced_idv_agency_desc": null,
  "latest_transaction_contract_data.solicitation_identifier": "HT940215R0002",
  "latest_transaction_contract_data.solicitation_procedures": "NP",
  "latest_transaction_contract_data.number_of_offers_received": "4",
  "latest_transaction_contract_data.extent_competed": "A",
  "latest_transaction_contract_data.type_set_aside": "NONE",
  "latest_transaction_contract_data.type_set_aside_description": "NO SET ASIDE USED.",
  "latest_transaction_contract_data.evaluated_preference": "NONE",
  "latest_transaction_contract_data.fed_biz_opps": "Y",
  "latest_transaction_contract_data.fed_biz_opps_description": "YES",
  "latest_transaction_contract_data.small_business_competitive": false,
  "latest_transaction_contract_data.product_or_service_code": "Q201",
  "latest_transaction_contract_data.naics": "524114",
  "latest_transaction_contract_data.naics_description": "DIRECT HEALTH AND MEDICAL INSURANCE CARRIERS",
  "latest_transaction_contract_data.sea_transportation": "N",
  "latest_transaction_contract_data.clinger_cohen_act_planning": "N",
  "latest_transaction_contract_data.labor_standards": "Y",
  "latest_transaction_contract_data.cost_or_pricing_data": "N",
  "latest_transaction_contract_data.domestic_or_foreign_entity": "A",
  "latest_transaction_contract_data.foreign_funding": "X",
  "latest_transaction_contract_data.major_program": null,
  "latest_transaction_contract_data.program_acronym": null,
  "latest_transaction_contract_data.subcontracting_plan": "F",
  "latest_transaction_contract_data.multi_year_contract": "N",
  "latest_transaction_contract_data.consolidated_contract": "N",
  "latest_transaction_contract_data.type_of_contract_pricing": "U",
  "latest_transaction_contract_data.national_interest_action": null,
  "latest_transaction_contract_data.multiple_or_single_award_description": null,
  "latest_transaction_contract_data.solicitation_procedures_description": "NEGOTIATED PROPOSAL/QUOTE",
  "latest_transaction_contract_data.extent_competed_description": "FULL AND OPEN COMPETITION",
  "latest_transaction_contract_data.other_than_full_and_open": null,
  "latest_transaction_contract_data.other_than_full_and_open_description": null,
  "latest_transaction_contract_data.commercial_item_acquisition": "D",
  "latest_transaction_contract_data.commercial_item_acquisition_description": "COMMERCIAL PRODUCTS/SERVICES PROCEDURES NOT USED",
  "latest_transaction_contract_data.commercial_item_test_program": "N",
  "latest_transaction_contract_data.commercial_item_test_program_description": "NO",
  "latest_transaction_contract_data.evaluated_preference_description": "NO PREFERENCE USED",
  "latest_transaction_contract_data.fair_opportunity_limited": null,
  "latest_transaction_contract_data.fair_opportunity_limited_description": null,
  "latest_transaction_contract_data.product_or_service_description": "MEDICAL- MANAGED HEALTHCARE",
  "latest_transaction_contract_data.dod_claimant_program": "S1",
  "latest_transaction_contract_data.dod_claimant_program_description": "SERVICES",
  "latest_transaction_contract_data.dod_acquisition_program": "000",
  "latest_transaction_contract_data.dod_acquisition_program_description": "NONE",
  "latest_transaction_contract_data.information_technology_commercial_item_category": "Z",
  "latest_transaction_contract_data.information_technology_commercial_item_category_description": "NOT IT PRODUCTS OR SERVICES",
  "latest_transaction_contract_data.sea_transportation_description": "NO",
  "latest_transaction_contract_data.clinger_cohen_act_planning_description": "NO",
  "latest_transaction_contract_data.construction_wage_rate": "N",
  "latest_transaction_contract_data.construction_wage_rate_description": "NO",
  "latest_transaction_contract_data.labor_standards_description": "YES",
  "latest_transaction_contract_data.materials_supplies": "N",
  "latest_transaction_contract_data.materials_supplies_description": "NO",
  "latest_transaction_contract_data.cost_or_pricing_data_description": "NO",
  "latest_transaction_contract_data.domestic_or_foreign_entity_description": "U.S. OWNED BUSINESS",
  "latest_transaction_contract_data.foreign_funding_description": "NOT APPLICABLE",
  "latest_transaction_contract_data.interagency_contracting_authority": "X",
  "latest_transaction_contract_data.interagency_contracting_authority_description": "NOT APPLICABLE",
  "latest_transaction_contract_data.price_evaluation_adjustment": "0.00",
  "latest_transaction_contract_data.subcontracting_plan_description": "INDIVIDUAL SUBCONTRACT PLAN",
  "latest_transaction_contract_data.multi_year_contract_description": "NO",
  "latest_transaction_contract_data.purchase_card_as_payment_method": "N",
  "latest_transaction_contract_data.purchase_card_as_payment_method_description": "NO",
  "latest_transaction_contract_data.consolidated_contract_description": "NO",
  "latest_transaction_contract_data.type_of_contract_pricing_description": "COST PLUS FIXED FEE",
  "latest_transaction_contract_data.national_interest_action_description": null,
  "funding_agency.id": 1225,
  "funding_agency.has_agency_page": true,
  "funding_agency.toptier_agency.name": "Department of Defense",
  "funding_agency.toptier_agency.code": "097",
  "funding_agency.toptier_agency.abbreviation": "DOD",
  "funding_agency.toptier_agency.slug": "department-of-defense",
  "funding_agency.subtier_agency.name": "Defense Health Agency",
  "funding_agency.subtier_agency.code": "97DH",
  "funding_agency.subtier_agency.abbreviation": "DHA",
  "funding_agency.office_agency_name": "DEFENSE HEALTH AGENCY",
  "awarding_agency.id": 1225,
  "awarding_agency.has_agency_page": true,
  "awarding_agency.toptier_agency.name": "Department of Defense",
  "awarding_agency.toptier_agency.code": "097",
  "awarding_agency.toptier_agency.abbreviation": "DOD",
  "awarding_agency.toptier_agency.slug": "department-of-defense",
  "awarding_agency.subtier_agency.name": "Defense Health Agency",
  "awarding_agency.subtier_agency.code": "97DH",
  "awarding_agency.subtier_agency.abbreviation": "DHA",
  "awarding_agency.office_agency_name": "DEFENSE HEALTH AGENCY",
  "period_of_performance.start_date": "2016-08-01",
  "period_of_performance.end_date": "2025-12-31",
  "period_of_performance.last_modified_date": "2026-02-10",
  "period_of_performance.potential_end_date": "2025-12-31 00:00:00",
  "recipient.recipient_hash": "1068e466-707d-6b6f-367f-0255fab79b8c-C",
  "recipient.recipient_name": "HUMANA GOVERNMENT BUSINESS INC",
  "recipient.recipient_uei": "ZE6ZM6NKSV43",
  "recipient.recipient_unique_id": null,
  "recipient.parent_recipient_hash": "1068e466-707d-6b6f-367f-0255fab79b8c-P",
  "recipient.parent_recipient_name": "HUMANA GOVERNMENT BUSINESS INC",
  "recipient.parent_recipient_uei": "ZE6ZM6NKSV43",
  "recipient.parent_recipient_unique_id": null,
  "recipient.business_categories": [
    "Category Business",
    "Corporate Entity Not Tax Exempt",
    "Not Designated a Small Business",
    "Special Designations",
    "U.S.-Owned Business"
  ],
  "recipient.location.location_country_code": "USA",
  "recipient.location.country_name": "UNITED STATES",
  "recipient.location.state_code": "KY",
  "recipient.location.state_name": "KENTUCKY",
  "recipient.location.city_name": "LOUISVILLE",
  "recipient.location.county_code": "111",
  "recipient.location.county_name": "JEFFERSON",
  "recipient.location.address_line1": "500 W MAIN STREET",
  "recipient.location.address_line2": null,
  "recipient.location.address_line3": null,
  "recipient.location.congressional_code": "03",
  "recipient.location.zip4": "2946",
  "recipient.location.zip5": "40202",
  "recipient.location.foreign_postal_code": null,
  "recipient.location.foreign_province": null,
  "executive_details.officers.name": [
    "KAREN  MORAN",
    "KEVIN  REGENHOLD",
    "MELANIE  BUEHLER",
    "MATT  PAYNTER",
    "BILL  DERECH"
  ],
  "executive_details.officers.amount": [
    1409718.0,
    607266.0,
    604450.0,
    621345.0,
    578390.0
  ],
  "place_of_performance.location_country_code": "USA",
  "place_of_performance.country_name": "UNITED STATES",
  "place_of_performance.county_code": "111",
  "place_of_performance.county_name": "JEFFERSON",
  "place_of_performance.city_name": "LOUISVILLE",
  "place_of_performance.state_code": "KY",
  "place_of_performance.state_name": "KENTUCKY",
  "place_of_performance.congressional_code": "03",
  "place_of_performance.zip4": "5146",
  "place_of_performance.zip5": "40201",
  "place_of_performance.address_line1": null,
  "place_of_performance.address_line2": null,
  "place_of_performance.address_line3": null,
  "place_of_performance.foreign_province": null,
  "place_of_performance.foreign_postal_code": null,
  "psc_hierarchy.toptier_code.code": "Q",
  "psc_hierarchy.toptier_code.description": "MEDICAL SERVICES",
  "psc_hierarchy.midtier_code.code": "Q2",
  "psc_hierarchy.midtier_code.description": "GENERAL HEALTH CARE SERVICES",
  "psc_hierarchy.subtier_code": {},
  "psc_hierarchy.base_code.code": "Q201",
  "psc_hierarchy.base_code.description": "MEDICAL- MANAGED HEALTHCARE",
  "naics_hierarchy.toptier_code.code": "52",
  "naics_hierarchy.toptier_code.description": "Finance and Insurance",
  "naics_hierarchy.midtier_code.code": "5241",
  "naics_hierarchy.midtier_code.description": "Insurance Carriers",
  "naics_hierarchy.base_code.code": "524114",
  "naics_hierarchy.base_code.description": "Direct Health and Medical Insurance Carriers",
  "total_outlay": null,
  "status": "success",
  "record_id": "CONT_AWD_HT940216C0001_9700_-NONE-_-NONE-",
  "url": "https://www.usaspending.gov/award/CONT_AWD_HT940216C0001_9700_-NONE-_-NONE-",
  "additional_fields.name": [],
  "additional_fields.value": []
}
```

### Input settings ⚙️

| Setting | What to enter |
|---|---|
| **What to collect** (`mode`) | Choose the information you need. |
| **Maximum results per search or link** (`maxResults`) | Collect up to this many saved results for each search or record link. Minimum: 1. |
| **Keywords** (`keywords`) | Words to search for in public contract records. Leave empty to browse all available results. |
| **Contract links** (`recordUrls`) | Paste one individual public record link per line. Use this field in Details mode. |

### USAspending Federal Contracts scraping use cases 🎯

#### Build a tender or contract shortlist

Search the supported procurement collection and export matching records. Keep deadlines, buyer names and original references together when reviewing opportunities.

#### Research public buyers

Compare available buyer, supplier and contract information across records. Preserve the published currency and value type when working with amounts.

#### Monitor published procurement records

Schedule repeated exports and compare stable record IDs to identify newly published notices and changes. A search result is not confirmation that bidding remains open.

### Pricing and saved-result behavior 💰

See the Actor’s **Pricing** tab for the current rate. Under dataset-item pricing:

- Each saved record is one result. Lists and additional details attached to it do not create extra rows.
- A saved `failed` row is also one billable dataset item. This includes invalid inputs, unavailable records, empty searches and exhausted retries.
- At most one failed row is saved per input. Retry attempts do not create additional dataset rows.
- `maxResults` caps all saved rows for the input. Duplicate copies of the same input are processed once.

### USAspending Federal Contracts scraper API and integrations 🔌

Replace `$ACTOR_ID` with the ID shown in the Actor’s API tab and `$APIFY_TOKEN` with your Apify token.

```bash
curl -X POST "https://api.apify.com/v2/acts/$ACTOR_ID/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"search","maxResults":10}'
```

Use Apify schedules for recurring collection, webhooks for completion notifications, and integrations for Google Sheets, Make, Zapier, cloud storage or your own application.

### Reliability and public-data limits ⚠️

Temporary request failures are retried up to five total attempts. Invalid record inputs save a failed row without a website request. Confirmed missing records are not retried unnecessarily. If a later request fails, records already saved remain in the dataset. Normal pagination completion does not add a failed row. Collection stops after two consecutive pages return no new records. Configuration, data-saving or request-scheduling failures stop the run.

USAspending Federal Contracts controls the available records and fields. Search records can contain less information than a full public card. The Actor preserves published values and does not fill missing facts with estimates.

### Frequently asked questions ❓

#### Do I need a USAspending Federal Contracts account?

No. This Actor collects the supported public information without your website login.

#### Which search filters can I use?

The input form supports keywords. Only the displayed filters are supported.

#### How many records can I collect?

Set `maxResults` to the maximum saved rows you want for each input. The minimum is 1. Collection can finish earlier when the source runs out of results or stops returning new records.

#### Why are some fields empty?

The source may not publish a value for that record or mode. Optional information remains empty.

#### Can I export all the fields?

Yes. All returned fields are included in one dataset view. Nested lists remain attached to their parent record.

### Support 🛟

For a reproducible issue, share the run ID, selected mode and a safe public example through the Actor’s support channel. Keep tokens, passwords and proxy credentials private.

# Actor input Schema

## `mode` (type: `string`):

Choose the information you need.

## `maxResults` (type: `integer`):

Collect up to this many saved results for each search or record link. Minimum: 1.

## `keywords` (type: `string`):

Words to search for in public contract records. Leave empty to browse all available results.

## `recordUrls` (type: `array`):

Paste one individual public record link per line. Use this field in Details mode.

## Actor input object example

```json
{
  "mode": "search",
  "maxResults": 10,
  "recordUrls": [
    "https://www.usaspending.gov/award/CONT_AWD_HT940216C0001_9700_-NONE-_-NONE-"
  ]
}
```

# Actor output Schema

## `results` (type: `string`):

Results and failed input outcomes, with all returned fields.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "search",
    "maxResults": 10,
    "recordUrls": [
        "https://www.usaspending.gov/award/CONT_AWD_HT940216C0001_9700_-NONE-_-NONE-"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapingmonkey/usaspending-federal-contracts-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "search",
    "maxResults": 10,
    "recordUrls": ["https://www.usaspending.gov/award/CONT_AWD_HT940216C0001_9700_-NONE-_-NONE-"],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapingmonkey/usaspending-federal-contracts-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "search",
  "maxResults": 10,
  "recordUrls": [
    "https://www.usaspending.gov/award/CONT_AWD_HT940216C0001_9700_-NONE-_-NONE-"
  ]
}' |
apify call scrapingmonkey/usaspending-federal-contracts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapingmonkey/usaspending-federal-contracts-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/YyhSibXHPqOdWHcR4/builds/TtSbNXqOQIRv6vDMW/openapi.json
