Download a shared deck
download_shared_deckDownloads a shared deck's .apkg from AnkiWeb to disk and returns the saved path. Existing files are never overwritten; new files get a numbered name.
Instructions
Download a shared deck's .apkg from AnkiWeb to disk and return where it was saved. An existing file is never replaced: the new one gets a numbered name. Works without an AnkiWeb session until AnkiWeb asks for one, which it does after a few downloads; then the signed-in session is used. AnkiWeb licenses shared decks for personal use only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deck | Yes | The shared deck's id, or its https://ankiweb.net/shared/info/<id> link. | |
| directory | No | An absolute path to an existing directory. Defaults to the server's own downloads directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deck | Yes | ||
| path | Yes | ||
| bytes | Yes | ||
| filename | Yes |