Livonia's 48154 ZIP code is one of the hottest real estate markets in the country, according to a recent study by Realtor.com.

Livonia came in second on the 10-city list, right behind Watauga, Texas' 76148 ZIP code. Kentwood, Mich.'s 49548 ZIP code ranked third.

Livonia's 48154 ZIP code roughly covers the area between 6 Mile Road and I-96 and Eckles and Inkster Roads.

The study looked at 32,000 ZIP codes and the time it takes properties to sell in them and how frequently Realtor.com users view homes in each. Only one ZIP code per metro area was included in the list.

Read more:

Detroit named No. 1 city in America for pizza lovers

Michigan's most popular Halloween treat is candy corn and I'm so disappointed

Homes in the top markets sell an average of 21-50 days faster than the rest of the country and Realtor.com users view the listings in these markets four times more often, according to the study, which also broke down median listing prices, job growth and unemployment percentages.

Livonia's median home listing price was $223,780 with properties staying on the market for an average of 21 days. Job growth was 1% and unemployment 6.3%.

Kentwood, Mich.'s median listing price was $118,833 with properties on the market for 16 days. Job growth was 2% and unemployment at 3.2%.

Realtor.com says millennial home buying plays a large role in the rankings, with the hottest markets being the ones that appeal to what millennials want in a new home and location, including affordability, hiking trails, restaurants and nightlife.

A release by Realtor.com listed the key factors heating things up in the top 10 markets: