Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

FRED Get Tags Series

API 文档
https://api.sandbase.ai/v1/api/fred/tags-series

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

价格
$0.00001美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 8 个可选

Playground

输入
A semicolon delimited list of tag names that series match all of. String, required, no default value. Example value: 'slovenia;food'. Filter results to series having both tags 'slovenia' and 'food'. See the related request fred/tags .
A semicolon delimited list of tag names that series match none of. String, optional, no default value. Example value: 'alchohol;quarterly'. Filter results to series having neither tag 'alchohol' nor tag 'quarterly'.
Response format. Only json is supported.
11000
The maximum number of results to return. integer between 1 and 1000, optional, default: 1000 范围:1 到 1000。
non-negative integer, optional, default: 0 最小值:0。
Order results by values of the specified attribute. One of the following strings: 'series_id', 'title', 'units', 'frequency', 'seasonal_adjustment', 'realtime_start', 'realtime_end', 'last_updated', 'observation_start', 'observation_end', 'popularity', 'group_popularity'. optional, default: series_i
The end of the real-time period. For more information, see Real-Time Periods . YYYY-MM-DD formatted string, optional, default: today's date
The start of the real-time period. For more information, see Real-Time Periods . YYYY-MM-DD formatted string, optional, default: today's date
Sort results is ascending or descending order for attribute values specified by order_by. One of the following strings: 'asc', 'desc'. optional, default: asc
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

API README

FRED Get Tags Series API

Returns the FRED data series that carry all of the tags you list. You send one or more tag names in tag_names, and the response lists matching series with their title, units, frequency and date range.

Use cases

  • List every FRED series tagged usa and quarterly to build a catalog of U.S. quarterly indicators.
  • Sort matches by popularity to find the most used series for a topic.
  • Exclude unwanted tags with exclude_tag_names to narrow a broad tag down to the series you need.
  • Page through all matches to sync series IDs and metadata into your own database.

Request

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

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

Parameters

NameTypeRequiredDescription
tag_namesstringYesA semicolon delimited list of tag names that series match all of. String, required, no default value. Example value: 'slovenia;food'. Filter results to series having both tags 'slovenia' and 'food'. See the related reque
exclude_tag_namesstringNoA semicolon delimited list of tag names that series match none of. String, optional, no default value. Example value: 'alchohol;quarterly'. Filter results to series having neither tag 'alchohol' nor tag 'quarterly'.
file_typestringNoResponse format. Only json is supported.
limitintegerNoThe maximum number of results to return. integer between 1 and 1000, optional, default: 1000
offsetintegerNonon-negative integer, optional, default: 0
order_bystringNoOrder results by values of the specified attribute. One of the following strings: 'series_id', 'title', 'units', 'frequency', 'seasonal_adjustment', 'realtime_start', 'realtime_end', 'last_updated', 'observation_start',
realtime_endstringNoThe end of the real-time period. For more information, see Real-Time Periods . 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 . YYYY-MM-DD formatted string, optional, default: today's date
sort_orderstringNoSort results is ascending or descending order for attribute values specified by order_by. One of the following strings: 'asc', 'desc'. optional, default: asc

Example response

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

{
  "count": 679198,
  "limit": 1000,
  "offset": 0,
  "order_by": "series_id",
  "realtime_end": "2026-11-03",
  "realtime_start": "2026-11-03",
  "seriess": [
    {
      "frequency": "Quarterly",
      "frequency_short": "Q",
      "group_popularity": 1,
      "id": "101458USN",
      "last_updated": "2026-09-08 09:11:33-05",
      "notes": "Further information related to the Quarterly Financial Report survey can be foun…",
      "observation_end": "2026-04-01",
      "observation_start": "2000-10-01",
      "popularity": 1,
      "realtime_end": "2026-11-03",
      "realtime_start": "2026-11-03",
      "seasonal_adjustment": "Not Seasonally Adjusted"
    }
  ],
  "sort_order": "asc"
}

Response fields

FieldMeaning
countTotal number of series that match the tag filter. Use it with limit and offset to page through results.
limit / offset / order_by / sort_orderEcho of the paging and sorting settings used for this response.
realtime_start / realtime_endThe real-time period applied to the request, as YYYY-MM-DD dates. Each series item repeats these values.
seriess[].idThe FRED series ID, for example 101458USN. Use it to look up the series in other FRED calls.
seriess[].titleFull name of the series.
seriess[].frequency / seriess[].frequency_shortHow often the series is observed, as a full word (Quarterly) and a short code (Q).
seriess[].units / seriess[].units_shortThe unit of the values, as a full label (Millions of Dollars) and a short label.
seriess[].seasonal_adjustment / seriess[].seasonal_adjustment_shortWhether the series is seasonally adjusted, as a full label (Not Seasonally Adjusted) and a short code (NSA).
seriess[].observation_start / seriess[].observation_endFirst and last observation dates of the series.
seriess[].popularity / seriess[].group_popularityPopularity scores for the series and for its group of related series.

Notes

  • The series list is under the key seriess (with a double s).
  • Use limit (1 to 1000) and offset to page. Compare offset plus limit against count to know when to stop.
  • Get valid tag names from FRED Get Tags. Separate several names with a semicolon, for example usa;quarterly.
  • Pass a series id to FRED Get Series Observations to fetch the data values.

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

问题

常见问题

如何使用 FRED Get Tags Series API?

向 https://api.sandbase.ai/v1/api/fred/tags-series 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

FRED Get Tags Series API 的价格是多少?

每次调用 $0.00001,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

FRED Get Tags Series API 接受哪些参数?

必填:tag_names (string)。 可选:exclude_tag_names (string), file_type(json 之一), limit (integer), offset (integer), order_by(series_id, title, units, frequency, seasonal_adjustment, realtime_start, realtime_end, last_updated, observation_start, observation_end, popularity, group_popularity 之一) 和 realtime_end (string) 以及另外 2 项。 Parameters 表和本页的 Playground 列出了每个字段。

FRED Get Tags Series API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 FRED 开发者账户或 API key 吗?

不需要。FRED Get Tags Series 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 FRED API 访问权限。