Is it possible to get order/family of an observation from the iNat API?

Im working on a project using the api and need to get the family/order of specific observations.

For example if I make the api call:

I get the results for an Eastern Muskrat, but the only information provided is the genus/species as well as iconic taxa (Mammalia) while I need to get the order (which would be Rodentia)

I’ve been able to get it using ancestor_ids, however this is flawed since the order is placed differently for different species.
Example: for some species the order would be ancestor_ids[5] but for others it could be ancestor_ids[6]

Any ideas would be greatly appreciated.