Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

FRED Get Release Tables

เอกสาร API
https://api.sandbase.ai/v1/api/fred/release-tables

Get Release Tables from FRED. Returns the official FRED API response unchanged.

ราคา
$0.00001USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 4 ไม่บังคับ

Playground

อินพุต
The id for a release. integer, required
The release table element id you would like to retrieve. integer, optional When the parameter is not passed, the root(top most) element for the release is given.
Response format. Only json is supported.
A flag to indicate that observations need to be returned. Observation value and date will only be returned for a series type element. One of the following strings: 'true', 'false'. optional, default: false
The observation date to be included with the returned release table. YYYY-MM-DD formatted string, optional, default: 9999-12-31 (latest available)
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

FRED Get Release Tables API

Returns the table structure of a FRED release as a set of elements, such as sections, groups and series. It needs a release_id. Without an element_id, it returns the top-level elements of the release.

Use cases

  • List the top-level sections of a release, for example the sections of release 53.
  • Walk a release table one element at a time by passing each element_id back into the request.
  • Find the series_id behind a table line so you can pull its data.
  • Add include_observation_values to get observation values and dates for series elements in a table.

Request

curl -X POST "https://api.sandbase.ai/v1/api/fred/release-tables" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"release_id": 53, "file_type": "json"}'

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

Parameters

NameTypeRequiredDescription
release_idintegerYesThe id for a release. integer, required
element_idintegerNoThe release table element id you would like to retrieve. integer, optional When the parameter is not passed, the root(top most) element for the release is given.
file_typestringNoResponse format. Only json is supported.
include_observation_valuesstringNoA flag to indicate that observations need to be returned. Observation value and date will only be returned for a series type element. One of the following strings: 'true', 'false'. optional, default: false
observation_datestringNoThe observation date to be included with the returned release table. YYYY-MM-DD formatted string, optional, default: 9999-12-31 (latest available)

Example response

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

{
  "elements": {
    "13690": {
      "children": [],
      "element_id": 13690,
      "level": "0",
      "line": null,
      "name": "Section 1 - Domestic Product and Income",
      "parent_id": null,
      "release_id": 53,
      "series_id": null,
      "type": "section"
    },
    "15424": {
      "children": [],
      "element_id": 15424,
      "level": "0",
      "line": null,
      "name": "Section 6 - Income and Employment by Industry",
      "parent_id": null,
      "release_id": 53,
      "series_id": null,
      "type": "section"
    },
    "15425": {
      "children": [],
      "element_id": 15425,
      "level": "0",
      "line": null,
      "name": "Section 7 - Supplemental Tables",
      "parent_id": null,
      "release_id": 53,
      "series_id": null,
      "type": "section"
    },
    "291652": {
      "children": [],
      "element_id": 291652,
      "level": "0",
      "line": null,
      "name": "Section 8 - Not Seasonally Adjusted",
      "parent_id": null,
      "release_id": 53,
      "series_id": null,
      "type": "section"
    },
    "4081": {
      "children": [],
      "element_id": 4081,
      "level": "0",
      "line": null,
      "name": "Section 2 - Personal Income and Outlays",
      "parent_id": null,
      "release_id": 53,
      "series_id": null,
      "type": "section"
    },
    "5221": {
      "children": [],
      "element_id": 5221,
      "level": "0",
      "line": null,
      "name": "Section 3 - Government Current Receipts and Expenditures",
      "parent_id": null,
      "release_id": 53,
      "series_id": null,
      "type": "section"
    },
    "5402": {
      "children": [],
      "element_id": 5402,
      "level": "0",
      "line": null,
      "name": "Section 4 - Foreign Transactions",
      "parent_id": null,
      "release_id": 53,
      "series_id": null,
      "type": "section"
    },
    "7579": {
      "children": [],
      "element_id": 7579,
      "level": "0",
      "line": null,
      "name": "Section 5 - Saving and Investment",
      "parent_id": null,
      "release_id": 53,
      "series_id": null,
      "type": "section"
    }
  },
  "release_id": "53"
}

Response fields

FieldMeaning
elementsObject keyed by element id. Each value describes one element of the release table.
elements.*.element_idNumeric id of the element. Pass it as element_id to request that element.
elements.*.nameDisplay name of the element, such as Section 1 - Domestic Product and Income.
elements.*.typeKind of element. In this response all elements are section.
elements.*.childrenList of child elements under this element. It is empty in this response.
elements.*.parent_idElement id of the parent. It is null for top-level elements.
elements.*.levelDepth of the element in the table, as a string. Top-level sections show 0.
elements.*.series_id / elements.*.lineFRED series id and table line for the element. Both are null for sections.
release_idThe release id that the table belongs to, returned as a string.

Notes

  • Get the release_id from FRED Get Releases. Example: 53.
  • Element ids are the keys of elements. Use one as element_id to look at that part of the table.
  • Observation values and dates appear only for series type elements, and only when include_observation_values is true.
  • Use observation_date in YYYY-MM-DD format to pick the date for the returned observations. Use FRED Get Series Observations for the full history of a series.

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 Release Tables API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/fred/release-tables โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

FRED Get Release Tables API ราคาเท่าไร?

$0.00001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

FRED Get Release Tables API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: release_id (integer). ตัวเลือก: element_id (integer), file_type (หนึ่งใน json), include_observation_values (หนึ่งใน true, false) และ observation_date (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

FRED Get Release Tables API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ FRED ไหม?

ไม่จำเป็น FRED Get Release Tables ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง FRED API แยกต่างหาก