{"uid":"cap_4ERP4w8JKVQC0rIrfdfMW","slug":"u-s-treasury-economic-data-api-b91c48ed","name":"U.S. Treasury Economic Data API","description":"U.S. Treasury economic data: daily par yield curve (yields), total public debt (debt), average interest rates on Treasury securities (interest-rates), or Treasury reporting exchange rates by country (fx). Latest observations first. Not charged on errors.","url":"https://x402-domain-check.vercel.app/econ/treasury?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","required":["dataset"],"properties":{"limit":{"type":"integer","default":10,"maximum":60,"minimum":1},"country":{"type":"string","description":"fx only: country name, e.g. Canada, Euro Zone, Japan"},"dataset":{"enum":["yields","debt","interest-rates","fx"],"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VpfUlD96E765lF1ZHoxIs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns U.S. Treasury economic datasets including par yield curves, total public debt, average interest rates on Treasury securities, and Treasury reporting exchange rates by country.","exampleAgentPrompt":"Pull the latest 10 Treasury par yield curve observations from the U.S. Treasury economic data endpoint — I want to see where yields are sitting right now across the curve.","exampleUseCases":[{"title":"Daily yield curve monitoring","prompt":"Fetch me the last 20 daily par yield curve readings from the U.S. Treasury so I can track how the yield curve has shifted this month."},{"title":"Public debt trend analysis","prompt":"Get me the 30 most recent total U.S. public debt observations from the Treasury dataset so I can chart the debt trajectory over the past month."},{"title":"FX rate lookup for Canada","prompt":"What is the Treasury reporting exchange rate for Canada? Pull the latest 5 observations from the Treasury FX dataset."}],"resultDescription":"A list of economic observations returned in reverse chronological order (latest first). Each record includes the observation date and relevant data values: yield percentages by maturity (yields), total debt in dollars (debt), average interest rate percentages (interest-rates), or exchange rate values with country name (fx). The number of records returned is controlled by the limit parameter (1–60, default 10).","failureModes":["Invalid dataset enum value returns an error (must be one of: yields, debt, interest-rates, fx)","Country parameter provided for non-fx dataset has no effect or may cause an error","Limit out of range (below 1 or above 60) returns a validation error","Underlying Treasury data source temporarily unavailable causes a 5xx error; not charged on errors","Missing required dataset query parameter returns a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need authoritative, official U.S. Treasury economic data including yield curves, public debt totals, Treasury interest rates, or Treasury FX rates. It is ideal for financial analysis agents, economic dashboards, or compliance workflows that require government-sourced macroeconomic data. Prefer this over third-party financial data APIs when official Treasury provenance matters and you need recent observations without setting up direct Treasury API integrations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-13T12:43:51.917Z","isFirstParty":false,"canonicalSlug":"u-s-treasury-economic-data-api-b91c48ed"}