MediaWiki API 是 mediawiki 列表

MediaWiki API is returning empty extracts from Wikipedia

此页面返回一个空的摘录:

https://fr.wikipedia.org/w/api.php?action=query&prop=extracts&titles=Alerte%20Rouge%20%28groupe%29&explaintext&rvprop=content&format=json

但同样的查询适用于其他页面: https://fr.wikipedia.org/w/api.php?action=query&prop=extracts&titles=?action=query&prop=extracts&titles=B%C3%A9rurier_noir&explaintext&rvprop=content&format=json

按照其他主题中的建议添加“&exlimit=max&exintro”未能解决问题。

我是不是做错了什么?

在法语维基百科上,"Alerte Rouge (groupe)" 是指向 "Alerte rouge (groupe)" 的重定向。

在重定向上请求摘录不起作用。因此,您必须使用正确的标题,即 https://fr.wikipedia.org/w/api.php?action=query&prop=extracts&titles=Alerte%20rouge%20(groupe)&explaintext&format=json