使用Mediawiki API返回维基百科页面URL



我发现我可以使用:

https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&titles=Stack%20Overflow

检索维基百科页面的介绍部分。但是现在我想获取同一页面的URL。

使用 prop=info&inprop=url : https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&prop=extracts%7Cinfo&titles=Stack+Overflow&exintro=1&explaintext=1&inprop=url

通常,ApiSandbox 是发现 API 功能的好方法。

最新更新