API: How to get taxon info by name for a subspecies or variety

it’s hard to judge “better” without understanding what you’re trying to do exactly, but there are other ways to get taxa based on name from the API:

also, the DWCA taxon export contains names both scientific and common names, and the taxon metadata file from the AWS Open Data Set contains scientific names. (just do a search in the forum for more information.)