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

AAA Highest Recorded Prices

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

Returns all-time highest recorded average gas prices for a specific state or nationally. If no state_code is provided, returns national records.

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

プレイグラウンド

入力
Two-letter US state code (e.g. TX, CA). Omitting returns national highest recorded prices.
出力準備完了

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

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

API README

AAA Highest Recorded Prices

Returns the all-time highest recorded average gas prices from AAA, with the date each record was set. It takes an optional two-letter state_code. Without it, the API returns national records.

Use cases

  • Compare today's gas price with the national record for regular unleaded gas.
  • Show the record diesel price and its date in a fuel cost dashboard.
  • Check how close a state's current average is to its all-time high.
  • Add historical context to a news story about rising fuel prices.

Request

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

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

Parameters

NameTypeRequiredDescription
state_codestringNoTwo-letter US state code (e.g. TX, CA). Omitting returns national highest recorded prices.

Example response

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

{
  "data": {
    "highest_recorded": {
      "Diesel": {
        "date": "9/22/26",
        "price": "6.5276"
      },
      "Regular Unleaded": {
        "date": "6/14/22",
        "price": "5.0165"
      }
    },
    "location": "National"
  },
  "status": "success"
}

Response fields

FieldMeaning
data.locationThe area the records cover. The value is National when no state_code is sent.
data.highest_recordedMap of fuel type names to record entries. The sample has two fuel types: Diesel and Regular Unleaded. Each entry holds a price and a date.
data.highest_recorded.Diesel.priceRecord average price for Diesel, as a string.
data.highest_recorded.Diesel.dateDate the Diesel record was set, in M/D/YY format.
statusShows success when the call worked.

Notes

  • Prices are returned as strings with four decimal places. Convert them to numbers before you do math.
  • Pass a two-letter code such as TX or CA in state_code to get records for one state.
  • To compare a record with current prices, call AAA National Average or AAA State Gas Prices.
  • The call runs asynchronously. Read the result from outputs[0].data after the task completes.

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 Highest Recorded Prices API はどのように使いますか?

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

AAA Highest Recorded Prices API の料金はいくらですか?

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

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

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

AAA Highest Recorded Prices API は何を返しますか?

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

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

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