{"uid":"cap_bPeNHTamhMIjeTMTU4_SS","slug":"api-lastlookdata-com-b5400f1b","name":"LastLook Data — 30-Year Treasury Yield for Specific Date","description":"LastLook Data — 30-year Treasury yield for a specific date. Alias for /api/date?id=DGS30&d=YYYY-MM-DD.","url":"https://api.lastlookdata.com/api/treasury/date","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","required":["d"],"properties":{"d":{"type":"string","description":"Date in YYYY-MM-DD format"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"d":"2023-03-15"}}},"response":{"date":"2023-03-15","note":"Source: Federal Reserve Bank of St. Louis (FRED)","series":"DGS30 - 30-Year Treasury Constant Maturity Rate","service":"LastLook Data","yield_percent":3.7}},"exampleRequest":{"d":"2023-03-15"},"tags":["x402"],"displayCostAmount":"0.01","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.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_SxLRi6LUIyn9Ro7vS3YVB","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 30-year US Treasury constant maturity yield (DGS30) for a specific historical date.","exampleAgentPrompt":"What was the 30-year US Treasury yield on March 15, 2023? Pull the DGS30 rate for that exact date.","exampleUseCases":[{"title":"Yield on Fed rate hike day","prompt":"What was the 30-year Treasury yield on November 2, 2022, the day the Fed raised rates by 75 basis points? I want to see where long-term rates stood at that moment."},{"title":"Historical mortgage rate research","prompt":"I'm trying to understand where long-term borrowing costs were back in January 2019. Can you look up the 30-year Treasury yield for January 10, 2019?"},{"title":"Compare yields across market events","prompt":"Pull the 30-year Treasury yield for March 23, 2020 — that was near the COVID market bottom — so I can compare it to where rates are today."}],"resultDescription":"Returns the 30-year US Treasury constant maturity yield (DGS30) for the requested date, typically as a numeric percentage value (e.g. 3.84) along with the date queried.","failureModes":["Date falls on a weekend or federal holiday when markets are closed — no data available for that date","Date is out of the supported historical range — series may not go back far enough","Invalid date format (not YYYY-MM-DD) — request will fail with a validation error","Future dates — no yield data available yet","Missing required 'd' query parameter — returns error"],"whenToPreferThis":"Use this endpoint when you need the 30-year Treasury yield (DGS30) for a single specific historical date. Prefer this over the /api/current endpoint when you need a past value, and prefer it over the /api/recent or /api/date generic endpoints when you specifically want the 30-year tenor without specifying a series ID manually.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:51:12.628Z","isFirstParty":false}