2017-10-30 18:16 GMT+01:00 Laura Morales <laure...@mail.com>: > - wikidata entry: https://www.wikidata.org/wiki/Q161234 > - "logo image" property pointing to: > https://commons.wikimedia.org/wiki/File:0_A.D._logo.png > > However... that's a HTML page... How do I get a reference to the .png file? > In this case > https://upload.wikimedia.org/wikipedia/commons/1/1c/0_A.D._logo.png
That's not exactly straightforward, given you have to make a query for every single file (or batch of up to 50 of them), but you can get the URL through the API. In this case: https://commons.wikimedia.org/w/api.php?action=query&format=json&prop=imageinfo&iiprop=url&titles=File%3A0_A.D._logo.png Best regards, -- Jérémie _______________________________________________ Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata