# Federal Contracts API

> Federal Contracts API is a paid API for AI agents from companyfacts.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-31).

Retrieves active US federal contract awards filterable by awarding agency, keyword, dollar amount, and expiration window

## Facts

- Endpoint: GET https://companyfacts.dev/x402/v1/federal-contracts?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/federal-contracts-api-122da079
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1O8X36YTE732bJV-YlnIu

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability federal-contracts-api-122da079
```

Example prompt: Find me active federal contracts from the General Services Administration related to IT services that are expiring within the next 90 days and worth at least $500,000.

## When to prefer this

Choose this endpoint when you need real-time, structured federal contract award data directly queryable by agency, keyword, amount, or expiry window — especially for recompete monitoring or competitive intelligence. Prefer it over manual USASpending.gov searches when you need machine-readable output with parsed dollar amounts and expiration timelines in a single API call.

## Known failure modes

- Missing or invalid query parameters may return an empty awards array
- Ambiguous agency names may not match any records
- Very broad keyword searches may return truncated results with no pagination support
- Contracts without published salary/amount data return null for amount_usd
- If the payment of $0.003 USDC fails, a 402 Payment Required error is returned

## How this service works

Open job postings read first-hand from the applicant-tracking system behind a company's careers page: Greenhouse, Ashby, Lever or Workable. Includes a directory of 8532 company job boards, because none of the vendors publishes one. Salaries are parsed into numbers where the employer publishes them and refused where ambiguous. No personal data.

## Output

Returns a list of federal contract award objects, each containing award ID, recipient company name, award amount in USD, start and end dates, days until expiry, awarding agency and sub-agency, a short description, and a USASpending.gov verification URL. Also includes the query window (from/to dates), total count, a mode field (e.g. 'recompete'), and a truncation flag if results exceed the page limit.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "agency": {
       "type": "string"
      },
      "keyword": {
       "type": "string"
      },
      "min_amount": {
       "type": "string"
      },
      "expiring_after_days": {
       "type": "string"
      },
      "expiring_within_days": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mode": "recompete",
  "count": 1,
  "awards": [
   {
    "award_id": "47QFCA22F0021",
    "end_date": "2027-03-01",
    "recipient": "PERATON ENTERPRISE SOLUTIONS LLC",
    "amount_usd": 682369225,
    "start_date": "2022-12-18",
    "verify_url": "https://www.usaspending.gov/award/CONT_AWD_47QFCA22F0021_4732_GS00Q14OADU131_4732",
    "description": "IT SERVICES",
    "awarding_agency": "General Services Administration",
    "days_until_expiry": 122,
    "awarding_sub_agency": "Federal Acquisition Service"
   }
  ],
  "window": {
   "to": "2027-10-30",
   "from": "2027-01-28"
  },
  "truncated": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/federal-contracts-api-122da079/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from companyfacts.dev](https://www.zero.xyz/host/companyfacts.dev/llms.txt)
