# U.S. Treasury API

> 3 public methods for U.S. Treasury (treasury.gov), each 1 credit per completed run.

Unofficial. Not affiliated with or endorsed by U.S. Treasury.

- Page: https://fous.com/methods/treasury.gov

## Methods

### [Get Treasury yields](https://fous.com/methods/home.treasury.gov/get-treasury-yields.md)

`home.treasury.gov/get_treasury_yields`, read. Gets official daily Treasury par yield curve rates for a date, or the latest published date on or before it.

Returns: date, 14 maturity yields in percent, page_url

### [Get national debt](https://fous.com/methods/home.treasury.gov/get-national-debt.md)

`home.treasury.gov/get_national_debt`, read. Returns US national debt (Debt to the Penny) for a given date, or the latest published day. Dates without a record use the previous published day.

Returns: date, total public debt outstanding, debt held by the public, intragovernmental holdings

### [Get reporting exchange rates](https://fous.com/methods/treasury.gov/get-reporting-exchange-rates.md)

`treasury.gov/get_reporting_exchange_rates`, read. Gets the U.S. Treasury quarterly reporting exchange rate for a country or currency on a given date. If that quarter has no published record, it uses the latest preceding quarter.

Returns: country, currency, currency per USD, effective date, record date
