在维基百科中 API 第二个数组为空

In wikipedia API second array empty

在检索 JSON 数据时,维基百科中的第二个数组 API 总是空的,为什么会这样?

https://en.wikipedia.org/w/api.php?format=json&action=opensearch&origin=*&search=javascript

尝试更改搜索词,但第二个数组仍然为空。 请帮助解决任何替代 link 或我可能缺少的任何参数。

根据 API documentation the empty array should return the first line of the article. For some reason, the API returns an empty string. If you compare the response from the Sandbox API 文档页面示例部分中的给定响应,您会看到错误发生在 API 而不是您这边。

更新 阅读更多内容后,示例部分下方有一个错误报告 link,它解释了为什么禁用描述:https://phabricator.wikimedia.org/T241437