Wikipedia API: how to search for a term in a specific category

半世苍凉 提交于 2019-11-30 05:13:29

I feel your pain bro, try something like:

http://en.wikipedia.org/w/api.php?action=query&list=search&format=jsonfm&srsearch=matrix+incategory:English-language_films

Change the above format from jsonfm to json for real json output.

You can't tell the API to only return articles from a category that match a certain criteria, unfortunately. You can, however, tell the API to return articles in a specific category, such as "1990s science fiction films", and then use another programming language such as PHP or JavaScript to then return the articles that match your specified criteria.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!