{"uid":"cap_6GiTJjWMRY4eaaeQuSI0h","slug":"us-treasury-yield-curve-api-f9a03b93","name":"US Treasury Yield Curve API","description":"Returns the US Treasury par yield curve (1 month to 30 years) for a date, with the 2y-10y and 3m-10y spreads and whether the curve is normal, flat or inverted.","url":"https://macro-data-api-313m.onrender.com/v1/yield-curve?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"date":{"type":"string","description":"Optional date YYYY-MM-DD. Default: latest available."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_svOUEmM0j4X5HyDPenaw3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the US Treasury par yield curve (1 month to 30 years) for a given date, including 2y-10y and 3m-10y spreads and yield curve shape classification (normal, flat, or inverted).","exampleAgentPrompt":"Pull the US Treasury yield curve for today and tell me whether it's normal, flat, or inverted, and what the 2-year to 10-year and 3-month to 10-year spreads are.","exampleUseCases":[{"title":"Daily yield curve shape check","prompt":"What does the US Treasury yield curve look like today — is it normal, inverted, or flat, and what are the 2y-10y and 3m-10y spreads?"},{"title":"Historical recession signal research","prompt":"What was the shape of the Treasury yield curve on March 1, 2023, and what were the 3-month to 10-year and 2-year to 10-year spreads on that date?"},{"title":"Macro dashboard rate snapshot","prompt":"Give me the full US Treasury par yield curve — every maturity from 1 month to 30 years — as of yesterday, December 9, 2024."}],"resultDescription":"Returns a structured response containing par yield rates for each Treasury maturity (1M, 2M, 3M, 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 20Y, 30Y), the 2y-10y spread in percentage points, the 3m-10y spread in percentage points, and a yield curve classification string (normal, flat, or inverted) for the requested date.","failureModes":["Date requested is a weekend or US market holiday — no Treasury data published for that day","Date is in the future — data not yet available","Date is before Treasury data history begins — returns error","Malformed date format — expects YYYY-MM-DD","Service temporarily unavailable on Render infrastructure (cold start delay)"],"whenToPreferThis":"Use this endpoint when you need a complete snapshot of the US Treasury yield curve for a specific date, including pre-computed spread calculations and a human-readable curve shape label. It is ideal when you need the full curve in one call rather than fetching individual tenors separately. Prefer this over a generic spread endpoint when you want both the raw rates and the spread in a single response.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T04:27:24.301Z","isFirstParty":false,"canonicalSlug":"us-treasury-yield-curve-api-f9a03b93"}