{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"20000","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"fb533a5b-d051-44fc-879b-03566001856a","catalogType":"api","categories":["finance","market-data","data"],"dataPlatform":"Financial Datasets","dataPlatformLogoUrl":"https://www.financialdatasets.ai/apple-touch-icon.png","dataPlatformTranslations":{"ar":"Financial Datasets","ja":"Financial Datasets","zh":"Financial Datasets"},"dataProduct":"macro-yield-curve","description":"Get historical US Treasury yield curves via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Financial Datasets, pass parameters such as end_date, start_date, and retrieve structured data including yield curve reference date for yield curve chart, and economic dataset, ready for production pipelines and AI agent automation.","descriptionTranslations":{"ar":"استرجع منحنيات عوائد سندات الخزانة الأمريكية التاريخية عبر OpenAny REST باستخدام Financial Datasets، بتحديد حدود التواريخ لمقارنة آجال العوائد المنشورة عبر مشاهدات أيام العمل. استخدم المشاهدات لإعداد لوحات مؤشرات اقتصادية أو بيانات مقارنة، مع إرفاق معرف كل سلسلة وتاريخها المرجعي وسياق القياس بقيمها، وافحص مثال الطلب والمعلمات المدعومة وتسعير التنفيذ المحدد قبل الاستدعاء.","ja":"OpenAny REST 経由で Financial Datasets の米国債利回り曲線履歴を取得し、日付範囲から営業日ごとの各年限の公表利回りを比較できます。 返された観測データを経済指標のダッシュボードや比較用データに利用できます。系列識別子、基準日、計測の文脈を値と共に保持し、リクエスト例、対応パラメータ、選択した実装の料金を確認してください。","zh":"通过 OpenAny REST 使用 Financial Datasets 获取美国国债收益率曲线历史，可选择日期边界，对比工作日观测中的各期限公布利率。 可使用返回的观测数据构建经济看板或对比数据集，为数值保留序列标识符、参考日期及计量上下文；调用前请查看请求示例、支持的参数及所选实现价格。"},"effectContentHtml":"","executionMode":"sync","id":"e055d520-8ee0-4937-a2b0-ca4504be7431","includedContentHtml":"","inputs":[{"description":"The first date to return, inclusive, in YYYY-MM-DD format. Defaults to one year before end_date when both dates are omitted; omit it with an end_date to get all available history through that date.","location":"query","name":"start_date","nullable":false,"required":false,"type":"string"},{"description":"The last date to return, inclusive, in YYYY-MM-DD format. Defaults to today.","location":"query","name":"end_date","nullable":false,"required":false,"type":"string"},{"description":"Opaque pagination cursor from a previous response's next_page_url. When provided, all other query parameters are ignored: the cursor carries the original request's filters. Treat it as opaque; do not construct or modify it.","location":"query","name":"cursor","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://www.financialdatasets.ai/apple-touch-icon.png","method":"GET","name":"Financial Datasets — Treasury Yields (Historical)","nameTranslations":{"ar":"Financial Datasets — عوائد سندات الخزانة (تاريخية)","ja":"Financial Datasets — 国債利回り（履歴）","zh":"Financial Datasets — 国债收益率（历史）"},"overviewHtml":"\u003ch2\u003eFinancial Datasets Yield Curve History API\u003c/h2\u003e\n\u003cp\u003eSet optional start_date and end_date. yield_curve is an array of dated curve objects, with individual tenor keys such as 3_month, 2_year and 10_year. Rates are par yields in percent; preserve null tenors when a value was unavailable for that date.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eNo required query parameters; optional: start_date, end_date, cursor.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003efinancialdatasets · Financial Datasets — Treasury Yields (Historical)\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eYield curve chart\u003c/strong\u003e: Compare tenor rates for selected reference dates.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eEconomic dataset\u003c/strong\u003e: Store dated curve observations without replacing missing tenors with zero.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eDocumented Response Fields\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eyield_curve[].date\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eYield curve reference date\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eyield_curve[].3_month\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eThree-month par yield in percent\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eyield_curve[].2_year\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTwo-year par yield in percent\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eyield_curve[].10_year\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTen-year par yield in percent\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eyield_curve[].30_year\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eThirty-year par yield in percent\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/financialdatasets/macro/yield-curve \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  -H \u0026#39;Content-Type: application/json\u0026#39; \\\n  --data-urlencode end_date=2026-03-31 \\\n  --data-urlencode start_date=2026-01-01\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference; values may be historical or illustrative, and the request is an independent calling template. Match returned company, period or series identities to your query before using the data.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/e055d520-8ee0-4937-a2b0-ca4504be7431\"\u003ePublished Financial Datasets Yield Curve History API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eAre tenor values prices of Treasury securities?\u003c/h3\u003e\n\u003cp\u003eNo. They are reported par yields in percent.\u003c/p\u003e\n\u003ch3\u003eDoes every calendar day have a curve?\u003c/h3\u003e\n\u003cp\u003eThe historical series is organized by business-day observations. Use returned dates rather than filling missing calendar days with zero.\u003c/p\u003e\n\u003ch3\u003eHow should a missing tenor be handled?\u003c/h3\u003e\n\u003cp\u003ePreserve null or unavailable values separately from a reported zero yield.\u003c/p\u003e\n\u003ch3\u003eHow do I continue through the results?\u003c/h3\u003e\n\u003cp\u003eUse the opaque cursor from the pagination response on this same OpenAny endpoint, retaining required inputs. Keep the original query scope when continuing; a new filter selection starts a new request without that cursor.\u003c/p\u003e\n\u003ch3\u003eWhich API key should I use?\u003c/h3\u003e\n\u003cp\u003eUse your OpenAny API key as Bearer authentication on the documented OpenAny route.\u003c/p\u003e\n\u003ch3\u003eWhere can I check the current request price?\u003c/h3\u003e\n\u003cp\u003eReview the pricing area for the selected API implementation before calling. Follow its billing unit and terms; retrieving additional pages requires additional requests.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/financial-datasets/financial-datasets-interest-rates-snapshot\"\u003eFinancial Datasets — Interest Rates (Snapshot)\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/financial-datasets/financial-datasets-get-company-facts\"\u003eFinancial Datasets — Get company facts\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/financial-datasets/financial-datasets-get-ipo-filings\"\u003eFinancial Datasets — Get IPO filings\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/financial-datasets/financial-datasets-treasury-yields-historical?offering=e055d520-8ee0-4937-a2b0-ca4504be7431","providerId":"financialdatasets","publicPath":"/v1/agent-apis/financialdatasets/macro/yield-curve","requestContentType":"none","revision":4,"samples":[{"http_status":200,"name":"Official example (HTTP assumed)","request":{"body":null,"headers":{},"path":{},"query":{"end_date":"2026-03-31","start_date":"2026-01-01"}},"response_body":{"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"}]}}],"seoDescription":"Get historical US Treasury yield curves via REST or MCP powered by Financial Datasets. Pay per call, no subscription. Ideal for yield curve chart.","updatedAt":"2026-12-03T02:49:07.832Z","usageInstructionsHtml":""}}