See https://www.mediawiki.org/wiki/API:Categorymembers https://www.mediawiki.org/wiki/API:Categorymembers
The API limit is 500. Here are the first 500:
https://en.wiktionary.org/w/api.php?action=query&formatversion=2&lis... https://en.wiktionary.org/w/api.php?action=query&formatversion=2&list=categorymembers&cmlimit=500&cmtitle=Category:English%20agent%20nouns
Wptools (python) can probably simplify your task:
import wptools cat = wptools.category('Category:English agent nouns', wiki='en.wiktionary.org') cat.get_members() len(cat.data['members'])
576
On Jan 12, 2018, at 2:30 PM, Brandon Keith Biggs brandonkeithbiggs@gmail.com wrote:
Hello,
I am new with using the API and can’t seem to get the list of words from:
https://en.wiktionary.org/wiki/Category:English_agent_nouns https://en.wiktionary.org/wiki/Category:English_agent_nouns
I have managed to get the page:
https://en.wiktionary.org/w/api.php?format=jsonfm&formatversion=2&ti... https://en.wiktionary.org/w/api.php?format=jsonfm&formatversion=2&titles=Category:English_agent_nouns&action=query
But nothing I have tried has worked. I originally tried:
https://en.wiktionary.org/w/api.php?format=jsonfm&formatversion=2&ti... https://en.wiktionary.org/w/api.php?format=jsonfm&formatversion=2&titles=Category:English_agent_nouns&action=query&list=allpages
and I would expect for a list of pages (aka words) with a title attribute to show up, but instead I get titles such as: "title": "!" which is not very useful.
I have also tried going through all the props, but still nothing. I don’t really understand props and list, but something should have given all the words.
My goal is to use request to fetch the JSON so I can use the words in a script.
Are there any tutorials or guides that go into getting lists of words like this?
Thank you,
Brandon Keith Biggs http://brandonkeithbiggs.com/_______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api