# USAspending obligations over time

US federal award obligations per fiscal year, quarter or month for a market you define by NAICS, PSC, keywords, recipient or award type, split into contracts. Needs start date and end date. Served by USAspending.gov.

US federal award obligations per fiscal year, quarter or month for a market you define by NAICS, PSC, keywords, recipient or award type, split into contracts, grants, loans, direct payments and other. Use it to size a federal market and see whether it is growing. Filters seen before answer at once; a new or keyword filter can take a minute, and a window of many years can time out or answer 503, so narrow the dates and retry. Use usaspending/award-search for the awards themselves.

- Tool ID: `usaspending/spending-over-time`
- Provider: [USAspending.gov](/providers/usaspending.md)
- Capability: [B2B data](/tools/b2b-data.md)
- Price: no charge per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

No charge per call. A workspace is still needed so your agent can call it.


```json
{
  "model": "per_call",
  "amountUsd": 0
}
```

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "start_date": {
      "type": "string",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
      "description": "Start of the window (2007-10-01 or later), e.g. '2022-10-01'"
    },
    "end_date": {
      "type": "string",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
      "description": "End of the window, e.g. '2025-09-30'"
    },
    "group": {
      "type": "string",
      "enum": [
        "fiscal_year",
        "quarter",
        "month"
      ],
      "default": "fiscal_year",
      "description": "Time bucket, e.g. 'fiscal_year'"
    },
    "naics_codes": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10,
      "items": {
        "type": "string",
        "pattern": "^[0-9]{2,6}$",
        "maxLength": 6
      },
      "description": "NAICS codes (2 to 6 digits), e.g. ['541512']"
    },
    "psc_codes": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10,
      "items": {
        "type": "string",
        "pattern": "^[A-Z0-9]{1,4}$",
        "maxLength": 4
      },
      "description": "Product or service codes, e.g. ['D307']"
    },
    "keywords": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10,
      "items": {
        "type": "string",
        "pattern": "^[^\"\\\\]{3,100}$",
        "maxLength": 100
      },
      "description": "Keywords of 3 characters or more, slower than codes, e.g. ['solar panels']"
    },
    "recipient_search_text": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10,
      "items": {
        "type": "string",
        "pattern": "^[^\"\\\\]{2,100}$",
        "maxLength": 100
      },
      "description": "Recipient name or UEI, e.g. ['Lockheed Martin']"
    },
    "award_type_codes": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10,
      "items": {
        "type": "string",
        "pattern": "^[A-Z0-9_-]{1,6}$",
        "maxLength": 6
      },
      "description": "Award type codes: A to D contracts, 02 to 05 grants, 07 and 08 loans, 06 and 10 direct payments, e.g. ['A','B','C','D']"
    }
  },
  "required": [
    "start_date",
    "end_date"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "usaspending/spending-over-time",
  "input": {
    "start_date": "2022-10-01",
    "end_date": "2025-09-30",
    "group": "fiscal_year",
    "naics_codes": [
      "541512"
    ]
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

Licence: Public domain (U.S. Government work).

Attribution: Data from USAspending.gov (U.S. Department of the Treasury, Bureau of the Fiscal Service).

[Provider documentation](https://api.usaspending.gov/docs/endpoints)

[REST inspection](https://api.agentik.cc/v1/tools/usaspending/spending-over-time) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/usaspending/spending-over-time) · [Agent index](/llms.txt)
