# 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/financial-datasets/financial-datasets-treasury-yields-snapshot/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.
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
}
```

## Usage and limits
## Financial Datasets Yield Curve Snapshot API

This snapshot route has no business query inputs. yield\_curve is one object containing date and tenor fields, unlike the dated array returned by history. Preserve the curve reference date and null tenor values when displaying the latest published observations.

## What You Can Build

- **Curve overview**: Display the newest published rates across tenors.
- **Reference-date context**: Keep the curve date visible alongside the selected tenor values.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `yield_curve.date` | Yield curve reference date |
| `yield_curve.3_month` | Three-month par yield in percent |
| `yield_curve.2_year` | Two-year par yield in percent |
| `yield_curve.10_year` | Ten-year par yield in percent |
| `yield_curve.30_year` | Thirty-year par yield in percent |

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

## Common questions
### Do I need to supply a date?
No. This implementation exposes no business query parameters and returns the published snapshot.

### Is yield_curve an array?
No. It is a single curve object here; the historical endpoint returns an array.

### Are the tenor fields prices or rates?
They are par yields in percent, not security prices.

### Can I request older curves here?
Use Yield Curve History with date bounds for older observations.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Review the pricing area for the selected API implementation before calling. Follow its billing unit and terms; retrieving additional pages requires additional requests.

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

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