In mobile we are experimenting with generating infoboxes via Wikidata API.
Essentially we run this API request:
In the response for P109 is the value Albert Einstein signature 1934.svg
There are also other images in the response e.g. Albert Einstein Head.jpg and Albert Einstein (Nobel).png
However it is not obvious how we turn all these titles into thumbnail URLs without requiring additional API requests.
Would it be possible to return a thumbnail in the response via an additional api value
e.g. like so ?
{ "mainsnak": { "snaktype": "value", "property": "P18", "datatype": "commonsMedia", "datavalue": { "value": "Albert Einstein Head.jpg", "thumb": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/d3/Albert_Einstein_Head.jpg/160px-Albert_Einstein_Head.jpg" "url": "http://commons.wikimedia.org/wiki/File:Albert_Einstein_Head.jpg", "type": "image" } }, }