Right, but the point is to avoid an extra round trip just to get a URL. On Mon, Oct 19, 2015 at 3:20 PM, Bartosz Dziewoński <matma....@gmail.com> wrote:
> On 2015-10-19 17:28, Brian Gerstle wrote: > >> It's been mentioned elsewhere (I believe by Gergo) that these URLs aren't >> stable, and can't be reliably constructed by clients. Is that still the >> case? >> > > The URL looks different for very long file names and for different file > types. There is an API endpoint to get it, though: > https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&prop=imageinfo&format=json&iiprop=url&iiurlwidth=40&titles=File%3AExample.jpg > > -- > Bartosz Dziewoński > > > _______________________________________________ > Wikitech-l mailing list > Wikitech-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > -- EN Wikipedia user page: https://en.wikipedia.org/wiki/User:Brian.gerstle IRC: bgerstle _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l