U.S. Treasury API
Returns US public debt, interest rates, exchange rates, yield curve, securities auctions and Daily Treasury Statement figures.
View as Markdown| GET | /ustreasury/debt | Total public debt outstanding to the penny, newest first, one row per day. |
| GET | /ustreasury/rates | Average interest rates on Treasury securities by security, newest first. |
| GET | /ustreasury/exchangeRates | Treasury reporting exchange rates per U.S. dollar, newest first, optionally for one country and currency. |
| GET | /ustreasury/yieldCurve | The daily Treasury par yield curve: the yield in percent of each maturity, from one month to thirty years, newest day first. |
| GET | /ustreasury/auctions | Treasury securities auctions, newest first: the auction date, the offering and the bidding results of each issue. |
| GET | /ustreasury/dailyTreasuryStatement | Daily Treasury Statement: the Treasury General Account balance, or the deposits and withdrawals of operating cash, one row per account or category and day, newest first. |
| GET | /ustreasury/interestExpense | Interest expense on the public debt by type of security, per month, newest first. |
| GET | /ustreasury/goldReserve | The gold reserve of the United States by facility and form, newest first, with its fine troy ounces and book value. |
| GET | /ustreasury/publicDebt | Public debt outstanding by security type and class, in millions of dollars, newest first. |
| GET | /ustreasury/buybacks | Treasury buyback operations, newest first: the date, the maturity bucket and the par amount offered and accepted in each. |
| GET | /ustreasury/budget | Federal budget receipts, outlays and deficit for each fiscal month, from the Monthly Treasury Statement, newest report first. A negative deficit is a surplus. |
debt
/v1/ustreasury/debtTotal public debt outstanding to the penny, newest first, one row per day.
Parameters
limitinteger | Items per page, 1 to 100. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
date | string |
debtHeldByPublic | string |
intragovernmentalHoldings | string |
totalPublicDebt | string |
curl "https://api.hoshime.com/v1/ustreasury/debt" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ustreasury/debt", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ustreasury/debt", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "date": "2026-11-04", "debtHeldByPublic": "32765175912225.50", "intragovernmentalHoldings": "7785054135383.65", "totalPublicDebt": "40550230047609.15" }, { "date": "2026-11-03", "debtHeldByPublic": "32765330118710.62", "intragovernmentalHoldings": "7782073452274.20", "totalPublicDebt": "40547403570984.82" } ], "meta": { "cached": false, "endpoint": "debt", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "ustreasury", "requestId": "req_2Xb9kQ…", "units": 1 } }
rates
/v1/ustreasury/ratesAverage interest rates on Treasury securities by security, newest first.
Parameters
limitinteger | Items per page, 1 to 100. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
averageRate | number (double) |
date | string |
security | string |
securityType | string |
curl "https://api.hoshime.com/v1/ustreasury/rates" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ustreasury/rates", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ustreasury/rates", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "averageRate": 4.014, "date": "2026-10-31", "security": "Treasury Bills", "securityType": "Marketable" }, { "averageRate": 3.399, "date": "2026-10-31", "security": "Treasury Notes", "securityType": "Marketable" } ], "meta": { "cached": false, "endpoint": "rates", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "ustreasury", "requestId": "req_2Xb9kQ…", "units": 1 } }
exchangeRates
/v1/ustreasury/exchangeRatesTreasury reporting exchange rates per U.S. dollar, newest first, optionally for one country and currency.
Parameters
countryCurrencystring | Country and currency as the Treasury writes it, such as Canada-Dollar. Omit for every country. |
limitinteger | Items per page, 1 to 100. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
countryCurrency | string |
date | string |
rate | number (double) |
curl "https://api.hoshime.com/v1/ustreasury/exchangeRates" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ustreasury/exchangeRates", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ustreasury/exchangeRates", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "countryCurrency": "Afghanistan-Afghani", "date": "2026-09-30", "rate": 65.15 }, { "countryCurrency": "Albania-Lek", "date": "2026-09-30", "rate": 80.75 } ], "meta": { "cached": false, "endpoint": "exchangeRates", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "ustreasury", "requestId": "req_2Xb9kQ…", "units": 1 } }
yieldCurve
/v1/ustreasury/yieldCurveThe daily Treasury par yield curve: the yield in percent of each maturity, from one month to thirty years, newest day first.
Parameters
yearinteger | Calendar year. Defaults to the current year (UTC). e.g. 2025 |
lengthinteger | Trading days to return, newest first, from 1 to 260. default 10e.g. 5 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
16 fields
items | Curve[] |
date | string |
month1 | number (double) |
month2 | number (double) |
month3 | number (double) |
month4 | number (double) |
month6 | number (double) |
year1 | number (double) |
year10 | number (double) |
year2 | number (double) |
year20 | number (double) |
year3 | number (double) |
year30 | number (double) |
year5 | number (double) |
year7 | number (double) |
year | any |
curl "https://api.hoshime.com/v1/ustreasury/yieldCurve?year=2025&length=5" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ustreasury/yieldCurve?year=2025&length=5", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ustreasury/yieldCurve?year=2025&length=5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "date": "2025-12-31", "month1": 3.74, "month2": 3.67, "month3": 3.67, "month4": 3.63, "month6": 3.59, "year1": 3.48, "year10": 4.18, "year2": 3.47, "year20": 4.79, "year3": 3.55, "year30": 4.84, "year5": 3.73, "year7": 3.94 }, { "date": "2025-12-30", "month1": 3.65, "month2": 3.65, "month3": 3.65, "month4": 3.63, "month6": 3.59, "year1": 3.47, "year10": 4.14, "year2": 3.45, "year20": 4.76, "year3": 3.5, "year30": 4.81, "year5": 3.68, "year7": 3.89 } ], "year": 2025 }, "meta": { "cached": false, "endpoint": "yieldCurve", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "ustreasury", "requestId": "req_2Xb9kQ…", "units": 1 } }
auctions
/v1/ustreasury/auctionsTreasury securities auctions, newest first: the auction date, the offering and the bidding results of each issue.
Parameters
securityTypestring | Security type: Bill, Note or Bond. Default all.BillNoteBonde.g. Note |
securityTermstring | Exact security term, such as 13-Week, 2-Year or 10-Year. Default all. e.g. 10-Year |
cusipstring | Exact CUSIP of one issue. |
fromstring | Earliest auction date, YYYY-MM-DD. |
tostring | Latest auction date, YYYY-MM-DD. |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
limitinteger | Items per page, 1 to 500. default 20e.g. 5 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
14 fields
auctionDate | string |
averageMedianYield | number (double) |
bidToCoverRatio | number (double) |
cusip | string |
highDiscountRate | number (double) |
highInvestmentRate | number (double) |
highYield | number (double) |
issueDate | string |
maturityDate | string |
offeringAmount | string |
securityTerm | string |
securityType | string |
totalAccepted | string |
totalTendered | string |
curl "https://api.hoshime.com/v1/ustreasury/auctions?securityType=Note&securityTerm=10-Year&limit=5" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ustreasury/auctions?securityType=Note&securityTerm=10-Year&limit=5", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ustreasury/auctions?securityType=Note&securityTerm=10-Year&limit=5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "auctionDate": "2026-08-12", "averageMedianYield": 4.63, "bidToCoverRatio": 2.53, "cusip": "91282CRF0", "highDiscountRate": 0, "highInvestmentRate": 0, "highYield": 4.683, "issueDate": "2026-08-17", "maturityDate": "2036-08-15", "offeringAmount": "42000000000", "securityTerm": "10-Year", "securityType": "Note", "totalAccepted": "52623557100", "totalTendered": "116957209500" }, { "auctionDate": "2026-07-23", "averageMedianYield": 2.37, "bidToCoverRatio": 2.3, "cusip": "91282CRE3", "highDiscountRate": 0, "highInvestmentRate": 0, "highYield": 2.438, "issueDate": "2026-07-31", "maturityDate": "2036-07-15", "offeringAmount": "21000000000", "securityTerm": "10-Year", "securityType": "Note", "totalAccepted": "23321784700", "totalTendered": "50653344700" } ], "meta": { "cached": false, "endpoint": "auctions", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "ustreasury", "requestId": "req_2Xb9kQ…", "units": 1 } }
dailyTreasuryStatement
/v1/ustreasury/dailyTreasuryStatementDaily Treasury Statement: the Treasury General Account balance, or the deposits and withdrawals of operating cash, one row per account or category and day, newest first.
Parameters
tablestring | operatingCashBalance: the TGA balances. depositsWithdrawals: the deposits and withdrawals of operating cash. Default operatingCashBalance.operatingCashBalancedepositsWithdrawalsdefault operatingCashBalancee.g. operatingCashBalance |
accountstring | Exact account type (operatingCashBalance) or transaction category (depositsWithdrawals), such as Treasury General Account (TGA) Opening Balance. Default all. e.g. Treasury General Account (TGA) Opening Balance |
fromstring | Earliest record date, YYYY-MM-DD. |
tostring | Latest record date, YYYY-MM-DD. |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
limitinteger | Items per page, 1 to 500. default 100e.g. 5 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
account | string |
fiscalYearToDateAmount | string |
monthToDateAmount | string |
recordDate | string |
today | string |
transactionType | string |
curl "https://api.hoshime.com/v1/ustreasury/dailyTreasuryStatement?table=operatingCashBalance&account=Treasury+General+Account+%28TGA%29+Opening+Balance&limit=5" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ustreasury/dailyTreasuryStatement?table=operatingCashBalance&account=Treasury+General+Account+%28TGA%29+Opening+Balance&limit=5", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ustreasury/dailyTreasuryStatement?table=operatingCashBalance&account=Treasury+General+Account+%28TGA%29+Opening+Balance&limit=5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "account": "Treasury General Account (TGA) Opening Balance", "fiscalYearToDateAmount": "984046", "monthToDateAmount": "951593", "recordDate": "2026-11-04", "today": "938208", "transactionType": "" }, { "account": "Treasury General Account (TGA) Opening Balance", "fiscalYearToDateAmount": "984046", "monthToDateAmount": "951593", "recordDate": "2026-11-03", "today": "930757", "transactionType": "" } ], "meta": { "cached": false, "endpoint": "dailyTreasuryStatement", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "ustreasury", "requestId": "req_2Xb9kQ…", "units": 1 } }
interestExpense
/v1/ustreasury/interestExpenseInterest expense on the public debt by type of security, per month, newest first.
Parameters
limitinteger | Items per page, 1 to 100. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
category | string |
date | string |
fiscalYearToDateAmount | string |
group | string |
monthAmount | string |
type | string |
curl "https://api.hoshime.com/v1/ustreasury/interestExpense" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ustreasury/interestExpense", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ustreasury/interestExpense", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "category": "INTEREST EXPENSE ON PUBLIC ISSUES", "date": "2026-10-31", "fiscalYearToDateAmount": "45766318454.04", "group": "ACCRUED INTEREST EXPENSE", "monthAmount": "45766318454.04", "type": "Treasury Notes" }, { "category": "INTEREST EXPENSE ON PUBLIC ISSUES", "date": "2026-10-31", "fiscalYearToDateAmount": "15959724945.17", "group": "ACCRUED INTEREST EXPENSE", "monthAmount": "15959724945.17", "type": "Treasury Bonds" } ], "meta": { "cached": false, "endpoint": "interestExpense", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "ustreasury", "requestId": "req_2Xb9kQ…", "units": 1 } }
goldReserve
/v1/ustreasury/goldReserveThe gold reserve of the United States by facility and form, newest first, with its fine troy ounces and book value.
Parameters
limitinteger | Items per page, 1 to 100. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
bookValue | string |
date | string |
facility | string |
fineTroyOunces | string |
form | string |
location | string |
curl "https://api.hoshime.com/v1/ustreasury/goldReserve" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ustreasury/goldReserve", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ustreasury/goldReserve", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "bookValue": "1851599995.81", "date": "2026-10-31", "facility": "Mint Held Gold - Deep Storage", "fineTroyOunces": "43853707.279", "form": "Gold Bullion", "location": "Denver, CO" }, { "bookValue": "6221097412.78", "date": "2026-10-31", "facility": "Mint Held Gold - Deep Storage", "fineTroyOunces": "147341858.382", "form": "Gold Bullion", "location": "Fort Knox, KY" } ], "meta": { "cached": false, "endpoint": "goldReserve", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "ustreasury", "requestId": "req_2Xb9kQ…", "units": 1 } }
publicDebt
/v1/ustreasury/publicDebtPublic debt outstanding by security type and class, in millions of dollars, newest first.
Parameters
limitinteger | Items per page, 1 to 100. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
date | string |
heldByPublic | string |
intragovernmental | string |
securityClass | string |
securityType | string |
total | string |
curl "https://api.hoshime.com/v1/ustreasury/publicDebt" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ustreasury/publicDebt", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ustreasury/publicDebt", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "date": "2026-10-31", "heldByPublic": "7381282.0645", "intragovernmental": "388.632", "securityClass": "Bills", "securityType": "Marketable", "total": "7381670.6965" }, { "date": "2026-10-31", "heldByPublic": "16333473.147", "intragovernmental": "3544.7395", "securityClass": "Notes", "securityType": "Marketable", "total": "16337017.8865" } ], "meta": { "cached": false, "endpoint": "publicDebt", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "ustreasury", "requestId": "req_2Xb9kQ…", "units": 1 } }
buybacks
/v1/ustreasury/buybacksTreasury buyback operations, newest first: the date, the maturity bucket and the par amount offered and accepted in each.
Parameters
limitinteger | Items per page, 1 to 100. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
date | string |
issuesAccepted | string |
maturityBucket | string |
operationType | string |
parAccepted | string |
parOffered | string |
securityType | string |
settlementDate | string |
curl "https://api.hoshime.com/v1/ustreasury/buybacks" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ustreasury/buybacks", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ustreasury/buybacks", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "date": "…", "issuesAccepted": "…", "maturityBucket": "…", "operationType": "…", "parAccepted": "…", "parOffered": "…", "securityType": "…", "settlementDate": "…" } ], "meta": { "cached": false, "endpoint": "buybacks", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "ustreasury", "requestId": "req_2Xb9kQ…", "units": 1 } }
budget
/v1/ustreasury/budgetFederal budget receipts, outlays and deficit for each fiscal month, from the Monthly Treasury Statement, newest report first. A negative deficit is a surplus.
Parameters
limitinteger | Items per page, 1 to 100. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
date | string |
deficit | string |
fiscalYear | string |
month | string |
outlays | string |
receipts | string |
curl "https://api.hoshime.com/v1/ustreasury/budget" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ustreasury/budget", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ustreasury/budget", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "date": "…", "deficit": "…", "fiscalYear": "…", "month": "…", "outlays": "…", "receipts": "…" } ], "meta": { "cached": false, "endpoint": "budget", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "ustreasury", "requestId": "req_2Xb9kQ…", "units": 1 } }