> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Award search

> Search USAspending prime awards by keyword, awarding/funding agency, recipient name or UEI, action-date window, place of performance, NAICS, PSC and award amount within one award family (contracts, IDVs, grants, loans, direct payments or other). One page (default 20, max 100) of summary award records with an opaque cursor for the next page; add `award` for the full record.

## Request contract

* **Method and path:** POST /apis/v1/usaspending-gov/awards/award-search
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/usaspending-gov/awards/award-search`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/usaspending-gov.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "usaspending-gov.awards.award-search",
  "method": "POST",
  "path": "/apis/v1/usaspending-gov/awards/award-search",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "award_type_codes": [
                "A",
                "B",
                "C",
                "D"
              ],
              "page_size": 2,
              "recipient_search_text": "LOCKHEED MARTIN",
              "time_period": [
                {
                  "end_date": "2025-09-30",
                  "start_date": "2024-10-01"
                }
              ]
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "agencies": {
              "description": "agencies",
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "type": "array",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "award_amounts": {
              "description": "USD ranges (OR) on the award total; at least one bound each.",
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "type": "array",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "award_type_codes": {
              "description": "Required. One family only: contracts A (BPA call), B (purchase order), C (delivery order), D (definitive contract); IDVs IDV_A..IDV_E; grants 02 block, 03 formula, 04 project, 05 cooperative agreement; direct payments 06, 10; loans 07 direct, 08 guaranteed; other 09 insurance, 11 other, -1.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "cursor": {
              "description": "next_cursor from the previous page; bound to identical filters, sort and page_size. Depth is capped at 500 pages.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "keywords": {
              "description": "Free-text terms matched against award descriptions, recipient names and ids (OR).",
              "items": {
                "type": "string"
              },
              "type": "array",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "naics_codes": {
              "description": "Contracts/IDVs only; 2, 4 or 6 digit NAICS codes (sector, industry group or national industry). USAspending rejects other lengths.",
              "items": {
                "type": "string"
              },
              "type": "array",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "page_size": {
              "default": 20,
              "description": "page_size\n\nProvider reference: minimum 1; maximum 100; default 20.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 100,
                "min": 1
              }
            },
            "place_of_performance": {
              "additionalProperties": true,
              "description": "place_of_performance",
              "type": "object",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "psc_codes": {
              "description": "Contracts/IDVs only.",
              "items": {
                "type": "string"
              },
              "type": "array",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "recipient_search_text": {
              "description": "Recipient name, UEI or DUNS text.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "sort": {
              "default": "amount_desc",
              "description": "Result order. For loans amount_* sorts by Loan Value and start_date_* by Issued Date; end_date_* is rejected for loans.\n\nProvider reference: allowed values [\"amount_desc\", \"amount_asc\", \"start_date_desc\", \"start_date_asc\", \"end_date_desc\", \"end_date_asc\", \"last_modified_desc\", \"last_modified_asc\", \"recipient_name_asc\", \"recipient_name_desc\", \"award_id_asc\", \"award_id_desc\"]; default \"amount_desc\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "amount_desc",
                  "amount_asc",
                  "start_date_desc",
                  "start_date_asc",
                  "end_date_desc",
                  "end_date_asc",
                  "last_modified_desc",
                  "last_modified_asc",
                  "recipient_name_asc",
                  "recipient_name_desc",
                  "award_id_asc",
                  "award_id_desc"
                ]
              }
            },
            "time_period": {
              "description": "Action-date windows (OR). start_date >= 2007-10-01. Omitted = 2007-10-01 to 2030-09-30. FY2025 is 2024-10-01..2025-09-30.",
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "type": "array",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            }
          },
          "required": [
            "award_type_codes"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/usaspending-gov.json POST /apis/v1/usaspending-gov/awards/award-search
openapi: 3.1.0
info:
  description: ''
  title: USAspending
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    usaspending-gov:
      description: ''
      title: USAspending
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: bd023c3a292175ba2c80967d07c97f1f471561a7f1b5cc9430e15158934aed5b
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/usaspending-gov/agencies/agency
    - /apis/v1/usaspending-gov/awards/award
    - /apis/v1/usaspending-gov/awards/award-search
    - /apis/v1/usaspending-gov/awards/idv-children
    - /apis/v1/usaspending-gov/awards/subawards
    - /apis/v1/usaspending-gov/awards/transactions
    - /apis/v1/usaspending-gov/recipients/recipient
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:f06465e212675b8de9fc59cf30a5b7948ef03770ed5a2e104f686a571c4b181f
    facts_hash: bd023c3a292175ba2c80967d07c97f1f471561a7f1b5cc9430e15158934aed5b
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: usaspending-gov
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/usaspending-gov/awards/award-search:
    post:
      tags:
        - USAspending
      summary: Award search
      description: >-
        Search USAspending prime awards by keyword, awarding/funding agency,
        recipient name or UEI, action-date window, place of performance, NAICS,
        PSC and award amount within one award family (contracts, IDVs, grants,
        loans, direct payments or other). One page (default 20, max 100) of
        summary award records with an opaque cursor for the next page; add
        `award` for the full record.
      operationId: usaspending-gov.awards.award-search
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  award_type_codes:
                    - A
                    - B
                    - C
                    - D
                  page_size: 2
                  recipient_search_text: LOCKHEED MARTIN
                  time_period:
                    - end_date: '2025-09-30'
                      start_date: '2024-10-01'
            schema:
              additionalProperties: true
              properties:
                agencies:
                  description: agencies
                  items:
                    additionalProperties: true
                    type: object
                  type: array
                  x-alexandria-option-metadata:
                    in: body
                award_amounts:
                  description: USD ranges (OR) on the award total; at least one bound each.
                  items:
                    additionalProperties: true
                    type: object
                  type: array
                  x-alexandria-option-metadata:
                    in: body
                award_type_codes:
                  description: >-
                    Required. One family only: contracts A (BPA call), B
                    (purchase order), C (delivery order), D (definitive
                    contract); IDVs IDV_A..IDV_E; grants 02 block, 03 formula,
                    04 project, 05 cooperative agreement; direct payments 06,
                    10; loans 07 direct, 08 guaranteed; other 09 insurance, 11
                    other, -1.
                  items:
                    type: string
                  type: array
                cursor:
                  description: >-
                    next_cursor from the previous page; bound to identical
                    filters, sort and page_size. Depth is capped at 500 pages.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                keywords:
                  description: >-
                    Free-text terms matched against award descriptions,
                    recipient names and ids (OR).
                  items:
                    type: string
                  type: array
                  x-alexandria-option-metadata:
                    in: body
                naics_codes:
                  description: >-
                    Contracts/IDVs only; 2, 4 or 6 digit NAICS codes (sector,
                    industry group or national industry). USAspending rejects
                    other lengths.
                  items:
                    type: string
                  type: array
                  x-alexandria-option-metadata:
                    in: body
                page_size:
                  default: 20
                  description: |-
                    page_size

                    Provider reference: minimum 1; maximum 100; default 20.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 100
                    min: 1
                place_of_performance:
                  additionalProperties: true
                  description: place_of_performance
                  type: object
                  x-alexandria-option-metadata:
                    in: body
                psc_codes:
                  description: Contracts/IDVs only.
                  items:
                    type: string
                  type: array
                  x-alexandria-option-metadata:
                    in: body
                recipient_search_text:
                  description: Recipient name, UEI or DUNS text.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                sort:
                  default: amount_desc
                  description: >-
                    Result order. For loans amount_* sorts by Loan Value and
                    start_date_* by Issued Date; end_date_* is rejected for
                    loans.


                    Provider reference: allowed values ["amount_desc",
                    "amount_asc", "start_date_desc", "start_date_asc",
                    "end_date_desc", "end_date_asc", "last_modified_desc",
                    "last_modified_asc", "recipient_name_asc",
                    "recipient_name_desc", "award_id_asc", "award_id_desc"];
                    default "amount_desc".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - amount_desc
                      - amount_asc
                      - start_date_desc
                      - start_date_asc
                      - end_date_desc
                      - end_date_asc
                      - last_modified_desc
                      - last_modified_asc
                      - recipient_name_asc
                      - recipient_name_desc
                      - award_id_asc
                      - award_id_desc
                time_period:
                  description: >-
                    Action-date windows (OR). start_date >= 2007-10-01. Omitted
                    = 2007-10-01 to 2030-09-30. FY2025 is
                    2024-10-01..2025-09-30.
                  items:
                    additionalProperties: true
                    type: object
                  type: array
                  x-alexandria-option-metadata:
                    in: body
              required:
                - award_type_codes
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: >-
                    Published by the provider on
                    2026-09-15T03:56:32.871236+00:00.
                  summary: Official provider example
                  value:
                    award_type_codes:
                      - A
                      - B
                      - C
                      - D
                    category: contract
                    complete: true
                    next_cursor: v1:2:dc75022b9a379b5b
                    page:
                      max_pages: 500
                      number: 1
                      size: 2
                    records:
                      - amount_unit:
                          basis: >-
                            nominal dollars as reported to USAspending;
                            award-level totals sum every transaction to date
                          currency: USD
                          scale: '1'
                        award_type: DEFINITIVE CONTRACT
                        award_type_code: null
                        awarding_agency:
                          office: null
                          subtier: Department of Energy
                          subtier_code: null
                          toptier: Department of Energy
                          toptier_code: null
                        base_and_all_options: null
                        base_exercised_options: null
                        category: contract
                        cfda: null
                        cfda_number: null
                        date_signed: '1993-10-15'
                        def_codes:
                          - Q
                        description: null
                        detail_level: summary
                        fain: null
                        funding_agency:
                          office: null
                          subtier: Department of Energy
                          subtier_code: null
                          toptier: Department of Energy
                          toptier_code: null
                        generated_unique_award_id: CONT_AWD_DEAC0494AL85000_8900_-NONE-_-NONE-
                        internal_id: '295476065'
                        last_modified_date: '2026-07-07 17:57:06'
                        loan_face_value: null
                        loan_subsidy_cost: null
                        naics:
                          code: '561210'
                          description: FACILITIES SUPPORT SERVICES
                        observed_at_ms: 1789444592871
                        parent_award: null
                        period_of_performance:
                          current_end: '2017-04-30'
                          last_date_to_order: null
                          potential_end: null
                          start: '1993-10-15'
                        piid: DEAC0494AL85000
                        place_of_performance:
                          city_code: null
                          city_name: null
                          congressional_code: null
                          country_code: USA
                          county_code: null
                          state_code: NM
                          zip5: '87185'
                        psc:
                          code: M181
                          description: OPER OF GOVT R&D GOCO FACILITIES
                        recipient:
                          business_categories: null
                          duns: null
                          location: null
                          name: LOCKHEED MARTIN CORP
                          parent_name: null
                          parent_recipient_id: null
                          parent_uei: null
                          recipient_id: 6e7a895c-aa57-8600-2a8a-4e237f6213f6-C
                          uei: FYHNA5WC8XD7
                        source_url: >-
                          https://www.usaspending.gov/award/CONT_AWD_DEAC0494AL85000_8900_-NONE-_-NONE-
                        source_vintage: '2026-09-14'
                        subaward_count: null
                        total_obligation: '48063737196.35'
                        total_outlays: '-4166130.71'
                        total_subaward_amount: null
                        uri: null
                      - amount_unit:
                          basis: >-
                            nominal dollars as reported to USAspending;
                            award-level totals sum every transaction to date
                          currency: USD
                          scale: '1'
                        award_type: DEFINITIVE CONTRACT
                        award_type_code: null
                        awarding_agency:
                          office: null
                          subtier: Department of the Navy
                          subtier_code: null
                          toptier: Department of Defense
                          toptier_code: null
                        base_and_all_options: null
                        base_exercised_options: null
                        category: contract
                        cfda: null
                        cfda_number: null
                        date_signed: '2017-04-28'
                        def_codes:
                          - 'N'
                          - Q
                        description: LRIP LOT 12 ADVANCE ACQUISITION CONTRACT
                        detail_level: summary
                        fain: null
                        funding_agency:
                          office: null
                          subtier: Department of the Navy
                          subtier_code: null
                          toptier: Department of Defense
                          toptier_code: null
                        generated_unique_award_id: CONT_AWD_N0001917C0001_9700_-NONE-_-NONE-
                        internal_id: '309494502'
                        last_modified_date: '2026-04-15 19:52:27'
                        loan_face_value: null
                        loan_subsidy_cost: null
                        naics:
                          code: '336411'
                          description: AIRCRAFT MANUFACTURING
                        observed_at_ms: 1789444592871
                        parent_award: null
                        period_of_performance:
                          current_end: '2031-03-31'
                          last_date_to_order: null
                          potential_end: null
                          start: '2017-11-17'
                        piid: N0001917C0001
                        place_of_performance:
                          city_code: null
                          city_name: null
                          congressional_code: null
                          country_code: USA
                          county_code: null
                          state_code: TX
                          zip5: '76108'
                        psc:
                          code: '1510'
                          description: AIRCRAFT, FIXED WING
                        recipient:
                          business_categories: null
                          duns: null
                          location: null
                          name: LOCKHEED MARTIN CORPORATION
                          parent_name: null
                          parent_recipient_id: null
                          parent_uei: null
                          recipient_id: 6cf5fb1b-4988-d087-5dc1-70939d8fc6c4-C
                          uei: G4KDGE4JFFK7
                        source_url: >-
                          https://www.usaspending.gov/award/CONT_AWD_N0001917C0001_9700_-NONE-_-NONE-
                        source_vintage: '2026-09-14'
                        subaward_count: null
                        total_obligation: '35135514910.2'
                        total_outlays: '933036846.29'
                        total_subaward_amount: null
                        uri: null
                    retrieved_at: '2026-09-15T03:56:32Z'
                    schema_version: 1.0.0
                    sort: amount_desc
                    source_request:
                      fields:
                        - Award ID
                        - Recipient Name
                        - Recipient UEI
                        - Recipient DUNS Number
                        - Start Date
                        - End Date
                        - Award Amount
                        - Total Outlays
                        - Description
                        - Awarding Agency
                        - Awarding Sub Agency
                        - Funding Agency
                        - Funding Sub Agency
                        - Contract Award Type
                        - Award Type
                        - Last Date to Order
                        - recipient_id
                        - generated_internal_id
                        - Last Modified Date
                        - Base Obligation Date
                        - Period of Performance Current End Date
                        - Place of Performance City Code
                        - Place of Performance State Code
                        - Place of Performance Country Code
                        - Place of Performance Zip5
                        - NAICS
                        - PSC
                        - CFDA Number
                        - Loan Value
                        - Subsidy Cost
                        - SAI Number
                        - Issued Date
                        - def_codes
                      filters:
                        award_type_codes:
                          - A
                          - B
                          - C
                          - D
                        recipient_search_text:
                          - LOCKHEED MARTIN
                        time_period:
                          - end_date: '2025-09-30'
                            start_date: '2024-10-01'
                      limit: 2
                      order: desc
                      page: 1
                      sort: Award Amount
                      subawards: false
                    source_updated_at: '2026-09-14'
                    source_url: >-
                      https://api.usaspending.gov/api/v2/search/spending_by_award/
                    units:
                      basis: nominal dollars as published by USAspending
                      currency: USD
                      scale: '1'
                    upstream_requests: 2
                    warnings: []
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Search USAspending prime awards by keyword, awarding/funding agency,
            recipient name or UEI, action-date window, place of performance,
            NAICS, PSC and award amount within one award family (contracts,
            IDVs, grants, loans, direct payments or other). One page (default
            20, max 100) of summary award records with an opaque cursor for the
            next page; add `award` for the full record.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `award_type_codes` | string[] |  |

            | `category` | string |  |

            | `complete` | boolean | Whether this response satisfied the
            requested operation; false when a secondary source call failed
            (warnings explain). |

            | `next_cursor` | string | Opaque v1:<page>:<hash> cursor bound to
            the filters; null at the end. |

            | `page` | object | Source request fields used to reproduce the
            official USAspending query. |

            | `records` | object[] |  |

            | `retrieved_at` | string |  |

            | `schema_version` | string |  |

            | `sort` | string |  |

            | `source_request` | object | The exact spending_by_award body sent
            upstream. |

            | `source_updated_at` | string | USAspending database last-updated
            date from awards/last_updated, null when that call failed. |

            | `source_url` | string |  |

            | `units` | object |  |

            | `upstream_requests` | number |  |

            | `warnings` | string[] |  |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.