Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

FRED category

API dokümanları
https://api.sandbase.ai/v1/api/fred/category

category from FRED. Returns the official FRED API response unchanged.

Fiyat
$0.00001USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
0 gerekli · 2 isteğe bağlı

Oynatma Alanı

Girdi
The id for a category. integer, default: 0 (root category)
Response format. Only json is supported.
ÇıktıHazır

Çıktınız burada görünecek

Girdileri tamamlayın, ardından Çalıştır'a tıklayın.

API README

FRED category API

Returns the name and parent of one FRED category. It takes an optional category_id, and the default 0 returns the root category.

Use cases

  • Look up the name of a FRED category when you only have its numeric id.
  • Walk up the FRED category tree by following parent_id from a known category.
  • Confirm that a category_id exists before you request its child categories or series.

Request

curl -X POST "https://api.sandbase.ai/v1/api/fred/category" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"file_type": "json"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
category_idintegerNoThe id for a category. integer, default: 0 (root category)
file_typestringNoResponse format. Only json is supported.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "categories": [
    {
      "id": 0,
      "name": "Categories",
      "parent_id": 0
    }
  ]
}

Response fields

FieldMeaning
categories[]List of matching categories. It holds one item for the requested category_id.
categories[].idNumeric id of the category. The root category has id 0.
categories[].nameDisplay name of the category. The root category is named Categories.
categories[].parent_idId of the parent category. The root category shows 0 as its own parent.

Notes

Pricing

$0.00001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
FRED$0.00001 çağrı başınaJSON
FRED$0.00001 çağrı başınaJSON
FRED$0.00001 çağrı başınaJSON
FRED$0.00001 çağrı başınaJSON
FRED$0.00001 çağrı başınaJSON
FRED$0.00001 çağrı başınaJSON

Sorular

SSS

FRED category API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/fred/category adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

FRED category API'sinin fiyatı nedir?

çağrı başına $0.00001, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

FRED category API'si hangi parametreleri kabul eder?

Gerekli parametre yoktur. İsteğe bağlı: category_id (integer) ve file_type (json arasından biri). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

FRED category API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir FRED geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. FRED category, 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.