# ScriptMasterLabs Treasury Yields API

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

Returns US Treasury yield data for a specified month, accessible via micropayment using x402/USDC on Base

## Facts

- Endpoint: GET https://mcp-x402-discovery.onrender.com/x402/treasury-yields
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-treasury-yields-api-52dae315
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cCNviJDZcuOBN1rquSOFX

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 scriptmasterlabs-treasury-yields-api-52dae315
```

Example prompt: Can you pull the US Treasury yield data for May 2026 — I need the full yield curve rates for that month?

## When to prefer this

Choose this endpoint when you need US Treasury yield data on a pay-per-call basis without a subscription, especially if your agent already uses x402/USDC micropayments on Base. It is well-suited for infrequent lookups where a subscription API would be overkill, or for agents operating in crypto-native payment environments. Avoid if you need high-frequency real-time yield streaming or guaranteed SLA — a free government source (e.g. Treasury.gov) or Bloomberg may be more reliable for production financial systems.

## Known failure modes

- 402 Payment Required if no valid x402 USDC payment or API key is provided
- Invalid month format (not YYYYMM) may result in an error or unexpected default behavior
- Data may be unavailable for very recent months if Treasury data hasn't been published yet
- Service hosted on Render free tier may have cold-start latency or occasional downtime
- Empty or malformed response schema ({}) means output structure is not guaranteed and may vary

## 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

Returns US Treasury yield data for the requested month, including yield rates across maturities (e.g. 1-month, 3-month, 1-year, 5-year, 10-year, 30-year Treasuries). The response is keyed to the month parameter (YYYYMM), defaulting to the current month if not specified.

## 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/scriptmasterlabs-treasury-yields-api-52dae315/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-x402-discovery.onrender.com](https://www.zero.xyz/host/mcp-x402-discovery.onrender.com/llms.txt)
