Board Thread:Support Requests - Getting Technical/@comment-2170536-20130822192438/@comment-1158325-20131102061242

You can use the API. Sounds like you're looking for imageinfo: See Special:ApiExplorer to mw:API:Main page for help.