Automotive
Gasprices Aaa logo

Gasprices Aaa API

gasprices.aaa.com

AAA gas and diesel price averages - national, state, county, and historical trends.

Actions
3
Category
Automotive
Login
Not required
Output
JSON

Call the Gasprices Aaa API

Submit a task, then poll the job until it settles. This example runs act_gasprices_aaa_national_fuel_prices_page.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_gasprices_aaa_national_fuel_prices_page",
    "params": {}
  }'

3 actions on gasprices.aaa.com

Read

  • National Fuel Prices

    act_gasprices_aaa_national_fuel_prices_pageread1 credit / call

    Returns national fuel averages with trends plus per-state regular prices.

  • State Fuel Prices

    act_gasprices_aaa_state_fuel_prices_pageread1 credit / call

    Returns a state's current fuel averages with county-level price breakdowns.

    state_code
    string · required

Write

Write actions change state on gasprices.aaa.com and run as the account you connect.

  • State Fuel Price History

    act_gasprices_aaa_state_fuel_price_historywrite2 credits / call

    Returns historical fuel prices for a state compared to a baseline region.

    state_code
    string · required
    comparison_region
    string

Gasprices Aaa API questions

Is there an API for Gasprices Aaa?
Gasprices Aaa does not offer a public data API for this, but Anakin Wire provides 3 maintained endpoints for gasprices.aaa.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape Gasprices Aaa data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when gasprices.aaa.com changes its markup, Anakin updates the action.
Do I need a Gasprices Aaa account?
No. Every Gasprices Aaa action listed here runs anonymously — no account and no credentials required.
What does the Gasprices Aaa API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Automotive APIs

All Automotive sites