The New York attorney general’s office is looking into whether gasoline offered through theCraigslist website for as much as $8 a gallon is legal as motorists cope with retail shortages after Hurricane Sandy.

The price for fuel available in New York City and Long Island by some individual sellers on Craigslist, the online- classified ad site, was almost double the latest average city price of $4.102 published today by AAA, the largest motoring organization.