Preheat air fryer to 375°F (190°C) for 5 minutes.
Rinse chicken under cold water and pat dry with paper towels.
In a small bowl, mix rosemary, salt, pepper, garlic powder, onion powder, paprika, and avocado oil.
Rub mixture all over the chicken, including under the skin.
Place chicken breast side down in the air fryer basket.
Cook for 30–35 minutes, then flip breast side up.
Continue cooking for 30–40 minutes, or until the thigh reaches 165°F (74°C).
Remove chicken and let it rest for 10 minutes before carving.