Thread:Project:Support desk/Delete unused images/reply (9)

Thanks for working on this script, but please do not use HTML output as an API. This can and will break when you least expect it, nor is it very reliable or stable.

We have an API for this, check API:Querypage. For example:


 * https://en.wikipedia.org/w/api.php?format=jsonfm&action=query&list=querypage&qppage=Unusedimages&qplimit=200

When you parse the JSON, you'll find the title property in the  array. Aside from JSON, there are many other API:Formats available.