{"uid":"cap__ihVGVXuPGKQnLCSEQx_9","slug":"us-treasury-par-yield-curve-cc7ce6cc","name":"US Treasury Par Yield Curve","description":"Latest US Treasury par yield curve (1 month to 30 years), change in basis points versus N days ago, 10y-2y and 10y-3m spreads and inversion flag. Official US Treasury data (public domain).","url":"https://api.vextorium.com/v1/us-treasury-yield-curve?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":[],"properties":{"compare_days":{"type":"integer","description":"Compare with N days earlier (1-365, default 30)"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":["object","null"],"properties":{"date":{"type":["string","null"]},"curve":{"type":["array","null"],"items":{"type":["null","object"],"properties":{"term":{"type":["null","string"]},"rate_pct":{"type":["null","number"]},"change_bp":{"type":["null","number"]}}}},"source":{"type":["string","null"]},"compared_with":{"type":["string","null"]},"inverted_2y_10y":{"type":["boolean","null"]},"spread_10y_2y_bp":{"type":["number","null"]},"spread_10y_3m_bp":{"type":["number","null"]}}}}}}},"responseSchema":{"type":"json","example":{"date":"2026-10-01","curve":[{"term":"1 Mo","rate_pct":4.06,"change_bp":21},{"term":"1.5 Month","rate_pct":4.1,"change_bp":22}],"source":"U.S. Department of the Treasury, Daily Treasury Par Yield Curve Rates (public domain)","compared_with":"2026-09-01","inverted_2y_10y":false,"spread_10y_2y_bp":46,"spread_10y_3m_bp":107}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mBrWaRb0OmemaFJj8gqsP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the latest US Treasury par yield curve rates (1 month to 30 years), basis-point changes versus N days ago, 10y-2y and 10y-3m spreads, and yield curve inversion flags.","exampleAgentPrompt":"Pull the latest US Treasury par yield curve right now and show me how every maturity has changed in basis points versus 45 days ago, plus tell me whether the 2y-10y is inverted.","exampleUseCases":[{"title":"Daily yield curve inversion monitor","prompt":"Check the current Treasury yield curve and tell me whether the 10y-2y and 10y-3m spreads are in inversion territory, and how the spreads have moved over the last 7 days."},{"title":"Macro briefing for investment committee","prompt":"I need today's full US Treasury par yield curve from 1-month to 30-year, with how much each rate has changed in basis points compared to 30 days ago, for my morning macro briefing."},{"title":"Rate-change alert over past quarter","prompt":"How much have Treasury yields shifted across the curve over the past 90 days? Give me the current rates and the basis-point changes for each maturity."}],"resultDescription":"A JSON object containing: the curve date, an array of term/rate/change-bp entries for each maturity from 1-month to 30-year, the comparison date, the 10y-2y spread in basis points, the 10y-3m spread in basis points, a boolean inversion flag for the 2y-10y, and the official Treasury data source attribution.","failureModes":["Treasury data not yet published for today — returns the most recent available date","compare_days out of range (1-365) — validation error","Treasury website unavailable causing upstream fetch failure","Requested comparison date falls on a non-business day with no available data"],"whenToPreferThis":"Use this endpoint when you need official, authoritative US Treasury par yield curve data with built-in spread calculations and inversion flags — ideal for macroeconomic monitoring, fixed-income analysis, and rate-change tracking without having to parse raw Treasury XML yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:39:58.988Z","isFirstParty":false,"canonicalSlug":"us-treasury-par-yield-curve-cc7ce6cc"}