On Fri, Jan 26, 2018 at 9:16 AM, Victor Shepelev zverok.offline@gmail.com wrote:
Is there a way to tell actually non-existent files from files that are included from commons, through API?
Use prop=imageinfo and look at the "imagerepository". If it's not the empty string, the image exists. If it's "local" then the image exists locally. Otherwise, it's on a foreign repo such as Commons. On any WMF wiki except test2wiki, Commons (with the value "shared") is currently the only non-local possibility.
https://en.wikipedia.org/w/api.php?action=query&titles=File:Logo_of_the_...