dav
dav

Reputation: 43

Request list of words on Wiktionary API

I'm trying to get a list of random french words from Wiktionary, using this. But words from other languages appear, how can I get only french words?

Upvotes: 2

Views: 1125

Answers (1)

There's no way to get more than one entry, but you can get one by leveraging lemma categories and one special page. Those categories all lemmas in a specific language. The special page is called "RandomInCategory".

So for a French word you would need to access this page: Special:RandomInCategory/French_lemmas

Upvotes: 0

Related Questions