Every chart on yieldcurve.pro is backed by a query. Now you can run those queries yourself.
We shipped a REST API covering the same data that powers the site: daily Treasury yields (all 13 tenors, back to 2001), auction results and grades, implied forward and spot curves, ACM term premia, regime classifications, and FOMC rate decisions. JSON in, JSON out, no screen-scraping required.
Generate a Bearer token from your Account Dashboard. The token starts with ycp_ and shows once — copy it or lose it. Every request includes it in the Authorization header:
GET /api/v1/curves
Authorization: Bearer ycp_abc123...
The base URL is https://www.yieldcurve.pro/api/v1. Full documentation lives at /api.
Nine data endpoints, each mirroring a page on the site:
?tenors=2+Yr&tenors=10+YrPlus a /health endpoint (no auth) for monitoring.
Every endpoint returns the same envelope:
{
"data": [...],
"count": 252,
"endpoint": "levels"
}
Dates default to the trailing year if omitted. NaN values serialize as null. Floats round to 6 decimal places. Rate limit headers (X-RateLimit-Limit, X-RateLimit-Remaining) ship with every response so you always know where you stand.
Three tiers, reset at midnight UTC:
| Endpoint Group | Free | Basic | Pro |
|---|---|---|---|
| curves, levels, slopes, auctions, fed | 10/day | 100/day | 500/day |
| forwards, premia, regimes | 5/day | 50/day | 250/day |
The free tier ships with every account. Enough to prototype a model, test an integration, or pull a daily snapshot. Basic and Pro are for production workloads.
The API returns the same data practitioners look at on the site, in a format machines can consume. A few starting points:
If you have an account, you already have API access. Generate a token, hit /api/v1/curves, and see what comes back. The documentation has the full parameter reference for every endpoint.
Sign in to leave a comment.
Comments (0)