Python API

59 views
Skip to first unread message

felix....@hotmail.fr

unread,
Apr 21, 2023, 6:16:26 PM4/21/23
to public...@ankidroid.org
Hello,

I'm traveling and wanting to learn a new language with the use of DeepL translator and AnkiDroid.
For now, I'm translating words and adding cards manually. I would like to create an Android python application for personal use that translate my words using DeeplL API and create an AnkiDroid card automatically.

The problem is that I don't know how to access this AnkiDroid API.
I've heard about python library "AnkiDroid" but I can't install it using "pip install ankidroid", the error says "no matching distribution found for ankidroid".
I've also tried using the "requests" library but I need my authentication key and can't find it. I've tried connecting, going to all the menus possible on the internet and on the app but the only button I can find is a check "Use Ankidroid API".

Can you please tell me if the 2 things I explained doesn't work ? If yes, can I develop a kotlin application using the instant-add API seen on AnkiDroid GitHub ?

Thank you very much by advance for your answer.

Have a great day,

Felix Mortas

snowtimeglass

unread,
May 14, 2023, 7:50:24 PM5/14/23
to AnkiDroid
Hi,

Information about AnkiDroid API can be found here: https://github.com/ankidroid/Anki-Android/wiki/AnkiDroid-API

If reading it doesn't solve your problem, you might want to ask the question in the developer's community: https://github.com/ankidroid/Anki-Android/wiki/Development-Guide#community

Best wishes,
Yuki

2023年4月22日土曜日 7:16:26 UTC+9 felix....@hotmail.fr:
Reply all
Reply to author
Forward
0 new messages