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
प्रतिक्रिया
Async JSON
पैरामीटर
0 आवश्यक · 0 वैकल्पिक

प्लेग्राउंड

इनपुट
कोई इनपुट 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 प्रति कॉलअसिंक्रोनस 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 का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/aaa/lowest-state-prices पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

AAA Lowest State Prices API की लागत कितनी है?

$0.01 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

AAA Lowest State Prices API कौन-से parameters स्वीकार करती है?

AAA Lowest State Prices कोई input parameters नहीं लेता; एक खाली JSON body भेजें।

AAA Lowest State Prices API क्या लौटाती है?

एक JSON result। यह endpoint asynchronously चलता है, इसलिए response आपको बताता है कि तैयार result कैसे प्राप्त करना है। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक AAA developer account या API key चाहिए?

नहीं। AAA Lowest State Prices SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से AAA API access के लिए आवेदन करने की आवश्यकता नहीं है।