# Script Master Labs — Treasury Yields API (x402)

> Script Master Labs — Treasury Yields API (x402) is a paid API for AI agents from mcp-x402.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns U.S. Treasury yield data for a given month, billed at $0.05 USDC per call via x402 on Base.

## Facts

- Endpoint: GET https://mcp-x402.onrender.com/x402/treasury-yields
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/script-master-labs-treasury-yields-api-x402-cd2870b8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S2Mr2R-QZSKw5gFKL4sw6

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 script-master-labs-treasury-yields-api-x402-cd2870b8
```

Example prompt: What were the U.S. Treasury yields for October 2024? Pull the yield curve data for that month.

## When to prefer this

Choose this endpoint when you need pay-per-call U.S. Treasury yield data without a subscription and can settle micropayments in USDC on Base via x402. Ideal for agents with x402 payment capability needing ad-hoc yield curve lookups rather than a bulk data subscription. Prefer over free alternatives when programmatic micropayment settlement is already wired into the agent workflow.

## Known failure modes

- Payment failure — insufficient USDC balance or x402 payment not accepted (402 Payment Required)
- Invalid month format — non-ISO date string causes 400 Bad Request
- Month out of range — future or very old months may return no data or 404
- Service unavailable — hosted on Render free tier, may cold-start or be offline (503)
- No data for requested month — Treasury data not yet published for the given period

## How this service works

Pay-per-call crypto, RWA, federal, SEC, Section 8/HUD housing, and compliance APIs via x402. Primary: USDC on Base (eip155:8453). Also accepts Global Dollar (USDG) on Robinhood Chain (eip155:4663) via sovereign X-PAYMENT-TX. Hyphen routes only (e.g. /x402/gas-tracker, /x402/pha-lookup, /x402/sec-8k). MARKETPLACE REVIEW: use free /x402/playground/* (no key, no payment). Production /x402/* returns 402 unless paid via x402 or X-Api-Market-Key / X-API-Key from seller dashboard.

## Output

A structured response containing U.S. Treasury yield rates across maturities (e.g. 1-month, 3-month, 6-month, 1-year, 2-year, 5-year, 10-year, 30-year) for the requested month, sourced from U.S. federal data and returned after a $0.05 USDC micropayment settled on Base via x402.

## 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": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "month": {
       "type": "string",
       "description": "YYYYMM format (optional, defaults to current month). e.g. 202606."
      }
     }
    }
   }
  },
  "output": {
   "properties": {
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/script-master-labs-treasury-yields-api-x402-cd2870b8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-x402.onrender.com](https://www.zero.xyz/host/mcp-x402.onrender.com/llms.txt)
