Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

FRED Get Tags Series

Tài liệu API
https://api.sandbase.ai/v1/api/fred/tags-series

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

Giá
$0.00001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 8 tùy chọn

Phòng thử nghiệm

Đầu vào
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 Phạm vi: 1 đến 1000.
non-negative integer, optional, default: 0 Tối thiểu: 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
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
FRED$0.00001 mỗi lần gọiJSON
FRED$0.00001 mỗi lần gọiJSON
FRED$0.00001 mỗi lần gọiJSON
FRED$0.00001 mỗi lần gọiJSON
FRED$0.00001 mỗi lần gọiJSON
FRED$0.00001 mỗi lần gọiJSON

Câu hỏi

FAQ

Làm thế nào để dùng API FRED Get Tags Series?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/fred/tags-series với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API FRED Get Tags Series có giá bao nhiêu?

$0.00001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API FRED Get Tags Series chấp nhận những tham số nào?

Bắt buộc: tag_names (string). Tùy chọn: exclude_tag_names (string), file_type (một trong số json), limit (integer), offset (integer), order_by (một trong số series_id, title, units, frequency, seasonal_adjustment, realtime_start, realtime_end, last_updated, observation_start, observation_end, popularity, group_popularity) và realtime_end (string) và 2 mục khác. Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API FRED Get Tags Series trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của FRED không?

Không. FRED Get Tags Series chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của FRED.