Preheat the air fryer to 400°F (200°C).
In a mixing bowl, combine olive oil, garlic powder, onion powder, smoked paprika, oregano, salt, black pepper, and cayenne pepper.
Add the chicken drumsticks to the bowl and toss well, ensuring each drumstick is evenly coated with the spice mixture.
Place the drumsticks in a single layer in the air fryer basket, leaving space between each one for optimal airflow.
Cook the drumsticks in the air fryer at 400°F (200°C) for 25 minutes, flipping them halfway through the cooking time for even crispiness.
Check for doneness using a meat thermometer; the internal temperature should reach 165°F (75°C).
Once done, remove the drumsticks from the air fryer and allow them to rest for a few minutes before serving.