I did a quick check to see if there is any simple page of beekeeping rules like we have in West Virginia. I found a rather ominous looking set of Illinois beekeeping regulations back in the Beesource archives: https://www.beesource.com/resources/e...ct-with-rules/
This is not a complete list, just what I can recall of our rules. Some jurisdictions have specific different rules, but the basics for small yards are:
If the hives are close to a property line (dimensions vary), you need a barrier to make the bees fly UP before they fly ACROSS neighbors' yards. A 6 foot privacy fence or tall hedge will generally do.
Provide water for your bees. Otherwise they'll find it on their own, probably pestering neighbors in the process. They adore salt water ... they are particularly pesky around salt water swimming pools. I put a small piece of trace mineral block in my poultry waterer to keep them at home and happy.
Know local regs for density. Areas that allow suburban hives allow some modest number per yard. Twenty is probably a Bad Idea.
Practice good swarm management.
Attend to the health of your bees. A local bee club that operates a bee school is priceless for learning this.
There is usually a distance requirement for placement of hives near penned or tethered animals.
Register your hives ... looks like this is an Illinois requirement. It may provide you some protection.
"Hot" bees need a home elsewhere. Try to find gentle bees. In your area the Africanized Honey Bees are generally not a problem but if you got a package from a sloppy supplier down south somewhere you might get AHB, in which case there's bound to be a law against it.
Not a regulation, but frequently effective: give your neighbors some honey.
Rooftop hives do get around the privacy fence issue. However, for inspection it may mean an inspector has to enter your house.