Lesson history script/feature


#1

I am looking for a script, to see completed lessons history. I do 8 items per day and manually add it to a text file to keep track how many I did. But sometimes I might forget or miss a couple days, so I need to make up missed days. Anyways when you finish a lesson, it tells you what you learned in the lesson summary, but I want to be able to go back days.

Is there anything like that out there? Or perhaps there is a function like that on WaniKani itself?


#2

I don’t believe there is such a script.

edit: this is the closest you get, which I suppose should be sufficient if you’re willing to set it up, and having it externally.


#3

You could write a simple script which would get all item’s started_date using this api end point ‘https://www.wanikani.com/api/v2/assignments’ For more details about this end point go here: API V2 Alpha Documentation

This endpoint will provide information for all items you ever learned. So no need for keeping track of items.

EDIT: An example script snippet:

var v2key = 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX';
var url = 'https://www.wanikani.com/api/v2/assignments';
var id = '?levels=15';
$.ajax({
   url: url + id,
   dataType: 'json',
   method: 'GET',
   headers : { 'Authorization' : 'Bearer token={' + v2key + '}' },
})
.done(function(data) {
     console.log(data);
})
.fail(function(err) {
    console.log(err);
});

#4

Didn’t even think about just using the API, even though I am developer myself :joy: Thanks for suggestions


#5

The /reviews endpoint will let you specifically select SRS level 0 (‘Initiate’), which I think is the Lesson review.

[edited to clarify]
When I say ‘select’, I mean you can fetch all reviews, and look only at the ones with starting_srs_stage === 0.
There’s currently no (documented) filter to specifically query by starting_srs_stage.