US Treasury

Official Treasury Fiscal Data series: debt, rates, outlays, auctions

This Actor pulls official US Treasury Fiscal Data API datasets (debt to the penny, average interest rates, MTS Table 1, record-setting auctions) for feeds you configure and emits source-linked change rows.

Not FX mid-market rates. Not financial advice. Not a trading signal. Public Treasury APIs only.

from $9.00 / 1,000 Treasury fiscal data change row ($0.009 per delivered apify-default-dataset-item). No Actor Start. Unchanged runs that write zero default-dataset rows typically charge $0.00 on current PPE.

Open US Treasury Data Scraper on Apify

US Treasury Data Scraper, not a neighboring Actor

Use this page for this Actor’s job. Use Forex Exchange Rate Scraper for FX snapshots; Use Grants.gov Scraper for Grants.gov notices; Use Campaign Finance Scraper for FEC/LDA filings.

This ActorForex Exchange Rate ScraperGrants.gov ScraperCampaign Finance Scraper
Intent US Treasury Data ScraperFX snapshotsGrants.gov noticesFEC/LDA filings
Primary input see schemabaseCurrencyfeeds / watchTermsfeeds / watchTerms
What it reads Public sources listed on the Store pageopen.er-api.comGrants.gov APIOpenFEC / LDA.gov
Primary output Dataset rows billed per live PPEexchange-rate snapshotsfunding digest rowscampaign digest rows
Not this job Not FX mid-market rates. Not financial advice. Not a trading signal. Public Treasury APIs only.Not Treasury fiscal seriesNot TED/SAM.gov bid queuesNot OFAC sanctions or Federal Register

Store ID: taroyamada/treasury-fiscal-data-digest. Respect source terms, robots.txt, and rate limits.

Use cases

How is US Treasury Data Scraper different from Forex Exchange Rate Scraper and Grants.gov Scraper?

US Treasury Data Scraper (taroyamada/treasury-fiscal-data-digest): This Actor pulls official US Treasury Fiscal Data API datasets (debt to the penny, average interest rates, MTS Table 1, record-setting auctions) for feeds you configure and emits source-linked change rows. Not FX mid-market rates. Not financial advice. Not a trading signal. Public Treasury APIs only. Forex Exchange Rate Scraper is for FX snapshots (input baseCurrency; open.er-api.com; exchange-rate snapshots). Not Treasury fiscal series. Grants.gov Scraper is for Grants.gov notices (input feeds / watchTerms; Grants.gov API; funding digest rows). Not TED/SAM.gov bid queues. Campaign Finance Scraper is for FEC/LDA filings (input feeds / watchTerms; OpenFEC / LDA.gov; campaign digest rows). Not OFAC sanctions or Federal Register.

What input is required?

Live required fields: feeds. Published exampleRunInput is shown below. Quickstart: configure one or more feeds, keep delivery=dataset, and run once to seed the baseline

Field Type Default Notes
feeds object[] required empty required Treasury feeds to monitor (required). One entry per watch target. Each feed produces one summary digest row. Use debt_to_penny for headline debt, avg_interest_rates for monthly rates, mts_table_1 for receipts/outlays, and record_setting_auction for auction record watches. Each item supports id, name, source, securityTypes, securityDescriptions, securityTerms, lookbackDays, maxEvidence.
watchTerms string empty Watch terms (comma-separated). Keywords to flag in digest evidence titles, summaries, and source dimensions. Use this for terms like deficit, 10-Year, Treasury Bills, or Bonds.
lookbackDays integer 90 Global lookback window (days). Used to fetch enough history for comparisons and to determine recency for record-setting auction dates. 90 works well for recurring runs; 365 is broader for discovery. min=1 max=730
maxEvidencePerFeed integer 10 Max evidence rows per feed. Upper bound on nested evidence rows per feed digest. Keep it low for summary-first output; raise it only when you intentionally want a broader panel of securities or auction terms. min=1 max=50
delivery string enum dataset Delivery mode. dataset stores results in the Apify dataset. webhook posts the digest JSON to webhookUrl. enum: dataset, webhook
webhookUrl string empty Webhook URL (required when delivery=webhook). POST target for the digest payload. Leave empty for dataset delivery.
datasetMode string enum new_only Dataset output mode. all emits every feed digest row. action_needed emits only feeds with critical signals or watch-term hits. new_only emits only feeds whose evidence changed since the prior run. enum: all, action_needed, new_only
snapshotKey string treasury-fiscal-data-digest-state Snapshot key for recurring state. Stable key used to persist seen evidence hashes across recurring runs so changedSinceLastRun and new_only mode stay comparable. Use the same key across scheduled runs.
debtToPennyApiUrl string https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny Debt to the Penny API URL. Treasury Fiscal Data endpoint for daily debt totals. No authentication required.
avgInterestRatesApiUrl string https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/avg_interest_rates Average interest rates API URL. Treasury Fiscal Data endpoint for monthly average rates across marketable and non-marketable debt.
mtsTable1ApiUrl string https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v1/accounting/mts/mts_table_1 Monthly Treasury Statement Table 1 API URL. Treasury Fiscal Data endpoint for receipts, outlays, and surplus/deficit summary rows.
recordSettingAuctionApiUrl string https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/record_setting_auction Record-setting auction API URL. Treasury Fiscal Data endpoint for record-setting auction highs and lows by security type and term.
requestTimeoutSeconds integer 30 HTTP request timeout (seconds). Timeout for each Treasury API or webhook request. min=5 max=120
notifyOnNoNew boolean false Emit digest even when no changes were found. When true, every feed always produces a digest row even if no new evidence was detected. When false, stable feeds are omitted from all mode output.
dryRun boolean false Dry run (skip snapshot writes and webhook delivery). Validate and fetch without persisting state or posting webhooks. Safe for testing input shapes.
nowIso string empty Override current time (ISO string, for testing). Set a fixed ISO timestamp to make runs deterministic against fixture data.
debtFixturePath string empty Debt fixture file path (testing). Local JSON fixture for offline debt_to_penny tests.
ratesFixturePath string empty Rates fixture file path (testing). Local JSON fixture for offline avg_interest_rates tests.
mtsFixturePath string empty MTS fixture file path (testing). Local JSON fixture for offline mts_table_1 tests.
auctionFixturePath string empty Auction fixture file path (testing). Local JSON fixture for offline record_setting_auction tests.

Published Store example run input (omitted fields take schema defaults):

{
  "feeds": [
    {
      "id": "debt-daily",
      "name": "Debt to the Penny",
      "source": "debt_to_penny"
    },
    {
      "id": "marketable-rates",
      "name": "Marketable Treasury Rates",
      "source": "avg_interest_rates",
      "securityDescriptions": "Treasury Bills,Treasury Notes,Treasury Bonds"
    },
    {
      "id": "monthly-budget",
      "name": "MTS Receipts & Outlays",
      "source": "mts_table_1"
    },
    {
      "id": "record-auctions",
      "name": "Recent Record-Setting Auctions",
      "source": "record_setting_auction",
      "securityTypes": "Bills,Notes",
      "lookbackDays": 180
    }
  ],
  "watchTerms": "deficit,10-Year,Treasury Bills",
  "lookbackDays": 180,
  "maxEvidencePerFeed": 5,
  "delivery": "dataset",
  "datasetMode": "all",
  "snapshotKey": "treasury-fiscal-data-digest-quickstart",
  "notifyOnNoNew": true,
  "dryRun": false
}

Run US Treasury Data Scraper on Apify

How do dataset, webhook, and dry-run delivery work?

delivery defaults to dataset on the live schema. Dataset output is the billable surface when rows are written. webhookUrl is used when delivery is webhook (and typically not during dryRun). dryRun true validates or samples without the usual dataset/webhook side effects described on the Store schema. datasetMode can limit emits to changes_only / changed_only / action_needed versus all. Unchanged runs that write zero default-dataset rows typically charge $0.00 on current PPE.

What does a result contain?

README output fence is truncated or invalid JSON on Store. Illustration head: { "meta": { "feedCount": 4, "totalEvidenceRows": 8, "actionNeededCount": 3, "executiveSummary": { "overallStatus": "action_needed", "brief": "3 feed(s) require review; 4 changed since the last run." } }, "digests": [ { "feedId": "monthly-budget", "status": "action_needed", "headl… Treat README samples as illustrations, not a live coverage guarantee. There is no published output JSON schema on the Store page.

How is US Treasury Data Scraper priced?

Billing is pay per event. The live Store card is from $9.00 / 1,000 Treasury fiscal data change row ($0.009 per delivered apify-default-dataset-item). No Actor Start. Unchanged runs that write zero default-dataset rows typically charge $0.00 on current PPE. Current PPE:

Event Price Emitted when
apify-default-dataset-item (Treasury fiscal data change row) $0.009 Charged for one successfully delivered new or changed Treasury Fiscal Data record.

The published README Cost block is stale versus the live Store pricing tab. README Cost still quotes actor-start $0.01. README Cost quotes dataset-item $0.003; live primary is $0.009 (Treasury fiscal data change row). Live: Treasury fiscal data change row $0.009. This page quotes live PPE only.

from $9.00 / 1,000 Treasury fiscal data change row ($0.009 per delivered apify-default-dataset-item). No Actor Start. Unchanged runs that write zero default-dataset rows typically charge $0.00 on current PPE.

See US Treasury Data Scraper pricing on Apify

Limits to keep in mind

Open US Treasury Data Scraper on Apify

Related pages