datestringzorunlu
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.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
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 anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
datestringzorunluThe date you want to pull a series group data from. YYYY-MM-DD formatted string, required
frequencystringzorunluFrequency 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
Olası değerler: d, w, bw, m, q, sa, a, wef, weth, wew, wetu, wem, wesu, wesa, bwew, bwem
region_typestringzorunluThe 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
Olası değerler: bea, msa, frb, necta, state, country, county, censusregion
seasonstringzorunluThe 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_groupstringzorunluThe ID for a group of series found in FRED. string, required
unitsstringzorunluThe 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
Varsayılan: "avg"
Olası değerler: avg, sum, eop
file_typestringResponse format. Only json is supported.
Varsayılan: "json"
Olası değerler: 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
Varsayılan: "lin"
Olası değerler: lin, chg, ch1, pch, pc1, pca, cch, cca, log
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
FRED | $0.00001 çağrı başına | JSON |
FRED | $0.00001 çağrı başına | JSON |
FRED | $0.00001 çağrı başına | JSON |
FRED | $0.00001 çağrı başına | JSON |
FRED | $0.00001 çağrı başına | JSON |
FRED | $0.00001 çağrı başına | JSON |
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/fred/geo-regional-data adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.00001, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: date (string), frequency (d, w, bw, m, q, sa, a, wef, weth, wew, wetu, wem, wesu, wesa, bwew, bwem arasından biri), region_type (bea, msa, frb, necta, state, country, county, censusregion arasından biri), season (string), series_group (string) ve units (string). İsteğe bağlı: aggregation_method (avg, sum, eop arasından biri), file_type (json arasından biri), start_date (string) ve transformation (lin, chg, ch1, pch, pc1, pca, cch, cca, log arasından biri). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. FRED GeoFRED Regional Data, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. FRED API erişimi için ayrıca başvuru yapmanız gerekmez.