API talk:Categorymembers

Namespace Property
For the cmnamespace property, does it take the namespace's number of its name? --(Havvy) 97.120.59.79 01:12, 17 September 2012 (UTC)
 * It takes one or more numbers: for example,  .  --R&#39;n&#39;B (talk) 11:47, 18 September 2012 (UTC)

Typo in properties?
I scratched my head on using this on Wikimedia Commons, but then found that properties such cmtype are actually named gcmtype. --Fæ (talk) 10:07, 27 August 2013 (UTC)
 * This is standard for any property retrieved using "generator=foo" as opposed to "titles=foo|bar". See API:Query for details.  --R&#39;n&#39;B (talk) 01:40, 3 September 2013 (UTC)

Commons: gcmprop
This seems to be stuck on default (ids|titles) and does not provide any other returns. |timestamp&gcmtitle=Category:Yellow_flowers&gcmlimit=32 Example where timestamp is a requested property but not returned. --Fæ (talk) 22:42, 28 August 2013 (UTC)

Wikiget

 * Wikiget, a unix command-line tool to retrieve the list of articles in a category. -- Green Cardamom (talk) 01:49, 23 November 2016 (UTC)

Search a for a page title in a specific category.
Are we able to query for a keyword under a given category? For example, I would like to query for space until the category keyboard.‎

Abnormal skip in TOC numbering (corrected)
2.1=>2.6    2.6=>2.11    1 API documentation 2 Examples 2.1 Example 1: List twenty pages in a category 2.1.1 GET request 2.1.2 Response 2.1.3 Sample code 2.6 Example 2: Get the ten articles most recently added to a category 2.6.1 GET request 2.6.2 Response 2.6.3 Sample code 2.11 Example 3: Get ten subcategories of a category 2.11.1 GET request 2.11.2 Response 2.11.3 Sample code 3 Possible errors 4 Parameter history 5 See also

refer to => https://www.mediawiki.org/wiki/Topic:V80j0jclibtkd7g4

Christian FR (talk) 21:59, 14 November 2019 (UTC)

What is the value for PARAM:"cmcontinue":
I can put value for "cmlimit":50. For "cmcontinue":"?"--Info-farmer (talk) 05:31, 16 February 2020 (UTC) PARAMS = { "action": "query", "cmtitle": "Category:Physics", "cmlimit": "20", "cmcontinue":"21", "list": "categorymembers", "format": "json" }
 * Whatever was returned in that parameter from the previous query that you are now continuing. --Clump (talk) 13:06, 16 February 2020 (UTC)
 * I am using the sample code of get_category_items.py (API:Categorymembers) and i changed the code as follows;-

but i am getting the error:

"KeyError: 'query' "

how can i solve this issue?--Info-farmer (talk) 07:02, 17 February 2020 (UTC)
 * is not a count. Observe that the original query includes in its json response a value for  .  That exact value is the one you need to pass in the   parameter when making a subsequent query (to continue the query). --Clump (talk) 12:28, 17 February 2020 (UTC)
 * when i print "DATA = R.json", i understand my mistake. Thanks indeed for your explanation.--Info-farmer (talk) 01:30, 18 February 2020 (UTC)