Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

FRED category

APIドキュメント
https://api.sandbase.ai/v1/api/fred/category

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

料金
$0.00001USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 0 件 · 任意 2 件

プレイグラウンド

入力
The id for a category. integer, default: 0 (root category)
Response format. Only json is supported.
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

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.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
FRED categoryこの 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

質問

FAQ

FRED category API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/fred/category に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

FRED category API の料金はいくらですか?

1回あたり $0.00001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

FRED category API はどのパラメータを受け付けますか?

必須パラメータはありません。 任意: category_id (integer) と file_type(json のいずれか)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

FRED category API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

FRED の開発者アカウントまたは API key は必要ですか?

いいえ。FRED category は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。FRED の API アクセスを別途申請する必要はありません。