San Francisco, Oakland and San Jose were among the Bay Area cities listed in WalletHub’s “Best Foodie Cities in America”.

The list features 182 U.S. cities and compared the areas across 28 metrics of foodie-friendliness. The cities are graded on two benchmarks: affordability and diversity, accessibility and quality.

San Francisco the overall rankings was placed third behind Miami and Portland. The city placed second in diversity, accessibility and quality rank, but 176th on affordability.

San Francisco also features a high number of restaurants per capita with one of the best selections of affordable restaurants rated at least 4.5 stars, which landed it high on WalletHub’s list.

The city was also rated due to the 25 Michelin star restaurants it has, including Atelier Crenn, Benu and Quince, who have three stars. San Francisco also has a large number of food festivals and cooking schools.

It is also the nations leader in herb and spice shops, international grocery stores and craft breweries per capita.

Oakland placed 23rd overall and 16th on the diversity, accessibility and quality rank.

San Jose was placed at 41st, Santa Rosa 57th and Fremont 129th.

Other Northern California cities listed include Sacramento at No. 9 and Stockton at No. 81.