FRED (Federal Reserve Economic Data) · Series observations
fred-stlouisfed-org/economic-data/series_observationsGet market and financial data with FRED (Federal Reserve Economic Data) · Series observations from Alexandria through one Spiral API key. Get the historical values of a known series_id or a pasted fred.stlouisfed.org/series/{id} page URL (monthly US unemployment rate = UNRATE, CPI = CPIAUCSL, real GDP = GDPC1); pick units and frequency from series.available_units / series.available_frequencies. It runs in the background and returns structured JSON. Pay as you go, with no subscription.
Pricing
$0.00873 per call.
Limits
- Runs
- In the background
- Returns
- json
- Longest queue wait
- 1 hour
- Run deadline
- 5 minutes
- Longest run, end to end
- 225 minutes
- Largest inline input
- 1 MB
- Largest input file
- 2 GB
- Largest output
- 5 GB
Input
| Field | Kind | Default | Description |
|---|---|---|---|
series_id required | text | — | FRED series id, e.g. GDP, UNRATE (case-insensitive), or a pasted https://fred.stlouisfed.org/series/{id} page URL or https://fred.stlouisfed.org/graph/fredgraph.csv?id=... URL (its |
limit | number 1 to 10000 | 1000 | Observations per page. |
units | one of lin, chg, ch1, pch, pc1, pca, cch, cca, log | lin | FRED transformation code: lin levels, chg change, ch1 change from year ago, pch percent change, pc1 percent change from year ago, pca compounded annual rate of change, cch continuously compounded rate of change, cca continuously compounded annual rate of change, log natural log. |
offset | number 0 to … | 0 | Zero-based index of the first observation to return, in |
frequency | one of d, w, bw, m, q, sa, a | — | Aggregate to a lower frequency (FRED API codes: d daily, w weekly, bw biweekly, m monthly, q quarterly, sa semiannual, a annual). Omit for the native frequency. |
sort_order | one of asc, desc | asc | Date order of the observations. |
observation_end | text | — | Last observation date (inclusive), YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
observation_start | text | — | First observation date (inclusive), YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
aggregation_method | one of avg, sum, eop | avg | How observations are aggregated when |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "alexandria",
"model": "fred-stlouisfed-org/economic-data/series_observations",
"input": {
"series_id": "<series_id>"
}
}'Frequently asked questions
How much does FRED (Federal Reserve Economic Data) · Series observations cost?
$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use FRED (Federal Reserve Economic Data) · Series observations through an API?
Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "fred-stlouisfed-org/economic-data/series_observations"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.
Do I need an account with Alexandria to use FRED (Federal Reserve Economic Data) · Series observations?
No. Spiral runs it on its own Alexandria account and charges your Spiral balance.
Can my AI agent use FRED (Federal Reserve Economic Data) · Series observations?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.