# AAA API on SandBase

> Read AAA gas price data: national, state and metro averages, price changes, record highs, EV charging prices and gas price news.

Source: https://www.sandbase.ai/apis/aaa

- Endpoints: 13
- Call: `POST https://api.sandbase.ai/v1/api/{vendor}/{endpoint}` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body
- Billing: pay per call from one SandBase balance; no provider account or subscription needed

## Endpoints

- [AAA Ev Charging Prices](https://www.sandbase.ai/apis/aaa/ev-charging-prices.md): $0.01 per call
  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.
- [AAA Highest Recorded Prices](https://www.sandbase.ai/apis/aaa/highest-recorded-prices.md): $0.01 per call
  Returns all-time highest recorded average gas prices for a specific state or nationally. If no state_code is provided, returns national records.
- [AAA Lowest Metro Prices](https://www.sandbase.ai/apis/aaa/lowest-metro-prices.md): $0.01 per call
  Returns metro areas within a state sorted by lowest regular gas price ascending. Useful for finding the cheapest metros within a state.
- [AAA Lowest State Prices](https://www.sandbase.ai/apis/aaa/lowest-state-prices.md): $0.01 per call
  Returns all states sorted by lowest average regular gas price ascending. Useful for identifying the cheapest states for gasoline.
- [AAA Metro Prices By State](https://www.sandbase.ai/apis/aaa/metro-prices-by-state.md): $0.01 per call
  Returns gas price data for all metro/city areas within a given state, including current and historical prices (yesterday, week ago, month ago, year ago) for all fuel grades. Each metro includes top-le...
- [AAA National Average](https://www.sandbase.ai/apis/aaa/national-average.md): $0.02 per call
  Returns today's AAA national average gas price for all fuel grades (Regular, Mid-Grade, Premium, Diesel) with historical comparisons to yesterday, one week ago, one month ago, and one year ago. Includ...
- [AAA News Article Detail](https://www.sandbase.ai/apis/aaa/news-article-detail.md): $0.01 per call
  Returns the full content of a specific news article identified by its URL slug. The slug is obtainable from get_news_articles results.
- [AAA News Articles](https://www.sandbase.ai/apis/aaa/news-articles.md): $0.01 per call
  Returns recent AAA gas price news articles with pagination support. Results include article title, publication date, excerpt, slug, and link.
- [AAA Price Change By Metro](https://www.sandbase.ai/apis/aaa/price-change-by-metro.md): $0.01 per call
  Returns price changes for all metro areas within a given state, showing the difference between current and historical prices for each fuel grade. Includes yesterday_change, week_ago_change, month_ago_...
- [AAA Price Change By State](https://www.sandbase.ai/apis/aaa/price-change-by-state.md): $0.02 per call
  Returns the price change (delta) for a state between the current price and historical averages (day, week, month, year) for all fuel grades. Positive values indicate prices have risen; negative values...
- [AAA Search News Articles](https://www.sandbase.ai/apis/aaa/search-news-articles.md): $0.01 per call
  Searches the AAA gas price news archive (weekly national reports and state-specific releases going back years) by keyword, optionally restricted to a publication date range, and returns one page of ma...
- [AAA State Gas Prices](https://www.sandbase.ai/apis/aaa/state-gas-prices.md): $0.01 per call
  Returns current average gas prices for all 50 US states plus DC across all four fuel grades (Regular, Mid-Grade, Premium, Diesel). States are listed in alphabetical order by full state name.
- [AAA State Price Details](https://www.sandbase.ai/apis/aaa/state-price-details.md): $0.01 per call
  Returns detailed gas price data for a specific state including current prices for all fuel grades, historical averages (yesterday, week ago, month ago, year ago), and all-time highest recorded prices ...

## Use it through SandBase

- Base URL: `https://api.sandbase.ai/v1`, with `Authorization: Bearer $SANDBASE_API_KEY`.
- Language models use the OpenAI-compatible `POST /v1/chat/completions`; media models use `POST /v1/run`; data APIs use `POST /v1/api/{vendor}/{endpoint}`.
- AI agents can connect through the SandBase MCP server or CLI: https://www.sandbase.ai/skill.md
- Every model and API page has a Markdown twin at the same URL plus `.md`. Full index: https://www.sandbase.ai/llms.txt
