views:

29

answers:

2

Im trying to follow the tutorials from mediawiki

One of the examples they used is http://en.wikipedia.org/w/api.php?action=query&titles=Albert%20Einstein&prop=images

So I am wondering how would i convert File:1919 eclipse positive.jpg into the actual link to the file?

+1  A: 

Use the imageinfo property, as mentioned in the docs. E.g.:

http://en.wikipedia.org/w/api.php?action=query&titles=File:1919%20eclipse%20positive.jpg&prop=imageinfo&iilimit=50&iiend=20071231235959&iiprop=timestamp|user|url

Joshua C. Lerner
thanks for the help
tomxu
A: 

Here is an example in Java: Get the image link

axelclk