People study this stuff and have written about it extensively. By and large, in most US cities and towns, it's not legal to build anything but detached single family units in most of the city. So while each locale may have its own zoning code, they're rarely all that unique. There are some exceptions like Houston.
This is an interesting book about the history of it all: https://www.cornellpress.cornell.edu/book/9780801479878/zone...