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

AAA Lowest State Prices

APIドキュメント
https://api.sandbase.ai/v1/api/aaa/lowest-state-prices

Returns all states sorted by lowest average regular gas price ascending. Useful for identifying the cheapest states for gasoline.

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

プレイグラウンド

入力
利用可能な入力スキーマがありません
出力準備完了

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

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

API README

AAA Lowest State Prices

Returns every US state with its average fuel figures per grade, sorted by regular gasoline from lowest to highest. It takes no input. Each row has values for regular, mid_grade, premium and diesel.

Use cases

  • Find the cheapest states for regular gasoline for a road trip or fuel budget.
  • Rank states by regular in a dashboard or chart.
  • Compare diesel and premium values across low-cost states for fleet planning.
  • Track how the cheapest states change by saving the response on a schedule.

Request

curl -X POST "https://api.sandbase.ai/v1/api/aaa/lowest-state-prices" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

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

Example response

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

{
  "data": {
    "states": [
      {
        "diesel": 5.491,
        "mid_grade": 3.8096,
        "premium": 4.2414,
        "regular": 3.3814,
        "state": "North Carolina"
      }
    ]
  },
  "status": "success"
}

Response fields

FieldMeaning
data.states[]List of states. The list is sorted by regular, lowest first.
data.states[].stateFull name of the state, for example North Carolina.
data.states[].regularAverage value for regular gasoline in the state. Rows are ordered by this value.
data.states[].mid_gradeAverage value for mid-grade gasoline in the state.
data.states[].premiumAverage value for premium gasoline in the state.
data.states[].dieselAverage value for diesel in the state.
statusResult of the call. The value is success when the request worked.

Notes

  • This API has no parameters. Send an empty JSON object {}.
  • Fuel values are plain numbers with up to four decimal places. The response does not show a currency or unit.

Pricing

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

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
AAA$0.01 / 回非同期 JSON
AAA$0.01 / 回非同期 JSON
AAA$0.01 / 回非同期 JSON
AAA$0.01 / 回非同期 JSON
AAA$0.01 / 回非同期 JSON
AAA$0.02 / 回非同期 JSON

質問

FAQ

AAA Lowest State Prices API はどのように使いますか?

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

AAA Lowest State Prices API の料金はいくらですか?

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

AAA Lowest State Prices API はどのパラメータを受け付けますか?

AAA Lowest State Prices は入力パラメータを取りません。空の JSON ボディを送信してください。

AAA Lowest State Prices API は何を返しますか?

JSON 結果です。このエンドポイントは非同期で実行されるため、レスポンスには完了した結果の取得方法が含まれます。 このページの README にサンプルレスポンスがあります。

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

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