---
title: "USAspending API: U as JSON | Perceptlayer"
description: "USAspending API for U.S. federal contracts, grants and loans: award search, full award details and recipients by name or UEI as JSON."
url: https://perceptlayer.com/apis/usaspending
---

[APIs](https://perceptlayer.com/apis) / [Finance](https://perceptlayer.com/verticals/finance) / USAspending

1 credit per call 3 endpoints 16 datapoints 

# USAspending API

USAspending API for U.S. federal contracts, grants and loans: award search, full award details and recipients by name or UEI as JSON.

[Get a free API key](https://perceptlayer.com/signup) Run it below

USAspending

GET /v1/usaspending/awards-search?keyword=cybersecurity&per\_page=10 

```
{
  "success": true,
  "data": {
    "page": 1,
    "has_more": true,
    "count": 10,
    "items": [
      {
        "award_id": "CONT_AWD_FA862118F6251_9700_FA862115D6276_9700",
        "award_number": "FA862118F6251",
        "recipient": "LOCKHEED MARTIN CORPORATION",
        "recipient_id": "ea75ddee-2d00-ac7f-5e72-6f42d7c88c8c-C",
        "recipient_uei": "KDT2YLB34NT6",
        "amount": 673293501.78,
        "description": "IGF::OT::IGF  AFSOC ACTS AWARD OF CONTRACT FOR CLS, ENGINEERING, INSTRUCTION, CYBERSECURITY, DMO",
        "type": "DELIVERY ORDER",
        "awarding_agency": "Department of Defense",
        "awarding_sub_agency": "Department of the Air Force",
        "start_date": "2018-02-08",
        "end_date": "2027-01-31",
        "place_of_performance_state": "FL",
        "naics": {
          "code": "336413",
          "description": "OTHER AIRCRAFT PARTS AND AUXILIARY EQUIPMENT MANUFACTURING"
        },
        "psc": {
          "code": "J069",
          "description": "MAINT/REPAIR/REBUILD OF EQUIPMENT- TRAINING AIDS AND DEVICES"
        },
        "url": "https://www.usaspending.gov/award/CONT_AWD_FA862118F6251_9700_FA862115D6276_9700"
      },
      {
        "award_id": "CONT_AWD_HQ085722F8003_9700_HQ079617D0001_9700",
        "award_number": "HQ085722F8003",
        "recipient": "AMENTUM TECHNOLOGY, INC.",
        "recipient_id": "64d116c0-8e36-0200-3878-827560dca24a-C",
        "recipient_uei": "DTRJLHVLK8F4",
        "amount": 524055138.18,
        "description": "DELIVER INFORMATION MANAGEMENT AND IT SERVICES TO MDA FOR UNCLASSIFIED AND CLASSIFIED NETWORKS. UTILIZING THE CUSTOMER-FOCUSED SERVICE MODEL, ITIL METHOD. PERFORM BREAK-FIX, MAINTENANCE AND CYBERSECURITY OF CIO MANAGED NETWORKS WITHIN MDA.",
        "type": "DELIVERY ORDER",
        "awarding_agency": "Department of Defense",
        "awarding_sub_agency": "Missile Defense Agency",
        "start_date": "2022-09-05",
        "end_date": "2025-09-01",
        "place_of_performance_state": "CO",
        "naics": {
          "code": "541712",
          "description": "RESEARCH AND DEVELOPMENT IN THE PHYSICAL, ENGINEERING, AND LIFE SCIENCES (EXCEPT BIOTECHNOLOGY)"
        },
        "psc": {
          "code": "AC23",
          "description": "NATIONAL DEFENSE R&D SERVICES; ATOMIC ENERGY DEFENSE ACTIVITIES; EXPERIMENTAL DEVELOPMENT"
        },
        "url": "https://www.usaspending.gov/award/CONT_AWD_HQ085722F8003_9700_HQ079617D0001_9700"
      },
      {
        "award_id": "CONT_AWD_47QFCA20F0049_4732_47QTCK18D0003_4732",
        "award_number": "47QFCA20F0049",
        "recipient": "GENERAL DYNAMICS INFORMATION TECHNOLOGY, INC.",
        "recipient_id": "455555be-773d-eab1-1e6b-7b94400b757e-C",
        "recipient_uei": "SMNWM6HN79X5",
        "amount": 396604521.78,
        "description": "THE SCOPE OF THIS REQUIREMENT INCLUDES PROGRAM MANAGEMENT SERVICES, TRANSITION SERVICES, AND A FULL RANGE OF ENTERPRISE IT-RELATED SERVICES AND TECHNICAL SOLUTIONS THAT SPAN CYBERSECURITY AND IT MANAGEMENT.",
        "type": "DELIVERY ORDER",
        "awarding_agency": "General Services Administration",
        "awarding_sub_agency": "Federal Acquisition Service",
        "start_date": "2020-09-25",
        "end_date": "2025-10-24",
        "place_of_performance_state": "FL",
        "naics": {
          "code": "541512",
          "description": "COMPUTER SYSTEMS DESIGN SERVICES"
        },
        "psc": {
          "code": "D318",
          "description": "IT AND TELECOM- INTEGRATED HARDWARE/SOFTWARE/SERVICES SOLUTIONS, PREDOMINANTLY SERVICES"
        },
        "url": "https://www.usaspending.gov/award/CONT_AWD_47QFCA20F0049_4732_47QTCK18D0003_4732"
      }
    ]
  },
  "meta": {
    "request_id": "req_5b4b559b21484d86a2dd485da9ae3178",
    "credits_charged": 1,
    "credits_remaining": 484
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `awards-search`: the fields and shapes you will get, shortened to 3 items.

| # | award\_id string | award\_number string | recipient string | recipient\_id string | recipient\_uei string | amount number | description string | type string | awarding\_agency string | awarding\_sub\_agency string | start\_date string | end\_date string | place\_of\_performance\_state string | naics object | psc object | url url |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | CONT\_AWD\_FA862118F6251\_9700\_FA862115D6276\_9700 | FA862118F6251 | LOCKHEED MARTIN CORPORATION | ea75ddee-2d00-ac7f-5e72-6f42d7c88c8c-C | KDT2YLB34NT6 | 673293501.78 | IGF::OT::IGF AFSOC ACTS AWARD OF CONTRACT FOR CLS, ENGINEERING, INSTRUCTION, CYBERSECURITY, DMO | DELIVERY ORDER | Department of Defense | Department of the Air Force | 2018-02-08 | 2027-01-31 | FL | {2 fields} | {2 fields} | https://www.usaspending.gov/award/CONT\_AWD\_FA862118F6251\_9700\_FA862115D6276\_9700 |
| 2 | CONT\_AWD\_HQ085722F8003\_9700\_HQ079617D0001\_9700 | HQ085722F8003 | AMENTUM TECHNOLOGY, INC. | 64d116c0-8e36-0200-3878-827560dca24a-C | DTRJLHVLK8F4 | 524055138.18 | DELIVER INFORMATION MANAGEMENT AND IT SERVICES TO MDA FOR UNCLASSIFIED AND CLASSIFIED NETWORKS. UTILIZING THE CUSTOMER-FOCUSED SERVICE MODEL, ITIL METHOD. PERFORM BREAK-FIX, MAINTENANCE AND CYBERSECURITY OF CIO MANAGED NETWORKS WITHIN MDA. | DELIVERY ORDER | Department of Defense | Missile Defense Agency | 2022-09-05 | 2025-09-01 | CO | {2 fields} | {2 fields} | https://www.usaspending.gov/award/CONT\_AWD\_HQ085722F8003\_9700\_HQ079617D0001\_9700 |
| 3 | CONT\_AWD\_47QFCA20F0049\_4732\_47QTCK18D0003\_4732 | 47QFCA20F0049 | GENERAL DYNAMICS INFORMATION TECHNOLOGY, INC. | 455555be-773d-eab1-1e6b-7b94400b757e-C | SMNWM6HN79X5 | 396604521.78 | THE SCOPE OF THIS REQUIREMENT INCLUDES PROGRAM MANAGEMENT SERVICES, TRANSITION SERVICES, AND A FULL RANGE OF ENTERPRISE IT-RELATED SERVICES AND TECHNICAL SOLUTIONS THAT SPAN CYBERSECURITY AND IT MANAGEMENT. | DELIVERY ORDER | General Services Administration | Federal Acquisition Service | 2020-09-25 | 2025-10-24 | FL | {2 fields} | {2 fields} | https://www.usaspending.gov/award/CONT\_AWD\_47QFCA20F0049\_4732\_47QTCK18D0003\_4732 |

Recorded from our API · 3 items shown · 16 datapoints per item GET /v1/usaspending/awards-search?keyword=cybersecurity&per\_page=10

16 datapoints

### Identity

-   award\_id string
-   recipient\_id string
-   type string

### Contact

-   url url

### Location

-   place\_of\_performance\_state string

### Reputation

-   start\_date string

### Price

-   amount number

### Other

-   award\_number string
-   recipient string
-   recipient\_uei string
-   description string
-   awarding\_agency string
-   awarding\_sub\_agency string
-   end\_date string
-   naics object
-   psc object

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/usaspending/awards-search?keyword=cybersecurity&per_page=10" \
  -H "X-API-Key: $API_KEY"
```

USAspending · 3 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/usaspending/award`](https://perceptlayer.com/apis/usaspending/award) | `id` | `award_id` `award_number` `category` `type` `type_description` `description` +16 more | 1 credit |
| [GET `/v1/usaspending/awards-search`](https://perceptlayer.com/apis/usaspending/awards-search) | none +8 optional | `award_id` `award_number` `recipient` `recipient_id` `recipient_uei` `amount` +10 more | 1 credit |
| [GET `/v1/usaspending/recipient-search`](https://perceptlayer.com/apis/usaspending/recipient-search) | `keyword` +3 optional | `recipient_id` `name` `uei` `duns` `level` `amount_last_12_months` +1 more | 1 credit |

Overview

## About the USAspending API

## What you can get

The USAspending API returns U.S. federal spending data from USAspending.gov as JSON through 3 endpoints.

-   **Award search:** `awards-search` takes a `keyword`, a `recipient` (name or UEI), an awarding `agency` (its full name, such as Department of Defense), an `award_type` group (contracts, idvs, grants, direct\_payments, loans or other; default contracts), and `fiscal_year` with an optional `fiscal_year_end`, with `page` and `per_page` (1 to 100). Awards come largest first. Fiscal years run October to September, and searches start at fiscal year 2008.
-   **Award:** `award` takes the generated award `id` that `awards-search` returns.
-   **Recipient search:** `recipient-search` takes a `keyword` (a name, UEI or DUNS), with `award_type`, `page` and `per_page`.

The recorded `awards-search` for "cybersecurity" contracts returns `page`, `has_more` and `items`, each with `award_id`, `award_number`, `recipient`, `recipient_id`, `recipient_uei`, `amount`, `description`, `type`, `awarding_agency`, `awarding_sub_agency`, `start_date`, `end_date`, `place_of_performance_state`, `naics`, `psc` and a `url` to the award on USAspending.gov. The recorded `award` call for the first of them, a Department of the Air Force delivery order to LOCKHEED MARTIN CORPORATION, returned a `total_obligation` of $673,293,501.78 against `base_and_all_options` of $729,624,184.28, with `total_outlay`, `date_signed`, `potential_end_date`, `awarding_agency` and `funding_agency` down to the office, a `recipient` with its parent, UEI, business categories and location, `place_of_performance`, `naics`, `psc`, `competition` (FULL AND OPEN COMPETITION, 4 offers received, FIRM FIXED PRICE), its `parent_award`, and 521 subawards totalling $545,120,462.56. The recorded `recipient-search` for "lockheed" returns `total` (287) and recipients with `recipient_id`, `name`, `uei`, `duns`, `level` (parent or child) and `amount_last_12_months`.

## How a call works

Search, then look up: `GET /v1/usaspending/awards-search?keyword=cybersecurity&award_type=contracts` with your key in the `X-API-Key` header returns each award's `award_id`; `award` takes it as `id`, for example `GET /v1/usaspending/award?id=CONT_AWD_FA862118F6251_9700_FA862115D6276_9700`. Check `has_more` before asking for the next `page`. Answers come from a cache for up to 6 hours. Every successful call costs 1 credit; failed calls cost nothing.

Finance JSON REST MCP

### More finance APIs

[ARES](https://perceptlayer.com/apis/ares) [Brønnøysund Register Centre](https://perceptlayer.com/apis/brreg) [CoinGecko](https://perceptlayer.com/apis/coingecko) [CoinMarketCap](https://perceptlayer.com/apis/coinmarketcap) [DEX Screener](https://perceptlayer.com/apis/dexscreener) [FDIC BankFind](https://perceptlayer.com/apis/fdic) [Finnish Patent and Registration Office](https://perceptlayer.com/apis/prh) [Finviz](https://perceptlayer.com/apis/finviz) [LEI Lookup](https://perceptlayer.com/apis/lei) [MarketWatch](https://perceptlayer.com/apis/marketwatch) [Morningstar](https://perceptlayer.com/apis/morningstar) [Nasdaq](https://perceptlayer.com/apis/nasdaq)

Use cases

### Find the largest federal contracts for a keyword in a fiscal year

`Use the USAspending API to find the largest federal contracts for a keyword in a fiscal year` 

### Let a capture-research agent list an agency's awards to a competitor

`Use the USAspending API to let a capture-research agent list an agency's awards to a competitor` 

### Size a contractor's federal revenue from \`amount\_last\_12\_months\`

`` Use the USAspending API to size a contractor's federal revenue from `amount_last_12_months` `` 

### Pull an award's NAICS and PSC codes, competition type and number of offers

`Use the USAspending API to pull an award's NAICS and PSC codes, competition type and number of offers` 

FAQ

## Questions

**Is this the official USAspending API?**

No. Perceptlayer is an independent service and is not affiliated with USAspending.gov or the U.S. government. The USAspending API is free to call directly, with no key. This API calls it on your behalf and adds one key for every source on Perceptlayer, GET requests in place of its JSON search bodies, flattened records in one response shape, a cache of up to 6 hours, and no charge for failed calls.

**Why do I need an award type?**

USAspending searches one award type group at a time. \`awards-search\` uses contracts unless you pass another \`award\_type\`, such as grants or loans.

**How far back does the data go?**

Searches start at fiscal year 2008. A fiscal year runs from 1 October to 30 September, so fiscal year 2026 began on 2025-10-01.

**Can I reuse the data?**

Yes. It is U.S. government spending data, public domain as a work of the U.S. government, with no attribution requirement.

**Should I build an USAspending scraper instead?**

You can, but an USAspending scraper is code you maintain: page changes break it, requests get blocked, and USAspending's terms govern how you collect data. The USAspending API gives you 3 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the USAspending API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
