it’s not clear exactly what you’re looking for here, but if you’re trying to visualize the entire iNat taxonomic tree, then i think you should just get the entire taxonomy periodically. iNat exports this periodically.
this may also be relevant: https://forum.inaturalist.org/t/add-ancestor-rank-level-to-get-observations-response-api/38992/4.