Thank you for working on this! First round of feedback is here:
- Add titles to all examples like in API:Parsing wikitext#Examples. For example: first example could be "Example 1: List ten pages in a category"
- Use collapsible box for 'Response' and 'Sample Code' section of all examples except Example 1 like in API:Parsing wikitext#Examples
- Example 1 and 2 seem very similar. We don't need to repeat stuff and probably could just show one request, maybe 2.
- Example 4 & 5 seem similar too. We could combine them, may be only use Example 5.
- In all your 'Response' sections you are showing output in XML format. However, the recommended format is JSON (See API:Data formats#JSON parameters).
- For API documentation, you will have to embed the module documentation:https://www.mediawiki.org/w/api.php?action=help&modules=query%2Bcategorymembers. See here API:Prefixsearch#API documentation for reference.