datestringआवश्यक
The date you want to pull a series group data from. YYYY-MM-DD formatted string, required
https://api.sandbase.ai/v1/api/fred/geo-regional-dataGeoFRED Regional Data from FRED. Returns the official FRED API response unchanged.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns one value per region for a FRED GeoFRED series group on a single date. You pass a series_group ID, a region_type, a date, a frequency, a season and units.
value for each code.code and series_id of each region.curl -X POST "https://api.sandbase.ai/v1/api/fred/geo-regional-data" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"date": "2023-01-01", "frequency": "a", "region_type": "state", "season": "NSA", "series_group": "882", "units": "Dollars", "file_type": "json"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
date | string | Yes | The date you want to pull a series group data from. YYYY-MM-DD formatted string, required |
frequency | string | Yes | Frequency automatically assigns the default frequency of the map when using the Request Wizard above. The parameter can be used as a frequency aggregation feature. The maps frequency aggregation feature converts higher f |
region_type | string | Yes | The region you want to pull data for. string, required One of the following values: bea msa frb necta state country county censusregion bea msa frb necta state country county censusregion |
season | string | Yes | The seasonality of the series group. string, required, five possible SA (Seasonally Adjusted), NSA (Not Seasonally Adjusted), SSA (Smoothed Seasonally Adjusted), SAAR (Seasonally Adjusted Annual Rate), or NSAAR (Not Seas |
series_group | string | Yes | The ID for a group of series found in FRED. string, required |
units | string | Yes | The units of the series you want to pull. string, required |
aggregation_method | string | No | string, optional, default: avg One of the following values: 'avg', 'sum', 'eop' avg = Average sum = Sum eop = End of Period avg = Average sum = Sum eop = End of Period |
file_type | string | No | Response format. Only json is supported. |
start_date | string | No | The start date you want to request series group data from. This allows you to pull a range of data YYYY-MM-DD formatted string, optional |
transformation | string | No | A key that indicates a data value transformation. string, optional, default: lin (No transformation) One of the following values: 'lin', 'chg', 'ch1', 'pch', 'pc1', 'pca', 'cch', 'cca', 'log' lin = Levels (No transformat |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"meta": {
"data": {
"2023-01-01": [
{
"code": "01",
"region": "Alabama",
"series_id": "ALPCPI",
"value": 54760
}
]
},
"frequency": "Annual",
"region": "state",
"seasonality": "Not Seasonally Adjusted",
"title": "2025 Per Capita Personal Income by State (Dollars)",
"units": "Dollars"
}
}
| Field | Meaning |
|---|---|
meta.title | Title of the map. It names the measure, the region level and the units. |
meta.data | Object keyed by date in YYYY-MM-DD format. Each key holds a list of regional values for that date. |
meta.data.*[].region | Name of the region, for example Alabama. |
meta.data.*[].code | Short code for the region. In this response it is a two-digit string for each state. |
meta.data.*[].series_id | FRED series ID for this region, for example ALPCPI. You can use it with other FRED APIs. |
meta.data.*[].value | Value of the series for the region on that date, in the units named in meta.units. |
meta.frequency / meta.seasonality | Frequency and seasonal adjustment of the data, written out in full, such as Annual and Not Seasonally Adjusted. |
meta.region / meta.units | Region type and units that were applied to the request. |
meta.data is the requested date. The * in a path stands for that date key.series_group values and their details.series_id from a row with FRED Get Series Observations to get the full history for one region.start_date to request a range of dates instead of a single date.$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/geo-regional-data" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"date": "2023-01-01",
"units": "Dollars",
"season": "NSA",
"file_type": "json",
"frequency": "a",
"region_type": "state",
"series_group": "882",
"transformation": "lin",
"aggregation_method": "avg"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
datestringआवश्यकThe date you want to pull a series group data from. YYYY-MM-DD formatted string, required
frequencystringआवश्यकFrequency automatically assigns the default frequency of the map when using the Request Wizard above. The parameter can be used as a frequency aggregation feature. The maps frequency aggregation feature converts higher frequency data series into lower frequency data series (e.g. converts a monthly d
संभावित मान: d, w, bw, m, q, sa, a, wef, weth, wew, wetu, wem, wesu, wesa, bwew, bwem
region_typestringआवश्यकThe region you want to pull data for. string, required One of the following values: bea msa frb necta state country county censusregion bea msa frb necta state country county censusregion
संभावित मान: bea, msa, frb, necta, state, country, county, censusregion
seasonstringआवश्यकThe seasonality of the series group. string, required, five possible SA (Seasonally Adjusted), NSA (Not Seasonally Adjusted), SSA (Smoothed Seasonally Adjusted), SAAR (Seasonally Adjusted Annual Rate), or NSAAR (Not Seasonally Adjusted Annual Rate)
series_groupstringआवश्यकThe ID for a group of series found in FRED. string, required
unitsstringआवश्यकThe units of the series you want to pull. string, required
aggregation_methodstringstring, optional, default: avg One of the following values: 'avg', 'sum', 'eop' avg = Average sum = Sum eop = End of Period avg = Average sum = Sum eop = End of Period
डिफ़ॉल्ट: "avg"
संभावित मान: avg, sum, eop
file_typestringResponse format. Only json is supported.
डिफ़ॉल्ट: "json"
संभावित मान: json
start_datestringThe start date you want to request series group data from. This allows you to pull a range of data YYYY-MM-DD formatted string, optional
transformationstringA key that indicates a data value transformation. string, optional, default: lin (No transformation) One of the following values: 'lin', 'chg', 'ch1', 'pch', 'pc1', 'pca', 'cch', 'cca', 'log' lin = Levels (No transformation) chg = Change ch1 = Change from Year Ago pch = Percent Change pc1 = Percent
डिफ़ॉल्ट: "lin"
संभावित मान: lin, chg, ch1, pch, pc1, pca, cch, cca, log
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| 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/geo-regional-data पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.00001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: date (string), frequency (d, w, bw, m, q, sa, a, wef, weth, wew, wetu, wem, wesu, wesa, bwew, bwem में से एक), region_type (bea, msa, frb, necta, state, country, county, censusregion में से एक), season (string), series_group (string) और units (string)। वैकल्पिक: aggregation_method (avg, sum, eop में से एक), file_type (json में से एक), start_date (string) और transformation (lin, chg, ch1, pch, pc1, pca, cch, cca, log में से एक)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। FRED GeoFRED Regional Data SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से FRED API access के लिए आवेदन करने की आवश्यकता नहीं है।