On Fri, Jan 26, 2018 at 9:16 AM, Victor Shepelev
<[hidden email]> 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.
On 2018-01-26 09:16, Victor Shepelev wrote:
> Is there a way to tell actually non-existent files from files that are
> included from commons, through API? Or "just check on commons, in case
> it is there" is the only way?