views:

45

answers:

1

Is there a web API available to get current average gas prices either nationally or locally given say a zipcode? Preferably something I can use with Javascript, that would maybe give me some XML or JSON or something. I am looking for United States info particularly.

+2  A: 

http://www.motortrend.com/widgetrss/gas

and

http://autos.msn.com/everyday/gasstationsbeta.aspx

The latter's disclaimer:

MSN Autos strives to bring you the most up-to-date gas prices possible. However, we do not receive prices every day from every station. Our partner, OPIS, obtains pricing data from participating credit card transactions, direct feeds from participating retail chains, and other survey methods. Please note that during times of extreme price volatility, these collection methods may trail the latest prices at some stations. Learn more...

joe snyder