01 - Set the oven to 400°F.
02 - In a small bowl, thoroughly combine coffee, brown sugar, smoked paprika, cumin, coriander, cinnamon, black pepper, kosher salt, garlic powder, and chili powder.
03 - Pat the chicken dry using paper towels. Rub olive oil evenly over the entire bird, then massage the spice rub onto all surfaces and inside the cavity.
04 - Fill the chicken cavity with quartered onion, lemon halves, and thyme sprigs.
05 - Place the chicken breast-side up on a rack inside a roasting pan. Tuck wings under the body and, if preferred, tie legs together with kitchen twine.
06 - Cook for 1 hour and 15 minutes, or until juices run clear when thigh is pierced and an instant-read thermometer registers 165°F.
07 - Allow the chicken to rest for 10 minutes before carving. Serve warm.