series_idstringobbligatorio
The id for a series. string, required
https://api.sandbase.ai/v1/api/fred/series-categoriesGet Series Categories from FRED. Returns the official FRED API response unchanged.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
Returns the FRED categories that a data series belongs to. It needs a series_id, such as GNPCA. Each category comes with its id, name and parent_id.
parent_id values.curl -X POST "https://api.sandbase.ai/v1/api/fred/series-categories" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"series_id": "GNPCA", "file_type": "json"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
series_id | string | Yes | The id for a series. string, required |
file_type | string | No | Response format. Only json is supported. |
realtime_end | string | No | The end of the real-time period. For more information, see Real-Time Periods . YYYY-MM-DD formatted string, optional, default: today's date |
realtime_start | string | No | The start of the real-time period. For more information, see Real-Time Periods . YYYY-MM-DD formatted string, optional, default: today's date |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"categories": [
{
"id": 106,
"name": "GDP/GNP",
"parent_id": 18
}
]
}
| Field | Meaning |
|---|---|
categories[] | List of categories the series belongs to. A series can belong to more than one category. |
categories[].id | Numeric ID of the category. Pass it as the category ID to the other FRED category APIs. |
categories[].name | Display name of the category, for example GDP/GNP. |
categories[].parent_id | id of the parent category. Use it to walk up the category tree. |
series_id from the FRED series page URL, or from FRED Search Series.id with FRED Get Category Children to see subcategories, or with FRED Get Category Series to list series in the category.realtime_start and realtime_end are optional and use YYYY-MM-DD format.$0.00001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/fred/series-categories" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"file_type": "json",
"series_id": "GNPCA"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
series_idstringobbligatorioThe id for a series. string, required
file_typestringResponse format. Only json is supported.
Predefinito: "json"
Valori possibili: json
realtime_endstringThe end of the real-time period. For more information, see Real-Time Periods . YYYY-MM-DD formatted string, optional, default: today's date
realtime_startstringThe start of the real-time period. For more information, see Real-Time Periods . YYYY-MM-DD formatted string, optional, default: today's date
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
FRED Get Series CategoriesQuesta API FRED | $0.00001 per chiamata | JSON |
FRED | $0.00001 per chiamata | JSON |
FRED | $0.00001 per chiamata | JSON |
FRED | $0.00001 per chiamata | JSON |
FRED | $0.00001 per chiamata | JSON |
FRED | $0.00001 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/fred/series-categories con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.00001 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: series_id (string). Facoltativi: file_type (uno tra json), realtime_end (string) e realtime_start (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. FRED Get Series Categories funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API FRED.