Retrieve the Wikipedia URL for an object with a GUID

Wikipedia URLs are created automatically by substituting the /wikipedia/en_id key of the topic into the following URL:

http://en.wikipedia.org/wiki/index.html?curid=8980330

where 8980330 is the /wikipedia/en_id key.

You can retrieve the /wikipedia/en_id (aka the "wpid") from Freebase using any variant of the following MQL:

 [
{
"id" : "/en/barack_obama",
"key" : {
"namespace" : "/wikipedia/en_id",
"value" : null
}
}
]

See also the related topic on how to retrieve Wikipedia article text.

Search Help Center

Discussions

There are no conversations on this topic. Would you like to start one?

Start the Discussion »