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 Category Series

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

Get Category 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 · 11 tùy chọn

Phòng thử nghiệm

Đầu vào
The id for a category. integer, required
A semicolon delimited list of tag names that series match none of. String, optional, no filtering by tags by default. Example value: 'discontinued;annual'. Filter results to series having neither tag 'discontinued' nor tag 'annual'. Parameter exclude_tag_names requires that parameter tag_names also
Response format. Only json is supported.
The value of the filter_variable attribute to filter results by. String, optional, no filter by default
The attribute to filter results by. On of the following strings: 'frequency', 'units', 'seasonal_adjustment'. optional, no filter by default
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
A semicolon delimited list of tag names that series match all of. String, optional, no filtering by tags by default Example value: 'income;bea'. Filter results to series having both tags 'income' and 'bea'. See the related request fred/tags .
Đầ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 Category Series API

Returns the list of FRED data series that belong to one FRED category. It needs a category_id and returns each series with its title, units, frequency, seasonal adjustment and observation date range.

Use cases

  • List every series in a trade or economics category to build a catalog of available indicators.
  • Filter a category by frequency or seasonal_adjustment to find only monthly, seasonally adjusted series.
  • Sort a category by popularity to find the most used series first.
  • Spot discontinued series by checking titles and observation_end dates before you build on them.

Request

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

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

Parameters

NameTypeRequiredDescription
category_idintegerYesThe id for a category. integer, required
exclude_tag_namesstringNoA semicolon delimited list of tag names that series match none of. String, optional, no filtering by tags by default. Example value: 'discontinued;annual'. Filter results to series having neither tag 'discontinued' nor t
file_typestringNoResponse format. Only json is supported.
filter_valuestringNoThe value of the filter_variable attribute to filter results by. String, optional, no filter by default
filter_variablestringNoThe attribute to filter results by. On of the following strings: 'frequency', 'units', 'seasonal_adjustment'. optional, no filter by default
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
tag_namesstringNoA semicolon delimited list of tag names that series match all of. String, optional, no filtering by tags by default Example value: 'income;bea'. Filter results to series having both tags 'income' and 'bea'. See the relat

Example response

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

{
  "count": 47,
  "limit": 1000,
  "offset": 0,
  "order_by": "series_id",
  "realtime_end": "2026-11-03",
  "realtime_start": "2026-11-03",
  "seriess": [
    {
      "frequency": "Monthly",
      "frequency_short": "M",
      "group_popularity": 26,
      "id": "AITGCBN",
      "last_updated": "2026-10-28 07:32:37-05",
      "notes": "This advance estimate represents the current month statistics of nearly complete…",
      "observation_end": "2026-09-01",
      "observation_start": "2026-09-01",
      "popularity": 6,
      "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 in the category that match the request. Use it with limit and offset to page through results.
limit / offset / order_by / sort_orderEcho of the paging and sorting settings applied to this response.
realtime_start / realtime_endReal-time period used for the request, as YYYY-MM-DD dates. Each series entry repeats them.
seriess[].idFRED series ID, such as AITGCBN. Pass it to other series APIs.
seriess[].titleHuman readable name of the series.
seriess[].frequency / seriess[].frequency_shortHow often the series is observed, as a full word (Monthly) and a short code (M).
seriess[].units / seriess[].units_shortUnits of the series values, in long and short form, such as Millions of Dollars and Mil. of $.
seriess[].seasonal_adjustment / seasonal_adjustment_shortWhether the series is seasonally adjusted, in long and short form (SA, NSA).
seriess[].observation_start / seriess[].observation_endFirst and last observation dates of the series, formatted YYYY-MM-DD.
seriess[].popularity / seriess[].group_popularityPopularity scores for the series and for its group of related series. Higher numbers are more popular.

Notes

  • The list key is spelled seriess in the response.
  • limit defaults to 1000 and offset defaults to 0. Raise offset to read further pages when count is larger than limit.
  • last_updated uses the format YYYY-MM-DD HH:MM:SS followed by a UTC offset. The notes field appears only on some series.
  • To get values for a series, call FRED Get Series Observations with its id. To browse subcategories, use FRED Get Category Children.

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 Category Series?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/fred/category-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 Category 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 Category Series chấp nhận những tham số nào?

Bắt buộc: category_id (integer). Tùy chọn: exclude_tag_names (string), file_type (một trong số json), filter_value (string), filter_variable (một trong số frequency, units, seasonal_adjustment), limit (integer) và offset (integer) và 5 mục khác. Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API FRED Get Category 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 Category 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.