> Every Taji docs page as Markdown: https://docs.taji.is/llms.txt

# FRED

The St. Louis Fed's free economic database: point-in-time values and past dates of the US headline releases, such as CPI, jobs and interest rates.

## Before you link

You need a free FRED API key from the St. Louis Fed.

## Link

Start `fred` from Connections in the window. It takes the API key, which Taji seals in the vault.

### Linking

| Step | URL | Controls | Needs (`yours`?) |
|---|---|---|---|
| `account` | https://fredaccount.stlouisfed.org/login/secure/ | `Sign In` and `Create New Account` tabs (`Register` link); on `Create New Account`: `Email Address *`, `Password *`, `Confirm Password *`, `Subscribe to Our Newsletters:` checkboxes (`Economic Research`, `Federal Reserve Education`, `FRED`, `FRASER`, `FRED in the Classroom`), `Create Account` button, `New Account Created` modal (`In what context do you use FRED?`, `Okay`); also `Google Sign In`; account menu `API Keys` link ([login/register](https://fredaccount.stlouisfed.org/login/secure/), fetched 2026-11-18). | `yours` (password to create account / sign in; free, no money) |
| `keys` | https://fredaccount.stlouisfed.org/apikeys | Requires login first (`fredaccount.stlouisfed.org` user account; [API keys doc](https://fred.stlouisfed.org/docs/api/api_key.html), [API v2 keys doc](https://fred.stlouisfed.org/docs/api/fred/v2/api_key.html), fetched 2026-11-18). Exact form and button labels on `/apikeys` are unsourced (302 to login when signed out; public docs name no control labels). | none (agent may request and copy once signed in) |

Terms (`risk`, fetched 2026-11-18):
- [FRED legal](https://fred.stlouisfed.org/legal/) (Prohibitions for FRED® API (l)): you may not `"Use the FRED® API in connection with storing, caching, or archiving any portion of the FRED® Services or FRED® Content; providing any stored, cached, or archived portion of the FRED® Services or FRED® Content to any third party; or incorporating any FRED® Content in any database, compilation, archive, cache, or other medium."` Item (k) prohibits AI/ML development or training (`"in connection with the development or training of any software program or system or machine learning, including, but not limited to, large language models, deep learning, generative artificial intelligence, or any other program or process commonly known as artificial intelligence"`).
- [FRED API Terms of Use](https://fred.stlouisfed.org/docs/api/terms_of_use.html) (Property Rights; Requirements): `"Before using data series owned by third parties for anything other than your own personal use, you must contact the data owner to obtain permission."`; prominent notice required: `"This product uses the FRED® API but is not endorsed or certified by the Federal Reserve Bank of St. Louis."`

## What you get

Point-in-time observations and release dates for US economic series (no trading or accounts). What it serves, cell by cell: [FRED coverage](https://docs.taji.is/reference/coverage/fred.md).

## Behaviour and limits

Measured 2026-10-26 to 2026-10-31; each entry carries its own date.

### API

Measured 2026-10-26 with a registered key unless a source is named; `plugins/fred` is the kernel's only caller, and `economic_walk.py` probes FRED directly with `FRED_API_KEY` to cross-check values. Base `https://api.stlouisfed.org/fred`; every call takes `api_key` and `file_type=json`.

- `releases/dates`: `realtime_start`/`realtime_end` bound the span; `include_release_dates_with_no_data=true`, `order_by=release_date`, `sort_order=asc`, `limit` 1 to 1000 (1001 is a 400), paged by `offset` against `count`. A row is `date`, `release_id`, `release_name`, `release_last_updated`. A span wholly in the future answers 200 with `count` 0.
- `series/observations` with `output_type=2` and `vintage_dates` (comma list of `YYYY-MM-DD`): one row per observation date, one `<SERIES>_<YYYYMMDD>` column per vintage that holds it, `"."` for a missing value. A vintage that does not yet hold an observation has no column in that row (CPIAUCSL 2026-09-01: absent at 10-13, present at 10-14; 2026-08-01 present at both). A `units` other than `lin` renames the columns (`CPIAUCSL_PC1_20261013`).
- Limits on `series/observations`: `realtime_start` after FRED's today is a 400 ("can not be after today's date"); a `vintage_dates` entry after it is a 500 with an `error_message` ("cannot be outside the range 1776-07-04 to `<today>`"). 100 vintages of a monthly series were accepted in one call, and `pc1` and `pch` accepted two. The page caps `vintage_dates` "depending on the series_id, file_type and output_type": "any output_type or other series: 1000 csv, 1000 xlsx, 2000 json, 2000 xml" (fewer for `USRECD` and daily series in csv and xlsx), fetched 2026-12-02. The URL length binds first: measured 2026-12-02 on UNRATE (`file_type=json`, `output_type=1`), 300, 500 and 600 vintages (4.1, 6.7 and 8.0 KB) answered 200 and 700, 1000 and 2000 (9.3, 13.2 and 26.2 KB) a 400 from the edge (an HTML page, not FRED's JSON). The client takes 500 per call.
- `series?series_id=GNPCA` is the key check: a key FRED does not know is a 400, `error_message` "Bad Request. The value for variable api_key is not registered. ...".
- Statuses (P, docs/api/fred/errors.html): 400, 404, 423, 429, 500; the body is `{"error_code","error_message"}`. "Up to 120 requests per minute are allowed before being served a 429 error code. Not complying with the throttling can result in a temporary block." The client admits every request against one budget per key, 120 a minute (`plugins/fred/src/lib.rs`): a short budget refuses unsent as `RateLimited`, and a 429 holds the budget 60 s and answers `RateLimited`, never retrying. The page states no concurrency limit (2026-10-31); the hub's gate holds 16 calls at once, a socket bound only.
- Idle close, 2026-10-31 (keyless GET, idle N s, GET again): the host keeps a connection 420 s and drops it by 600 s. Taji warms every 300 s with the key check above, one request of the 120 a minute.
- No endpoint carries a release time: `releases/dates` rows hold a date only (`release_last_updated` is when FRED's copy changed).
- The calendar is FRED's own, so Taji dates a headline release by Yahoo's calendar where Yahoo lists it (`plugins/yahoo/README.md` § Economic) and by FRED's only where it does not; the FOMC decision never by FRED's. rid 101 (FOMC Press Release) is dated every day. rid 27 (New Residential Construction) is dated on days Census does not release it. rid 95 (M3) dates both Census M3 reports. FRED's HTML showed a GDP release at "8:30 am CT"; BEA has 12:30Z.

#### Terms

P = `fred.stlouisfed.org/legal/` and docs/api/terms_of_use.html, fetched 2026-10-26.

- FRED Services Terms of Use, prohibited item (p): "Store, cache, or archive any portion of the FRED® Services or FRED® Content; provide any stored, cached, or archived portion ... to any third party; or incorporate any FRED® Content in any database, compilation, archive, cache, or other medium." The API prohibitions on `/legal/` repeat it as item (l). Taji therefore holds no FRED value past the read that shows it.
- The FAQ on the legal page: "Don't do any data mining, scraping or extraction of FRED data." The API is the only door.
- Notice to show prominently: "This product uses the FRED® API but is not endorsed or certified by the Federal Reserve Bank of St. Louis."
- Third-party series (notes carry the word "Copyright"): "Before using data series owned by third parties for anything other than your own personal use, you must contact the data owner to obtain permission. The Federal Reserve Bank of St. Louis cannot give you such permission." UMCSENT (University of Michigan Surveys of Consumers) is one: its notes cite the source's copyright and delay the data a month at the source's request.
- The Fed may "impose or adjust the limit on the amount of bandwidth you may use or the number of transactions", and may end a license at any time. The key is the user's own.

## Open

- `units` other than `lin`, `pc1` and `pch`.
- Server-side concurrency ceiling above the hub gate's 16 concurrent calls.
- Form and button labels on `/apikeys` (302s to login when signed out).

## References

- FRED API v1 and v2: https://fred.stlouisfed.org/docs/api/fred/, https://fred.stlouisfed.org/docs/api/fred/v2/index.html
- FRED terms: https://fred.stlouisfed.org/docs/api/terms_of_use.html
- How the plugin works and why: [FRED: how it works](https://docs.taji.is/catalog/fred/architecture.md)
