SAN FRANCISCO (CBS SF) – The real estate research website has released its annual top list of best cities to go trick-or-treating, with both San Francisco and San Jose landing at the top.

According to Zillow, San Jose was ranked the 6th best city to fill your bag with candy. More surprisingly, San Francisco was selected first overall.

The study doesn’t account for the actual number of children who trick-or-treat, but rather uses statistics to identify cities that could allow kids to safely collect the biggest Halloween haul. The equally weighted criteria used in the study were median home value, walk score, population density and crime rate. San Francisco scored highly on the first three categories, while San Jose ranked among the highest for home value.

Zillow said Boston, Honolulu, Seattle and Chicago round out their top 5.

This is the third year that Zillow has released its list in an effort to help trick or treaters find the most candy.

(Copyright 2011 by CBS SF. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)