# How can one utilize JavaScript to obtain or record the question type displayed on a card and the history log of answers?

**URL:** <https://forums.ankiweb.net/t/how-can-one-utilize-javascript-to-obtain-or-record-the-question-type-displayed-on-a-card-and-the-history-log-of-answers/32250>\
**Category:** Suggestions\
**Created:** [July 20, 2023, 4:10am UTC](https://forums.ankiweb.net/t/how-can-one-utilize-javascript-to-obtain-or-record-the-question-type-displayed-on-a-card-and-the-history-log-of-answers/32250 "2023-07-20T04:10:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neko](https://avatars.discourse-cdn.com/v4/letter/n/7ab992/32.png) [@Neko](https://forums.ankiweb.net/u/Neko)\
**Post date:** [July 20, 2023, 4:10am UTC](https://forums.ankiweb.net/t/how-can-one-utilize-javascript-to-obtain-or-record-the-question-type-displayed-on-a-card-and-the-history-log-of-answers/32250/1 "2023-07-20T04:10:53Z")

</div>

When memorizing Japanese vocabulary, it is essential for me to verify if I have remembered the kanji, pronunciation, and meaning of each word. In Anki mobile, I would like to use JavaScript to determine the type of question displayed (kanji, pronunciation, or meaning) based on my previous response. For example, if the previous question displayed the kanji and my response was “simple,” then the next time I review the card, the question will display the meaning of the word.

To achieve this, I would like to know how I can store and retrieve the information about my previous responses in order to synchronize it across multiple devices.

Alternatively, I am wondering if Anki Mobile might offer an API that would allow me to use JavaScript to extract the historical responses for each flashcard.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [July 20, 2023, 11:12am UTC](https://forums.ankiweb.net/t/how-can-one-utilize-javascript-to-obtain-or-record-the-question-type-displayed-on-a-card-and-the-history-log-of-answers/32250/2 "2023-07-20T11:12:46Z")

</div>

I’m afraid it’s not possible to access the review history from JavaScript. I’ll take this as a feature request, and move it to the suggestions section.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [August 19, 2023, 11:13am UTC](https://forums.ankiweb.net/t/how-can-one-utilize-javascript-to-obtain-or-record-the-question-type-displayed-on-a-card-and-the-history-log-of-answers/32250/3 "2023-08-19T11:13:46Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
