Inside city limits, legal EXCEPT for the number of chickens I am keeping, on an acre of property with two houses; my land-lady lives in the "front house" and I live in the rental house. She keeps 3 Barbados sheep as pets. She let me move in with 2 small dogs, 4 cats, and generously allowed me to keep chickens after I'd been here about a year. (She appreciates the wonderful, free eggs.)
I'm very cagey about the number of chickens I admit to her I actually have.
West Sacramento (pop. 49,138) is nestled up against the metropolitan city of Sacramento (pop. 418,711), in the California Central Valley area, with two major rivers flowing through both cities. Animal services in West Sac are handled by the County of Yolo, though, not the local municipality. If you are on an acre or more, you are allotted 25 "Animal Density Points" for livestock (which includes poultry). The land-lady's sheep each count for 4 pts, and chickens are a point apiece. "Immature offspring not sexually mature have NO point value."
Lessee... I have 24 free ranging chickens, 19 chicks of various ages in two brooders and a grow-out coop, and six incubators full of eggs. (I got the addiction BAD.) Plus a Cayuga duck pair.