release_idintegerआवश्यक
The id for a release. integer, required
https://api.sandbase.ai/v1/api/fred/release-tablesGet Release Tables from FRED. Returns the official FRED API response unchanged.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
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.
element_id back into the request.series_id behind a table line so you can pull its data.include_observation_values to get observation values and dates for series elements in a table.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.
| Name | Type | Required | Description |
|---|---|---|---|
release_id | integer | Yes | The id for a release. integer, required |
element_id | integer | No | 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. |
file_type | string | No | Response format. Only json is supported. |
include_observation_values | string | No | 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 |
observation_date | string | No | The observation date to be included with the returned release table. YYYY-MM-DD formatted string, optional, default: 9999-12-31 (latest available) |
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"
}
| Field | Meaning |
|---|---|
elements | Object keyed by element id. Each value describes one element of the release table. |
elements.*.element_id | Numeric id of the element. Pass it as element_id to request that element. |
elements.*.name | Display name of the element, such as Section 1 - Domestic Product and Income. |
elements.*.type | Kind of element. In this response all elements are section. |
elements.*.children | List of child elements under this element. It is empty in this response. |
elements.*.parent_id | Element id of the parent. It is null for top-level elements. |
elements.*.level | Depth of the element in the table, as a string. Top-level sections show 0. |
elements.*.series_id / elements.*.line | FRED series id and table line for the element. Both are null for sections. |
release_id | The release id that the table belongs to, returned as a string. |
release_id from FRED Get Releases. Example: 53.elements. Use one as element_id to look at that part of the table.include_observation_values is true.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.$0.00001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/fred/release-tables" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"file_type": "json",
"release_id": 53,
"observation_date": "9999-12-31",
"include_observation_values": "false"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
release_idintegerआवश्यकThe id for a release. integer, required
element_idintegerThe 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_typestringResponse format. Only json is supported.
डिफ़ॉल्ट: "json"
संभावित मान: json
include_observation_valuesstringA 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
डिफ़ॉल्ट: "false"
संभावित मान: true, false
observation_datestringThe observation date to be included with the returned release table. YYYY-MM-DD formatted string, optional, default: 9999-12-31 (latest available)
डिफ़ॉल्ट: "9999-12-31"
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
FRED Get Release Tablesयह 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 |
प्रश्न
https://api.sandbase.ai/v1/api/fred/release-tables पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.00001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: release_id (integer)। वैकल्पिक: element_id (integer), file_type (json में से एक), include_observation_values (true, false में से एक) और observation_date (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। FRED Get Release Tables SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से FRED API access के लिए आवेदन करने की आवश्यकता नहीं है।