Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

AAA Ev Charging Prices

เอกสาร API
https://api.sandbase.ai/v1/api/aaa/ev-charging-prices

Returns national and per-state EV charging price data including cost per kWh and total charger counts for each state. Data sourced from a public Google Sheets dataset maintained by AAA.

ราคา
$0.01USD / คำขอ
Method
POST
การตอบกลับ
Async JSON
พารามิเตอร์
0 จำเป็น · 0 ไม่บังคับ

Playground

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

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

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

API README

AAA Ev Charging Prices

Returns the EV charging cost per kWh and the total number of chargers for each location, with one row per state. The request takes no input.

Use cases

  • Compare the cost per kWh of EV charging across states.
  • Rank states by total charger count to see where charging stations are most common.
  • Estimate the cost of a full charge in a state by multiplying ev_costperkwh by battery size in kWh.
  • Feed charging costs into a trip planning or fleet budgeting tool.

Request

curl -X POST "https://api.sandbase.ai/v1/api/aaa/ev-charging-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": {
    "ev_data": [
      {
        "LOCATION_ID": "Alaska",
        "LOCATION_NAME": "Alaska",
        "LOCATION_STATE": "AK",
        "LOCATION_TYPE": "ST",
        "ev_costperkwh": "0.459",
        "ev_totalchargers": "92"
      }
    ]
  },
  "status": "success"
}

Response fields

FieldMeaning
data.ev_data[]List of locations. Each item holds the charging cost and charger count for one location.
data.ev_data[].LOCATION_NAME / data.ev_data[].LOCATION_IDName of the location, such as Alaska. In the sample rows both fields hold the same value.
data.ev_data[].LOCATION_STATETwo-letter state code, such as AK or AL.
data.ev_data[].LOCATION_TYPELocation type code. The sample rows show ST for each state.
data.ev_data[].ev_costperkwhCharging cost per kWh for the location, returned as a string such as 0.459.
data.ev_data[].ev_totalchargersTotal number of chargers for the location, returned as a string such as 1008.
statusResult of the call. The value is success when the data was returned.

Notes

  • Values such as ev_costperkwh and ev_totalchargers come back as strings. Convert them to numbers before sorting or doing math.
  • Use LOCATION_TYPE to filter rows by type, and LOCATION_STATE to match a row to a state code.
  • For gasoline figures instead of EV charging, call AAA National Average.

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 Ev Charging Prices API ได้อย่างไร?

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

AAA Ev Charging Prices API ราคาเท่าไร?

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

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

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

AAA Ev Charging Prices API ส่งคืนอะไร?

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

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

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