Get AnkiWeb collection size programmatically

I’m developing the Note Size addon which, except others, displays collection size in AnkiDesktop:
image
Collection size here is just size of file collection.anki2.


I noticed that users sometimes experience problems with exceeding the AnkiWeb collection size limit: 100Mb compressed / 250Mb uncompressed (docs).

I want to add displaying AnkiWeb collection size in AnkiDesktop.
Unfortunately, collection size in AnkiDesktop differs from collection size in AnkiWeb:
image

Is there any way to get relevant collection size from AnkiWeb programmatically?

Thanks!

3 Likes

The difference could be some AnkiWeb-specific metadata stored on the server.

AnkiWeb doesn’t allow programmatic access.

1 Like