Building the full index just to get the array lengths might be overkill, I simply included it since it’s already there. You could certainly build your own loop over the items list.
However, you should definitely use WKOF to query the API, as it is able to cache requests across scripts.
Thanks - that makes sense. I’ll play with that. Your method was already much faster (and more compact) than the code I borrowed from WaniKani Dashboard SRS and Leech Breakdown. I suspect the delay is just getting all the items in the first place.
I’m using this on the Dashboard, so I can get a close approximation just by grabbing the apprentice, guru, master, enlightened, and burned numbers from the page text
The problem is, of course, that adding all this stuff keeps increasing the language’s complexity, making it hard to keep up with how to use it properly and even harder to learn it initially.