The Dementia of Magic JSON metadata interface

If you've got some manner of tool that wants to automatically pick out DoM comics and any associated metadata, you can use this handy-dandy JSON interface which may or may not be shamelessly inspired by Randall Munroe's JSON metadata interface for XKCD!

If you want data from the most recent comic, you can find it at:

https://dementiaofmagic.net/comic.0.json

For a specific comic (by date), you can use the YYYYMMDD format in the /d/ directory, such as:

https://dementiaofmagic.net/d/20200108.0.json

That is, /d/YYYYMMDD.0.json. The most recent comic (that is, the one pointed to by comic.0.json) will also have an identical dated entry in the archives.

Note very carefully, "inspired by" is not the same as "compatible with"! The DoM's structure is rather embarrassingly still based on a literally decades-old format that KeenSpace/ComicGenesis used, while Randall Munroe's is likely cleaner. As such, you will need the nextday and prevday fields to navigate, and remember that imgs is an array of potentially multiple image links.

Most of the fields should be self-explanatory, but just to be sure:

More data may occur in later revisions.