# FRED Get Series Observations API

> Get Series Observations from FRED. Returns the official FRED API response unchanged.

Source: https://www.sandbase.ai/model/fred/series-observations
API reference: https://www.sandbase.ai/model/fred/series-observations/docs

## Facts

- Provider: FRED
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/fred/series-observations`
- Price: $0 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, fred, economic data
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/fred/series-observations` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `series_id` | string | yes |  |
| `aggregation_method` | string | no | avg, sum, eop |
| `file_type` | string | no | json |
| `frequency` | string | no | d, w, bw, m, q, sa, a, wef, weth, wew, wetu, wem, wesu, wesa, bwew, bwem |
| `limit` | integer | no |  |
| `observation_end` | string | no |  |
| `observation_start` | string | no |  |
| `offset` | integer | no |  |
| `output_type` | integer | no | 1, 2, 3, 4 |
| `realtime_end` | string | no |  |
| `realtime_start` | string | no |  |
| `sort_order` | string | no | asc, desc |
| `units` | string | no | lin, chg, ch1, pch, pc1, pca, cch, cca, log |
| `vintage_dates` | string | no |  |

## FAQ

### How do I use the FRED Get Series Observations API?

Send a POST request to https://api.sandbase.ai/v1/api/fred/series-observations with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the FRED Get Series Observations API cost?

$0 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the FRED Get Series Observations API accept?

Required: series_id (string). Optional: aggregation_method (one of avg, sum, eop), file_type (one of json), frequency (one of d, w, bw, m, q, sa, a, wef, weth, wew, wetu, wem, wesu, wesa, bwew, bwem), limit (integer), observation_end (string) and observation_start (string) and 7 more. The Parameters table and the Playground on this page list every field.

### What does the FRED Get Series Observations API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a FRED developer account or API key?

No. FRED Get Series Observations runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for FRED API access separately.

## README

### FRED Get Series Observations API

Get Series Observations from FRED. Returns the official FRED API response unchanged.

The response is the official FRED API response, unchanged.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "fred/series-observations", "series_id": "<series_id>"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `aggregation_method` | string | No | A key that indicates the aggregation method used for frequency aggregation. This parameter has no affect if the frequency parameter is not set. string, optional |
| `file_type` | string | No | Response format. Only json is supported. |
| `frequency` | string | No | An optional parameter that indicates a lower frequency to aggregate values to. The FRED frequency aggregation feature converts higher frequency data series into |
| `limit` | integer | No | The maximum number of results to return. integer between 1 and 100000, optional, default: 100000 |
| `observation_end` | string | No | The end of the observation period. YYYY-MM-DD formatted string, optional, default: 9999-12-31 (latest available) |
| `observation_start` | string | No | The start of the observation period. YYYY-MM-DD formatted string, optional, default: 1776-07-04 (earliest available) |
| `offset` | integer | No | non-negative integer, optional, default: 0 |
| `output_type` | integer | No | An integer that indicates an output type. integer, optional, default: 1 One of the following values: '1', '2', '3', '4' 1 = Observations by Real-Time Period 2 = |
| `realtime_end` | string | No | The end of the real-time period. For more information, see Real-Time Periods , vintage_dates . YYYY-MM-DD formatted string, optional, default: today's date |
| `realtime_start` | string | No | The start of the real-time period. For more information, see Real-Time Periods , vintage_dates . YYYY-MM-DD formatted string, optional, default: today's date |
| `series_id` | string | Yes | The id for a series. string, required |
| `sort_order` | string | No | Sort results is ascending or descending observation_date order. One of the following strings: 'asc', 'desc'. optional, default: asc |
| `units` | string | No | A key that indicates a data value transformation. string, optional, default: lin (No transformation) One of the following values: 'lin', 'chg', 'ch1', 'pch', 'p |
| `vintage_dates` | string | No | A comma separated string of YYYY-MM-DD formatted dates in history (e.g. 2000-01-01,2005-02-24). Vintage dates are used to download data as it existed on these s |

#### Pricing

Flat price per call. Failed calls are not charged.
