I'm looking for a dataset that has historical gas price averages at a state or county level. I was able to pull in National level data but I'm looking for more granularity to create something similar to Gas Buddy or AAA's heat maps.
I'm not aware of one that's broken out per state in a single dataset however some states websites may have this information. You could also search through data.gov which has some state level datasets. https://catalog.data.gov/dataset
I found these API calls as potential options for you: