32 1
Sign in to rate


0.03MB. Updated 2018-03-17. Supports both Anki 2.0.x and 2.1.x.


The AnkiConnect plugin for Anki provides a RESTful interface for creating flash cards from external applications. When installed, AnkiConnect will run a minimal Ajax server on port 8765 when Anki is running; connecting clients, such as the Yomichan Browser Extension can make use of the exposed API extend Anki functionality. This plugin is compatible with the Anki 2.1.x (alpha) releases! Please see the AnkiConnect homepage for more information. If you are upgrading, please be sure to remove existing copies of this plugin in your addons directory.


As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

To download this add-on, please copy and paste the following code into the desktop program:


If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

Other Anki 2.0.x Add-Ons Other Anki 2.1.x Add-Ons Ask a Question


on 2018-05-16
Works perfectly!
on 2018-05-07
The only "approved" way to interact with the app after https://anki.tenderapp.com/discussions/ankiweb/1886-issue-with-saving-cards-via-rest-api
on 2018-05-04
Can't imagine building a vocabulary deck without AnkiConnect (+ Yomichan).
on 2018-04-22
on 2018-04-12
Great documentation, great add-on, thanks!
on 2018-03-24
This extension made it possible for me to make an emacs-based ui for anki! Thanks!
on 2018-03-08
on 2018-02-23
Thankyou let me save a lot of time as this add-on
on 2018-02-13
Very helpful. Thank you very much!
on 2017-12-29
Thank you for the effort, saves a lot of time for adding new notes!
on 2017-12-20
explain what it does! It does not appear in my anki
on 2017-11-30
I have some ideal to use this API,
your add-on really save me a lots of time,
Thank you for contribute it.
on 2017-11-04
I'm sure this addon is awesome but

If you could speak in plain english what this add-on does, it would be quite helpful...
on 2017-09-15
Exception when requesting from AnkiConnect

I'm using last Anki 2.1 beta 15 and cot exception when trying default request:
curl localhost:8765 -X POST -d '{"action": "deckNames", "version": 5}'
Caught exception:
File "C:/Users/VC/AppData/Roaming/Anki2\addons21\2055492159\__init__.py", line 889, in advance
File "C:/Users/VC/AppData/Roaming/Anki2\addons21\2055492159\__init__.py", line 235, in advance
File "C:/Users/VC/AppData/Roaming/Anki2\addons21\2055492159\__init__.py", line 250, in advanceClients
self.clients = list(filter(lambda c: c.advance(), self.clients))
File "C:/Users/VC/AppData/Roaming/Anki2\addons21\2055492159\__init__.py", line 250, in <lambda>
self.clients = list(filter(lambda c: c.advance(), self.clients))
File "C:/Users/VC/AppData/Roaming/Anki2\addons21\2055492159\__init__.py", line 159, in advance
self.writeBuff += self.handler(req)
File "C:/Users/VC/AppData/Roaming/Anki2\addons21\2055492159\__init__.py", line 285, in handlerWrapper
resp += body
<class 'TypeError'>: can't concat bytes to str
on 2017-05-30
Incredibly helpful addition by a very responsive dev

on 2017-03-18
This is the add-on that's been keeping a bunch of Anki-related Google/Firefox ex

Not sure it the author would see it or not, but thank you for your work!
As a code-dummy,I don't know whether this is a beautifully written py. file or not, but sure to say that without it, a couple of Anki extension would be at great trouble.