Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

FRED Get Series Observations

APIドキュメント
https://api.sandbase.ai/v1/api/fred/series-observations

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

料金
$0.00001USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 13 件
毎日 100 回まで無料1日あたり最初の 100 回は無料です(組織内で共有)· 00:00 UTC にリセットされます。それ以降は従量課金です。

プレイグラウンド

入力
The id for a series. string, required
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, default: avg One of the following values: 'avg', 'sum', 'eop' avg = Average sum = Sum eop = End of Period avg = Average sum = Sum eop = En
Response format. Only json is supported.
An optional parameter that indicates a lower frequency to aggregate values to. The FRED frequency aggregation feature converts higher frequency data series into lower frequency data series (e.g. converts a monthly data series into an annual data series). In FRED, the highest frequency data is daily,
The maximum number of results to return. integer between 1 and 100000, optional, default: 100000 範囲: 1 から 100000 まで。
The end of the observation period. YYYY-MM-DD formatted string, optional, default: 9999-12-31 (latest available)
The start of the observation period. YYYY-MM-DD formatted string, optional, default: 1776-07-04 (earliest available)
non-negative integer, optional, default: 0 最小: 0。
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 = Observations by Vintage Date, All Observations 3 = Observations by Vintage Date, New and Revised Observations Only 4 = Observations, Initia
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
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
Sort results is ascending or descending observation_date order. One of the following strings: 'asc', 'desc'. optional, default: asc
A key that indicates a data value transformation. string, optional, default: lin (No transformation) One of the following values: 'lin', 'chg', 'ch1', 'pch', 'pc1', 'pca', 'cch', 'cca', 'log' lin = Levels (No transformation) chg = Change ch1 = Change from Year Ago pch = Percent Change pc1 = Percent
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 specified dates in history. Vintage dates can be specified instead of a real-time period using realtime_start and realtime_end. Sometimes it
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

FRED Get Series Observations API

Returns the observations (date and value pairs) for one FRED data series. It needs a series_id, such as GNPCA, and can filter by date range, change the units, or aggregate to a lower frequency.

Use cases

  • Pull the full history of a series such as GNPCA to chart it or load it into a spreadsheet.
  • Request units such as pch or pc1 to get percent changes without calculating them yourself.
  • Convert a monthly series to annual values with frequency and aggregation_method.
  • Fetch a series as it looked on past dates with vintage_dates or realtime_start and realtime_end to test models on the data known at that time.

Request

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

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
series_idstringYesThe id for a series. string, required
aggregation_methodstringNoA key that indicates the aggregation method used for frequency aggregation. This parameter has no affect if the frequency parameter is not set. string, optional, default: avg One of the following values: 'avg', 'sum', 'e
file_typestringNoResponse format. Only json is supported.
frequencystringNoAn optional parameter that indicates a lower frequency to aggregate values to. The FRED frequency aggregation feature converts higher frequency data series into lower frequency data series (e.g. converts a monthly data s
limitintegerNoThe maximum number of results to return. integer between 1 and 100000, optional, default: 100000
observation_endstringNoThe end of the observation period. YYYY-MM-DD formatted string, optional, default: 9999-12-31 (latest available)
observation_startstringNoThe start of the observation period. YYYY-MM-DD formatted string, optional, default: 1776-07-04 (earliest available)
offsetintegerNonon-negative integer, optional, default: 0
output_typeintegerNoAn 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 = Observations by Vintage Date, All Observations 3 = Observat
realtime_endstringNoThe 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_startstringNoThe 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
sort_orderstringNoSort results is ascending or descending observation_date order. One of the following strings: 'asc', 'desc'. optional, default: asc
unitsstringNoA key that indicates a data value transformation. string, optional, default: lin (No transformation) One of the following values: 'lin', 'chg', 'ch1', 'pch', 'pc1', 'pca', 'cch', 'cca', 'log' lin = Levels (No transformat
vintage_datesstringNoA 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 specified dates in history. Vintage dates can be specified in

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "count": 97,
  "file_type": "json",
  "limit": 100000,
  "observation_end": "9999-12-31",
  "observation_start": "1776-07-04",
  "observations": [
    {
      "date": "1929-01-01",
      "realtime_end": "2026-10-30",
      "realtime_start": "2026-10-30",
      "value": "1202.659"
    }
  ],
  "offset": 0,
  "order_by": "observation_date",
  "output_type": 1,
  "realtime_end": "2026-10-30",
  "realtime_start": "2026-10-30",
  "sort_order": "asc"
}

Response fields

FieldMeaning
countTotal number of observations that match the request. In the example it is 97.
observations[].dateDate of the observation in YYYY-MM-DD format. For this annual series each date is January 1 of a year.
observations[].valueValue of the observation as a string. Convert it to a number before you calculate with it.
observations[].realtime_start / observations[].realtime_endStart and end of the real-time period in which this value was the current one. Both are YYYY-MM-DD dates.
observation_start / observation_endObservation date range used for the request. The defaults 1776-07-04 and 9999-12-31 mean no limit.
unitsTransformation applied to the values. lin means levels with no transformation.
sort_order / order_bySort direction and the field used to sort the observations. The example uses asc and observation_date.
limit / offsetPage size and starting position used for this response. Use them to page through long series.
output_typeOutput type used for the response. The example uses 1, which is observations by real-time period.

Notes

  • series_id is required. To find an ID, use FRED Search Series.
  • Page through long series with limit (1 to 100000) and offset. Compare offset plus the number of returned rows with count to know when to stop.
  • To see the title, units and frequency of a series, call FRED Get Series.
  • To see the dates on which past values were revised, call FRED Get Series Vintage Dates.

Pricing

$0.00001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
FRED$0.00001 / 回JSON
FRED$0.00001 / 回JSON
FRED$0.00001 / 回JSON
FRED$0.00001 / 回JSON
FRED$0.00001 / 回JSON
FRED$0.00001 / 回JSON

質問

FAQ

FRED Get Series Observations API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/fred/series-observations に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

FRED Get Series Observations API の料金はいくらですか?

1回あたり $0.00001。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが SandBase 残高からこの料金で課金されます。サブスクリプションはありません。

FRED Get Series Observations API はどのパラメータを受け付けますか?

必須: series_id (string)。 任意: aggregation_method(avg, sum, eop のいずれか), file_type(json のいずれか), frequency(d, w, bw, m, q, sa, a, wef, weth, wew, wetu, wem, wesu, wesa, bwew, bwem のいずれか), limit (integer), observation_end (string) と observation_start (string) と他 7 件。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

FRED Get Series Observations API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

FRED の開発者アカウントまたは API key は必要ですか?

いいえ。FRED Get Series Observations は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。FRED の API アクセスを別途申請する必要はありません。