API for profession knowledge points

I like making simple weakauras to remind me of things I often forget, such as opening the weekly chests instead of letting them sit in my bags.

I want to make a simple weakaura that just shows my current unspent knowledge points, another thing I commonly forget to spend. It doesn’t look like this is something I can do in weakauras without some custom code, but I’m an API noob and cannot figure out where these knowledge points would be or how to access them. I’ve been reading around warcraft wiki in the API section, but haven’t had any luck yet.

You can get that info with C_CurrencyInfo.GetCurrencyInfo(currencyID). You can look up the currency ID on wowhead by searching for “khaz algar knowledge”.

1 Like

Thanks! Didn’t realize it was simply a currency!