2015-05-29 83 views
0

我將使用API​​從維基百科獲取數據。 搜索字符串是'STB'維基百科API搜索問題

案例1。在瀏覽器中使用API​​

https://en.wikipedia.org/w/api.php?format=xml&action=query&list=search&srsearch=STB 

病例2http://en.wikipedia.org/wiki/STB

我想情況1分的結果是相同的情況下,與2,但它是不同的。如何獲得像使用API​​的情況2的結果?

回答

0

如果你需要從你必須使用this API的STB維基百科頁面的鏈接:

https://en.wikipedia.org/w/api.php?action=query&prop=links&pllimit=500&plnamespace=0&titles=STB