Best way to obtain itemName from itemId? randIds? enchIds?

The API only allows querying one item at a time, and I’d like to preload all the lookups I’ll be doing later. Iterating ids and storing them seems like a naïve approach (and would take ages given rate limit). Is there anything better?

Additional, where can I retrieve a list of the enchantment IDs and random enchantment IDs?

Hope this is the right forum, I’m asking about Classic WoW.