{"uid":"cap_UgRFNlYDqD_5cBBWqDySU","slug":"us-treasury-par-yield-curve-api-9ef32804","name":"US Treasury Par Yield Curve API","description":"Use when an agent needs US government bond yields, a risk-free rate or the yield curve (e.g. 2Y/10Y spread, recession signal, discounting): official US Treasury daily par yield curve, 1 month to 30 years, latest or any day since 1990 (weekends/holidays return the previous business day). Includes 10Y-2Y and 10Y-3M spreads. Source named in every answer. Bad input: HTTP 400 before payment; outage is not charged.","url":"https://x402-apis.pages.dev/v1/treasury-yields?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"date":{"type":"string","description":"Day as YYYY-MM-DD (1990-01-02 or later). Default: latest published curve."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["date","yieldsPct"],"properties":{"date":{"type":"string"},"yieldsPct":{"type":"object"},"spreadsPct":{"type":"object"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0LdmAbCJGWO7wpKJ0oYJ0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns official US Treasury daily par yield curve rates (1 month to 30 years) and key spreads (10Y-2Y, 10Y-3M) for any business day since 1990","exampleAgentPrompt":"What does the US Treasury yield curve look like today — give me the full curve from 1 month to 30 years along with the 10Y-2Y and 10Y-3M spreads.","exampleUseCases":[{"title":"Recession signal monitoring","prompt":"Check whether the US yield curve is currently inverted — I need the 10Y-2Y and 10Y-3M spreads from the official Treasury data to assess recession risk."},{"title":"DCF discount rate lookup","prompt":"I'm valuing a company and need the current risk-free rate — can you pull today's official US 10-year Treasury yield?"},{"title":"Historical yield curve comparison","prompt":"Pull the full US Treasury par yield curve for March 15 2007, right before the financial crisis — I want to see what the curve looked like then versus today."}],"resultDescription":"A JSON object containing the effective date, a yieldsPct object with par yields across all standard maturities (1M, 2M, 3M, 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 20Y, 30Y), and a spreadsPct object including the 10Y-2Y and 10Y-3M spreads. Weekend and holiday dates automatically return the previous business day's data. Source attribution is included in every response.","failureModes":["HTTP 400 returned for invalid or unparseable date input before any payment is charged","Date before 1990-01-02 returns an error as data is unavailable","Weekend/holiday dates are handled gracefully by returning the prior business day (not an error)","Service outage: not charged if the endpoint is unavailable","Future dates will return an error or empty data as no curve has been published"],"whenToPreferThis":"Use this endpoint when you need authoritative, official US Treasury yield data — for risk-free rate inputs to DCF models, yield curve shape analysis, recession indicator monitoring (inverted curve), or any context requiring a citable government source. Prefer this over financial data aggregators when source credibility and official accuracy matter. It covers every standard maturity from 1 month to 30 years and includes pre-computed spreads, saving calculation steps.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:31:43.566Z","isFirstParty":false,"canonicalSlug":"us-treasury-par-yield-curve-api-9ef32804"}