To get information about a word in Wiktionary, I can make an Ajax call to the following URL at wiktionary.org: https://en.wiktionary.org/w/api.php?action=parse&format=json&prop=text|revid&callback=?&page=слово, where слово
is the word of interest.
This will return a JSON object with the format...
{ "parse":
{ "title": "\u0442\u044b"
, "pageid":96216
, "revid":38162039
, "text":{
"*": <HTML string>
}
}
}
... where <HTML string>
contains information on the given word, in all the languages that Wiktionary associates with the word. In the case of the word слово
, this means
- Bulgarian
- Macedonian
- Old Church Slavonic
- Russian
- Serbo-Croatian
- Ukrainian
How can I change the URL for the Ajax call so that it only returns data for a single language (for example: Russian)?