# Financial Datasets — Treasury Yields (Snapshot)

Get the published US Treasury yield curve snapshot via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Financial Datasets, configure supported query parameters and filters, and retrieve structured data including yield curve reference date for curve overview, and reference-date context, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/market/apis/financial-datasets/financial-datasets-treasury-yields-snapshot/?offering=2ae4622d-ad9e-4e76-b52f-36731843ad04
API ID: 2ae4622d-ad9e-4e76-b52f-36731843ad04
Provider: financialdatasets
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/financialdatasets/macro/yield-curve/snapshot
Page update time: 2026-12-03T02:49:10.406Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.02 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:49:09.479Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "20000",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Financial Datasets — Treasury Yields (Snapshot) request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "yield_curve": {
      "type": "object",
      "properties": {
        "10_year": {
          "type": "number"
        },
        "1_5_month": {
          "type": "number"
        },
        "1_month": {
          "type": "number"
        },
        "1_year": {
          "type": "number"
        },
        "20_year": {
          "type": "number"
        },
        "2_month": {
          "type": "number"
        },
        "2_year": {
          "type": "number"
        },
        "30_year": {
          "type": "number"
        },
        "3_month": {
          "type": "number"
        },
        "3_year": {
          "type": "number"
        },
        "4_month": {
          "type": "number"
        },
        "5_year": {
          "type": "number"
        },
        "6_month": {
          "type": "number"
        },
        "7_year": {
          "type": "number"
        },
        "date": {
          "type": "string"
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example (HTTP assumed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/financialdatasets/macro/yield-curve/snapshot' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Configured HTTP 200; actual status is unverified.
```json
{
  "yield_curve": {
    "10_year": 4.19,
    "1_5_month": 3.71,
    "1_month": 3.72,
    "1_year": 3.47,
    "20_year": 4.81,
    "2_month": 3.66,
    "2_year": 3.47,
    "30_year": 4.86,
    "3_month": 3.65,
    "3_year": 3.55,
    "4_month": 3.62,
    "5_year": 3.74,
    "6_month": 3.58,
    "7_year": 3.95,
    "date": "2026-01-02"
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- financialdatasets: https://openany.si/market/apis/financial-datasets/financial-datasets-treasury-yields-snapshot/?offering=2ae4622d-ad9e-4e76-b52f-36731843ad04

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
