Hamsters are solitary animals, meaning they should live by themselves in their own little home, but you should try to give your hamster the biggest cage you can afford and have room for in your own house. Usually, a proper sized hamster cage is at least one square foot in size, but like I said, if you can get a bigger one your hamster will really love you for it! You should only keep one hamster per cage, otherwise the hamsters may fight and seriously hurt each other, except for dwarf hamsters who tend to be more sociable, but it is still a good idea to only keep one per cage.
In the wild, hamsters like to run several miles each night, so you should make sure to include a hamster exercise wheel because it will provide hours of fun for your hamster, and it will also keep your hamster fit and in shape. I think the wire wheels are unsafe for hamsters, because the hamsters leg can get caught in the wire while the wheel is turning, causing a broken leg. You will need to provide fresh wood shavings in the bottom of the hamster cage for bedding. A pet hamster will love you even more if you provide some fun toys to play with. Hamsters are notorious escape artists, so you need to make sure whichever hamster cage you decide to buy is secure. Hamsters like to dig tunnels and can maneuver through small spaces to escape.
I think the best hamster cages are the ones with a hard plastic base and wire body, with a hard plastic top. These cages sometimes come with various accessories to make your hamsters life more entertaining, such as various tunnels and lookout towers. Some people prefer to let their pet hamsters live in aquariums, which is also a fine home for a hamster as long as you make sure the aquarium has a lot of air circulation and that it does not get too hot or humid for the hamster. Never keep a hamster in a cardboard or wooden box unattended, because they can simply chew their way out. Of course, you always want to make sure your hamster is kept safely away from other pets that can harm the hamster like cats and dogs. Keep this information about hamster cages in mind, and always keep learning more about your pets and continue to have fun with them.