Back

anki decks format

#1
What is the fastest and easiest way to access an anki deck content programmatically? I know anki uses sqlite so the best would be to just have the db itself ready to be accessed via php as if it is a standard sqlite db... but I don't know the specifics of the apk format... is it a collection of compressed dbs or what? Thank you in advance!
Edited: 2015-02-23, 6:49 am
Reply
#2
An .apkg file is a zip file (try renaming one!) containing two files: collection.anki2 (an sqlite database) and media (a json file). Here's a partially annotated schema.

Quote:What is the fastest and easiest way to access an anki deck content programmatically?
Writing an Anki addon.
Reply
#3
Vempele Wrote:An .apkg file is a zip file (try renaming one!) containing two files: collection.anki2 (an sqlite database) and media (a json file). Here's a partially annotated schema.

Quote:What is the fastest and easiest way to access an anki deck content programmatically?
Writing an Anki addon.
Thank you Vempele! Very useful as always!!
I want to do a website to browse my kanji deck Tongue
Reply
May 16 - 30 : Pretty Big Deal: Save 31% on all Premium Subscriptions! - Sign up here
JapanesePod101
#4
Like Fuzzy-Anki?
Edited: 2015-02-23, 7:33 am
Reply
#5
Vempele Wrote:Like Fuzzy-Anki?
Wow this looks great! But in my case I need something simpler so in the end I realized for me it's enough to export my deck in a tab delimited txt and load it in a sql table, but thanks anyway! I'm sure sooner or later I'll need this wonderful Fuzzy Anki!
Reply