Last modified: 2013-12-28 20:21:54 UTC
Original bug title: Add possiblity to query oldimage filtered by SHA1 with the API where "oldimage" is a reference to the according database table In an ideal world, there would be one method that tells me whether a file with a given sha1 was ever on a repo, returning the title where it was seen last. Currently I am firing 3 requests; 2 against the mw API and 1 against my toollabs account at https://commons.wikimedia.org/w/index.php?title=Commons:User_scripts/File_Analyzer&withJS=MediaWiki:FileAnalyzer.js for each query. As you may already suspect, I'd like to replace the one to my labs account with one to the mw API. This is useful for detecting copyright violations, [[WP:Sock puppetry]] and much more.
Sounds like bug 21345 or is there a different, because you want one api module for looking up in three database tables? At the moment you can combine the both searches in one request because list= is a multi param: action=query&list=allimages|filearchive&fasha1=...&aisha1=...
(In reply to comment #1) How stupid of mine. I know there was something. Don't know why it didn't show in search. Thanks for the hint, I am going to implement this right now! *** This bug has been marked as a duplicate of bug 21345 ***