On Fri, Nov 25, 2016 at 6:11 AM, Hugo Manguinhas < Hugo.Manguinhas@europeana.eu> wrote:
In particular, given a File page like this one: https://commons.wikimedia.org/wiki/File:African_Dusky_ Nightjar_(Caprimulgus_pectoralis)_(W1CDR0000386_BD28).ogghttps://commons. wikimedia.org/wiki/File:African_Dusky_Nightjar_(Caprimulgus_pectoralis)_( W1CDR0000386_BD28).ogg
I would like to get the "Europeana link" part... it is enough for me to get the data as Wiki markup, but parsing the whole HTML would be too much :S
... btw, is there any way to query for such data? I have been using the API Sandbox (https://en.wikipedia.org/wiki/Special:ApiSandbox ) but could not find a method that could do this...
I don't think it's possible. You can query the main fields of the information table (author, source etc) via prop=imageinfo&iiprop=extmetadata https://commons.wikimedia.org/wiki/Special:ApiSandbox#action=query&format=json&prop=imageinfo&titles=File%3AAfrican_Dusky_Nightjar_(Caprimulgus_pectoralis)_(W1CDR0000386_BD28).ogg&iiprop=extmetadata, but that field is just marked as a miscellaneous info field so there isn't really any way to find it.