API version 2 moving out of beta. Sunsetting API version 1

Do you see the pencil icon at the bottom of your post? Click that to fix it.

Please let us know if there are any errors in your console, and if so what they are, when you try it after fixing the quotes in your actual code.

We aren’t obligated by King Philippe of Belgium or even the Crabigator to help or even answer you. Please be respectful of other users’ time.

2 Likes

Hope this is the proper way to post.
Now that we went through the administrative part, can you help me with the technical part :slight_smile:
Thanks a lot in advance

I’d have thought you’d be much more likely to get help with this if you posted a new topic in the API category with a clear title.

2 Likes

Thanks a lot for your advice. Unfortunately I do not know what would be a clear title…this is why I posted it here,where the change was initiated… I am just willing to understand what do I have to change to keep being able to record my daily progress …:frowning:

For the quotes and backticks, just copy them from my post. Do you see the difference between these?

`“"

Should be OK now …

Try this for your original thing:
var raw_data = UrlFetchApp.fetch("https://www.wanikani.com/api/user/d8fd194bf2f2b9f7275b795f62e4b13e/srs-distribution",


Thank you, it is much clearer now!

Based on the API docs, this v2 API query may be useful.

https://api.wanikani.com/v2/assignments?srs_stages=5&subject_types=kanji

Assuming you properly authenticate it with your v2 key, this would return assignments at SRS stage 5 which are kanji.

Do note that the categories Guru, Master, etc. will be removed from WaniKani in the near future.

1 Like

Thanks a lot for your answer. Regarding the first line. I have the quotes in my original script but could not find the proper ones to put on the post…
Thanks for the hint regarding the V2 query . Does that mean that there is no way to get the full structure (equivalent to srs-distribution) and that i need to make an API call for each of the data I want ?

I think you might be best off reading the API v2 documentation as it describes in detail which requests you can make and which data you will receive on which request. Once you start playing around with it, you will probably see much clearer which API endpoints you need to hit.

3 Likes

You are right… unfortunately I tried to look at it but all this is a bit too cryptic for me…:frowning: .
I managed to copy a script and adapt to my need base don assumtpions but I have no clue on data structures nor anything…so I thought that for someone with skills in computer science this would be quite trivial to help me …this is why, after having read the API doc, I post my query on the forum… sorry to have so little knowledge of computing science… I started Wanikani to learn Japanese and was quite happy to find some ressoures to help me with my progression. Now with the change in API i am afraid this will no longer work and I am asking for help from knowledgeable people…

1 Like

Those categories will no longer exist at all in a month due to the introduction of multiple SRS systems with varying numbers of stages, so you may want to see if there is any point in your script at all.

Thanks for your answer. In fact the categories names have very little importance for me…what I want to monitor/ keep track of is my progress… so if instead of the number of kanji at Guru level I need to check for kanji at SRS stageX this is exactly the same.

What I need is to understand how to get the daily status of the SRS stage of my kanji, my vocabulary and my radical. Then based on that I will decide which one is relevant and again we have today 10 SRS stages and with the new version there will be 10 SRS stages so I do not see much of a difference.

The only difference is the change of data structure that impact my ability to follow my progress and for this I am asking for help…

The script helps me build this kind of data and charts

So you see still relevant no matter how the SRS stages are called.
Thanks a lot in advance for any help that you could give me
Philippe

The Dashboard Apprentice script is close to what you need. It collects the items in the four apprentice stages but it is a simple change to collect the items for all stages when you know how to do the apprentice. I suggest you take a look at this code to see how it is done. Tampermonkey lets you open a script in an editor where you can inspect it.

4 Likes

Or even easier, you can see the script’s code directly in Greasyfork: https://greasyfork.org/en/scripts/388113-wanikani-dashboard-apprentice/code

4 Likes

Never say I didn’t do anything for you.

13 Likes

WHy would I. You did EVRYTHING for me. Have a nice day

7 Likes

What do you think about Swagger / OpenAPI (with generated *.json / *.yaml)? I don’t really need it; however, it can be used to strongly type the REST API.

This is as far as I currently need, including rate-limiting.

1 Like

How do I get this topic to stop showing up at the top of the community section on the dashboard? Unpinning it or setting it to normal don’t seem to work.

I dont think you can since this is globally pinned by the admins

I have this thread unpinned, and it doesn’t appear at the top of the latest threads for me :thinking:

4 Likes