The legality of pets in apartments varies depending on the apartment complex's rules and regulations, as well as local laws. In some places, exotic pets such as snakes, reptiles, or large birds may be prohibited. It's best to check with your apartment management or landlord to know which specific pets are not allowed in your building.