Historical FRED API Reference
- Last updated: 2026-03-12
- Scope: FRED historical series metrics dataset (
fred_series_metrics)
Endpoint
POST /v1/historical/fred/series_metrics
All requests require X-API-Key.
Request contract
mode: native | aligned_1s(defaultnative)start_date: YYYY-MM-DD | nullend_date: YYYY-MM-DD | nulln_latest_rows: int | nulln_random_rows: int | nullfields: string[] | nullfilters: object[] | null(eq|ne|gt|gte|lt|lte|in|not_in)strict: bool(defaultfalse)
Window selector rules:
- At most one selector mode is allowed:
- date-window (
start_dateand/orend_date) n_latest_rowsn_random_rows
- date-window (
- If no selector is provided, full available history is returned (
earliest -> now).
Date semantics:
start_dateis inclusive at00:00:00Z.end_dateis inclusive via next-day exclusive bound.- Invalid dates (for example
2022-02-30) return contract error.
Response contract
Response fields:
modesourcesourcesrow_countschemawarningsrowsrights_staterights_provisional
Schema taxonomy
Native rows:
metric_idsource_idmetric_namemetric_unitmetric_value_stringmetric_value_intmetric_value_floatmetric_value_boolobserved_at_utcdimensions_jsonprovenance_jsoningested_at_utc
Aligned rows:
aligned_at_utcsource_idmetric_namemetric_unitmetric_value_stringmetric_value_intmetric_value_floatmetric_value_booldimensions_jsonprovenance_jsonlatest_ingested_at_utcrecords_in_bucketvalid_from_utcvalid_to_utc_exclusive
Warnings and strict behavior
Window warnings:
WINDOW_LATEST_ROWS_MUTABLEWINDOW_RANDOM_SAMPLE
FRED publish-freshness warnings:
FRED_SOURCE_PUBLISH_MISSINGFRED_SOURCE_PUBLISH_STALE
strict=true escalates warnings to 409 (STRICT_MODE_WARNING_FAILURE).
Errors
200: success404: no data in selected window409: contract/auth/strict-warning failures503: runtime/backend/warning-evaluation/alert-audit failures