Hi,
Is there any API to retrieve raw address of an inserted image?
e.g the original URL might be XXX.com/Image:YY.jpg
Now I want the raw link,
e.g XXX.com/a/b/YY.jpg
Is there any API can do that?
On Jul 28, 2014 3:23 AM, "Aaron Lewis" the.warl0ck.1989@gmail.com wrote:
Is there any API to retrieve raw address of an inserted image?
e.g the original URL might be XXX.com/Image:YY.jpg
Now I want the raw link,
e.g XXX.com/a/b/YY.jpg
Is there any API can do that?
I'm sure the API must have something like that but I haven't looked. (docs are pretty good. I normally just browse the self documenting /api.php without params)
the special page route is: * https://en.wiktionary.org/wiki/Special:Redirect/file/Example.jpg * https://en.wiktionary.org/wiki/Special:Redirect
Also, please make your key ID longer. http://web.archive.org/web/20140411163938/http://www.asheesh.org/note/debian... (not linking directly because his site's apparently broken atm)
-Jeremy
Use prop=imageinfo & iiprop=url.
here's an example that uses JSON:
https://en.wikipedia.org/w/api.php?action=query&titles=File:Test.jpg&...
On 7/28/14, 12:22 AM, Aaron Lewis wrote:
Hi,
Is there any API to retrieve raw address of an inserted image?
e.g the original URL might be XXX.com/Image:YY.jpg
Now I want the raw link,
e.g XXX.com/a/b/YY.jpg
Is there any API can do that?
mediawiki-l@lists.wikimedia.org