Sand AISand AI MAGI-2ตอนนี้ MAGI-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 / คำขอ
Method
POST
การตอบกลับ
Async JSON
พารามิเตอร์
0 จำเป็น · 0 ไม่บังคับ

Playground

อินพุต
ไม่มี schema ของอินพุต
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

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 ต่อการเรียกAsync JSON
AAA$0.01 ต่อการเรียกAsync JSON
AAA$0.01 ต่อการเรียกAsync JSON
AAA$0.01 ต่อการเรียกAsync JSON
AAA$0.01 ต่อการเรียกAsync JSON
AAA$0.02 ต่อการเรียกAsync JSON

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ AAA Lowest State Prices API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/aaa/lowest-state-prices โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

AAA Lowest State Prices API ราคาเท่าไร?

$0.01 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

AAA Lowest State Prices API รับพารามิเตอร์อะไรบ้าง?

AAA Lowest State Prices ไม่รับพารามิเตอร์อินพุต ส่ง JSON body ว่างเปล่า

AAA Lowest State Prices API ส่งคืนอะไร?

ผลลัพธ์ JSON จุดเชื่อมต่อนี้ทำงานแบบอะซิงโครนัส ดังนั้นการตอบกลับจะบอกวิธีดึงผลลัพธ์ที่เสร็จแล้ว README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ AAA ไหม?

ไม่จำเป็น AAA Lowest State Prices ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง AAA API แยกต่างหาก