On Apr 9, 2015 6:57 AM, "TUSHAR BHARODIYA1" <[email protected]> wrote: > > Hello there, > I just want to get only English word from this WIKTIONARY API URL > http://en.wiktionary.org/w/api.php?action=query&list=random&format=json . > > which parameter should i include in this URL to fulfill the requirement? > > shoul i have to use different url? (yes) which one? > > -- > Thank you > tushar > > _______________________________________________ > Mediawiki-api mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Try https://en.wiktionary.org/wiki/Special:Randomincategory/English_lemmas and look at the location header returned in the http request. There is no api for this because I was bad and lazy. The pseudo-random result is probably more pseudo than random... Hope that helps. --bawolff
_______________________________________________ Mediawiki-api mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
