{"uid":"cap_Dxj5xSHkBpaRBb5QSJHyp","slug":"2s-yield-curve-api-a45c7dd6","name":"2s Yield Curve API","description":"The (most) everything API: 575+ pay-per-call endpoints for AI agents — ground-truth data, a full AI gateway, and agent infrastructure (storage, queues, watchers). USDC via x402, no signup, no API keys, and upto billing: pay actual usage, not the quote.","url":"https://2s.io/api/econ/yield-curve?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":null,"example":{"request":{"properties":""},"response":{"data":{"ok":true,"meta":{"asOf":"2026-06-16","inverted":false,"spread2s10s":0.38,"spread3m10y":0.64},"items":[{"asOf":"2026-06-16","yield":3.67,"months":1,"maturity":"1M","seriesId":"DGS1MO"},{"asOf":"2026-06-16","yield":3.79,"months":3,"maturity":"3M","seriesId":"DGS3MO"},{"asOf":"2026-06-16","yield":3.81,"months":6,"maturity":"6M","seriesId":"DGS6MO"},{"asOf":"2026-06-16","yield":3.84,"months":12,"maturity":"1Y","seriesId":"DGS1"},{"asOf":"2026-06-16","yield":4.05,"months":24,"maturity":"2Y","seriesId":"DGS2"},{"asOf":"2026-06-16","yield":4.08,"months":36,"maturity":"3Y","seriesId":"DGS3"},{"asOf":"2026-06-16","yield":4.16,"months":60,"maturity":"5Y","seriesId":"DGS5"},{"asOf":"2026-06-16","yield":4.28,"months":84,"maturity":"7Y","seriesId":"DGS7"},{"asOf":"2026-06-16","yield":4.43,"months":120,"maturity":"10Y","seriesId":"DGS10"},{"asOf":"2026-06-16","yield":4.92,"months":240,"maturity":"20Y","seriesId":"DGS20"},{"asOf":"2026-06-16","yield":4.93,"months":360,"maturity":"30Y","seriesId":"DGS30"}],"total":11,"source":{"url":"https://fred.stlouisfed.org/","license":"FRED® data; many series are public domain (US govt). Attribution to FRED required for redistribution.","provider":"Federal Reserve Bank of St. Louis — FRED"}},"meta":{"cost":{"usd":0.00144,"tier":0},"caller":"x402","version":null,"endpoint":"econ.yield-curve","settlement":{"txHash":"0x70b297ec81b704aaecbb319c9232021edd65259613646f4e66dac5675f389bb5","network":"eip155:8453","success":true}}}},"exampleRequest":{"properties":""},"tags":["x402"],"displayCostAmount":"0.00144","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.00144/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0036","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0036","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TZL7Pw3CQVCLqYXGqlj_6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0036","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current US Treasury yield curve with yields across all maturities, inversion status, and key spreads (2s10s, 3m10y) sourced from FRED.","exampleAgentPrompt":"What does the US Treasury yield curve look like right now — is it inverted, and what are the 2s10s and 3-month-to-10-year spreads?","exampleUseCases":null,"resultDescription":"Returns a JSON object with an array of Treasury yield data points (yield %, maturity label, months, FRED series ID, as-of date) covering all standard maturities, plus meta fields: inversion boolean, 2s10s spread, 3m10y spread, and the as-of date. Includes source attribution to FRED/Federal Reserve Bank of St. Louis.","failureModes":["FRED data unavailable or delayed — stale as-of date returned","Network timeout reaching upstream FRED source","Payment not fulfilled via x402 — 402 response with no data","Malformed response if upstream FRED API changes schema"],"whenToPreferThis":"Use this endpoint when you need a complete, current snapshot of the US Treasury yield curve with inversion status and key spread metrics in a single call, sourced authoritatively from FRED. Prefer over scraping Treasury.gov or building your own FRED integration. Ideal for macroeconomic analysis, recession signal detection, and fixed-income context in AI agent workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:41:18.237Z","isFirstParty":false,"canonicalSlug":"2s-yield-curve-api-a45c7dd6"}