What is wikipedia pageid? how to change it into real page url?

yuli chika picture yuli chika · May 29, 2011 · Viewed 55.7k times · Source

I'm studying the wikipedia API,

some demo api call

What is the pageid? How do I change it into a real page url?

I mean <page pageid="18630637" ns="0" title="Translation" />, how to change 18630637 into http://en.wikipedia.org/wiki/Translation?

Answer

You can just use a URL like this:

http://en.wikipedia.org/?curid=18630637

This is the shortest form, others are also possible:

http://en.wikipedia.org/wiki?curid=18630637

http://en.wikipedia.org/wiki/Translation?curid=18630637

http://en.wikipedia.org/w/index.php?curid=18630637

Note that MediaWiki ignores the page title if you specify a curid, so even

http://en.wikipedia.org/wiki/FooBar?curid=18630637

leads to the same page.