series_idstringerforderlich
The FRED series_id you want to request maps data for. Not all series that are in FRED have geographical data. string, required
https://api.sandbase.ai/v1/api/fred/geo-series-dataGeoFRED Series Data from FRED. Returns the official FRED API response unchanged.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
Returns map data for a FRED series that has geographic values, such as per-state figures for one date. You pass a series_id like WIPCPI, and you can add date or start_date to pick the time period.
curl -X POST "https://api.sandbase.ai/v1/api/fred/geo-series-data" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"series_id": "WIPCPI", "file_type": "json"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
series_id | string | Yes | The FRED series_id you want to request maps data for. Not all series that are in FRED have geographical data. string, required |
date | string | No | The date you want to request series group data from. YYYY-MM-DD formatted string, optional |
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 |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"meta": {
"data": {
"2025-01-01": [
{
"code": "01",
"region": "Alabama",
"series_id": "ALPCPI",
"value": 59754
}
]
},
"frequency": "Annual",
"region": "state",
"seasonality": "Not Seasonally Adjusted",
"title": "2025 Per Capita Personal Income by State (Dollars)",
"units": "Dollars"
}
}
| Field | Meaning |
|---|---|
meta.title | Name of the data set, including the year, the measure and the region type. |
meta.units | Unit of the values, such as Dollars. |
meta.frequency / meta.seasonality | How often the series is published (for example Annual) and whether it is seasonally adjusted. |
meta.region | Type of geographic region the values cover, such as state. |
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, such as Alabama. |
meta.data.*[].code | Short region code. For states it looks like a two-digit string such as 01. |
meta.data.*[].series_id | FRED series ID for that region's own series, such as ALPCPI. |
meta.data.*[].value | Value for that region on that date, in the units given by meta.units. |
series_id is required. Not every FRED series has geographic data.date to request one date, or start_date to pull a range. Both use YYYY-MM-DD format.series_id. Pass it to FRED Get Series Observations to get that region's history.$0.00001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1/api/fred/geo-series-data" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"file_type": "json",
"series_id": "WIPCPI"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
series_idstringerforderlichThe FRED series_id you want to request maps data for. Not all series that are in FRED have geographical data. string, required
datestringThe date you want to request series group data from. YYYY-MM-DD formatted string, optional
file_typestringResponse format. Only json is supported.
Standard: "json"
Mögliche Werte: 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
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
FRED GeoFRED Series DataDiese API FRED | $0.00001 pro Aufruf | JSON |
FRED | $0.00001 pro Aufruf | JSON |
FRED | $0.00001 pro Aufruf | JSON |
FRED | $0.00001 pro Aufruf | JSON |
FRED | $0.00001 pro Aufruf | JSON |
FRED | $0.00001 pro Aufruf | JSON |
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/fred/geo-series-data mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.00001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: series_id (string). Optional: date (string), file_type (eines von json) und start_date (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. FRED GeoFRED Series Data läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für FRED API beantragen.