San Jose, CA
 Layman's version:
No permit required for fewer than 6 chickens. Chickens must be kept 20 feet away from a dwellng unit. A permit is required if you keep more than 6 chickens. Roosters not allowed in any area zoned Residential.
 The Urban Chicken ordinance on the books:
Link to municipal code online: Title 7: Animal Care and Control
Text of municipal code:
7.10.205 Small animals.
"Small animals" means rabbits, chickens, turkeys, geese, ducks, doves, pigeons, game birds, or other fowl.
7.60.810 Side setback area.
It is unlawful for any person to keep livestock or small animals subject to a permit under this Part within any side setback area as defined by San José Municipal Code Section 20.200.1110.
7.60.815 Proximity to dwelling unit - Small animals.
It is unlawful to maintain more than the maximum number of small animals either of the same type or combination thereof within the designated distances as set forth below in this section. Designated distances are the distance measured from the enclosure or structure housing such small animals to the nearest dwelling unit other than the permittee's.
Designated Distance: Maximum Number of Small Animals
Less than 20 feet: 0
More than 20 feet but less than 40 feet: 6
More than 40 feet but less than 50 feet: 10
More than 50 feet: 20
7.60.820 Roosters prohibited.
It is unlawful for any person to maintain a rooster over four (4) months of age.