How to retrieve Wiktionary word content?

前端 未结 9 1631
花落未央
花落未央 2020-11-28 18:27

How may Wiktionary\'s API be used to determine whether or not a word exists?

9条回答
  •  春和景丽
    2020-11-28 18:39

    You could use the Revisions API:

    https://en.wiktionary.org/w/api.php?action=query&prop=revisions&titles=test&rvslots=*&rvprop=content&formatversion=2

    or the Parse API:

    https://en.wiktionary.org/w/api.php?action=parse&page=test&prop=wikitext&formatversion=2

    More examples are provided in the docs.

提交回复
热议问题