ParseForge Scrapers

US Treasury Securities Outstanding Scraper

parseforge/treasury-securities-outstanding-scraper

AutomationIntegrationsBusiness

Scrapes US Treasury securities outstanding data from TreasuryDirect.gov by record date. Returns each security as a flat row with its type, issue date, maturity date, interest rate, and total outstanding amount.

Run this scraper See the API call
Total users
2
Monthly active
1
Total runs
86
Bookmarked
0
Rating
Not rated yet
Last modified
9 days ago

Overview

ParseForge

US Treasury Securities Outstanding Scraper

Scrape US Treasury securities outstanding data by date, up to a million records per run. Each row is a security with its issue date, maturity date, interest rate, and outstanding amount. No API key or login. Export to CSV, JSON, Excel, or XML.

The Treasury's official FiscalData API needs registration and rate limits, and it returns nested JSON that is hard to flatten. This Actor reads the public securities outstanding dataset directly, filters by record date, and returns each security as one flat row. You get the same data the Treasury publishes, ready for analysis.

Who uses it What they scrape US Treasury for
Fixed income analysts Monitoring the maturity profile of Treasury debt
Quant researchers Building yield curve models from outstanding issuance
Financial journalists Tracking changes in Treasury issuance patterns
Risk managers Assessing the supply of specific Treasury securities
Data engineers Feeding Treasury data into internal dashboards

What it does

This Actor collects US Treasury securities outstanding records for a given date range and returns each security as a flat row.

  • ๐Ÿ“… Date filtering: set a start date and the Actor returns every security outstanding on or after that date.
  • ๐Ÿ”ข Volume control: cap the run with maxItems, from a single security to a million.
  • ๐Ÿ“„ Flat rows: each security is one record with issue date, maturity date, rate, and amount.
  • ๐Ÿ’พ Multiple exports: download as CSV, JSON, Excel, or XML from the Apify dataset.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with US Treasury data

๐Ÿ“ˆ Track Treasury issuance trends.

A fixed income analyst runs the Actor weekly with a rolling start date to see which maturities the Treasury is issuing most.

๐Ÿงฎ Build a yield curve dataset.

A quant researcher collects all outstanding securities and joins the rates to construct a daily yield curve.

๐Ÿ“ฐ Report on debt supply.

A financial journalist pulls the latest outstanding amounts to write about changes in Treasury borrowing.

๐Ÿ›ก๏ธ Monitor refinancing risk.

A risk manager filters for securities maturing within a year to assess rollover exposure.

๐Ÿ—„๏ธ Populate an internal database.

A data engineer schedules the Actor to load new Treasury records into a warehouse every morning.

Why choose this scraper

What you get
No API key The Actor reads the public dataset directly, so you skip registration and rate limits.
Flat schema Every security is one row, ready for pandas, Excel, or a database.
Full history Start from any date and collect up to a million securities per run.
Apify platform Schedule runs, get webhooks, and integrate with hundreds of apps.

How it compares

This Actor focuses on the securities outstanding dataset, while the competitors below cover broader Treasury fiscal data like debt to the penny and average interest rates.

Feature ParseForge US Treasury Fiscal Data Scraper - Debt & Spending US Treasury FiscalData Scraper API - Debt & Interest Rates US Treasury Fiscal Data Scraper
Securities outstanding records Yes Not listed Not listed Not listed
Individual security details (issue date, maturity, rate, amount) Yes Not listed Not listed Not listed
Debt to the Penny Not listed Yes Yes Yes
Average interest rates on securities Not listed Yes Yes Yes
Filter by record date Yes Not listed Yes Not listed
No API key required Yes Yes Not listed Not listed

Configure the run

Drive the Actor with a start date and an optional maximum number of securities. The date filter runs as records are read, so only securities outstanding on or after that date reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

{
 "startDate": "2026-01-01",
 "maxItems": 10
}

A larger pull:

{
 "startDate": "2026-01-01",
 "maxItems": 200
}

Pricing

Pay-per-result: $0.0085 per result collected. You pay only for the results written to your dataset.

Results collected Approximate cost
100 results $0.85
1,000 results $8.50
10,000 results $85.00

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the US Treasury Securities Outstanding Scraper.
  3. Set your inputs and any filters, then click Start.
  4. Export the results as CSV, Excel, JSON, or XML from the Dataset tab.

Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

Give an AI agent live access to US Treasury through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/treasury-securities-outstanding-scraper"

Then prompt it in plain language to run the scraper and read back the results.

Troubleshooting

Why am I getting no results?

Check your start date. If it is in the future or after the latest data, there will be no records. Try an earlier date, like 2020-01-01.

The run is slow or times out.

Lower maxItems or use a more recent start date. The Actor reads records sequentially, so a smaller range is faster.

I need more than a million securities.

Split your request into multiple runs with different start dates, then merge the datasets.

The output has too many columns.

The Actor returns all fields for each security. Use the Apify dataset export options to select columns, or process the CSV locally.

Can I filter by maturity date?

The Actor only filters by record date. Download the data and filter by maturity date in your own code.

FAQ

Question Answer
What is the source of this data? The Actor reads the US Treasury's public securities outstanding dataset, the same data behind the Treasury's FiscalData API.
Do I need an API key or login? No. The Actor accesses the public dataset directly, so there is no registration or authentication.
What does one row look like? Each row is one Treasury security with fields like issue date, maturity date, interest rate, and outstanding amount. The exact fields are shown in the sample output.
Can I filter by security type, like bills or bonds? The Actor filters by record date only. To filter by type, download the full dataset and filter locally, or use the Treasury's API for more granular queries.
How far back does the data go? The dataset includes securities outstanding from many years back. Set a start date to collect only what you need.
What is the maximum number of securities I can get? You can set maxItems up to 1,000,000 per run. If you need more, run the Actor multiple times with different date ranges.
Can I schedule this Actor to run automatically? Yes. On Apify you can schedule runs daily, weekly, or at any interval, and get notified when new data is ready.
What formats can I export? The dataset can be exported as CSV, JSON, Excel, or XML from the Apify console or API.
Is this data free? The underlying Treasury data is public and free. You only pay for Apify platform usage if you exceed the free tier.
How is this different from the Treasury's FiscalData API? The API requires registration and returns nested JSON. This Actor returns flat rows and needs no key, but it only filters by date, not by other fields.

Related actors

Browse the full ParseForge collection for more scrapers.

๐Ÿ†˜ Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.

โš ๏ธ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by U.S. Department of the Treasury. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

Input

FieldTypeWhat it doesDefault
startDate string Earliest record_date (YYYY-MM-DD). 2026-01-01
maxItems integer How many securities to collect per run. 10

Pricing

from $7.50 per 1,000 results

Charged forWhat it isPrice each
result Single result in the default dataset. $0.0075 to $0.0085

Tiered: the lower figure is the price on a higher Apify plan. Billing and the free credit live on Apify.

API

One POST returns the dataset directly. Same shape for every scraper in the library, so swapping the slug is the only change.

POST ยท run and get results
curl -X POST "https://api.apify.com/v2/acts/parseforge~treasury-securities-outstanding-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "helloWorld": 123
  }'

Examples

Input that runs as-is.

input.json
{
  "helloWorld": 123
}

Reviews

No reviews yet. Be the first.

Issues

We build and maintain this scraper, so a problem with it comes to us. Report it on the Apify listing and the thread stays attached to the scraper where the next person can find it: open an issue.

Broken and urgent, or you would rather not post in public? Write to parseforge@protonmail.com and it reaches the people who wrote it.

Related scrapers

Run US Treasury Securities Outstanding Scraper on Apify All scrapers