AnkiMobile’s URL Schemes
Adding Notes
A ‘URL Scheme’ is like a link to a website, but it instead links to an app. A simple example is:-
type=<note type name> -
deck=<deck name>- Separate nested decks with
::
- Separate nested decks with
%20. If you’re using
the Shortcuts app, there is a URL encode action which you may find
useful.
The remaining keys are optional:
profile=<profile name>
-
tags=<tags separated by space> -
dupes=1- if provided, allow a note to be added even if the same content is on an existing note. -
x-success=<url scheme for another app>- use to automatically return to another app after the note is added.
http://example.com/getImage?imgID=1234&fakePath=foo.jpg. Be careful to
escape the URL before including it in the URL scheme, as otherwise ? and
& characters will be interpreted as part of the URL scheme instead of
the URL.
Info for Adding
There is a separate URL scheme that third-party apps can use to get your profile, deck and notetype names, so that they can be presented to you in a friendly manner. The app should invoke the following URL:anki://x-callback-url/infoForAdding?x-success=...
If the user authorises the request, the requested data will be available on the clipboard,
and can be retrieved using the following. You should clear the clipboard after retrieving
the data.
Search
From AnkiMobile 2.0.90+. Allows you to open the search string with the provided search.anki://x-callback-url/search?query=...
Sync
From AnkiMobile 2.0.90+. Performs the same action as tapping on the Sync button.anki://x-callback-url/sync