title: How can I find all the unused and uncategorized pages and images in MediaWiki?
body: <p>I'm trying to find all pages that are both unused and uncategorized.</p>
  
  <p>I can check them separately with the following API calls</p>
  
  <pre><code>api.php?action=query&amp;list=querypage&amp;qppage=Unusedimages
  
  api.php?action=query&amp;list=querypage&amp;qppage=Uncategorizedimages
  </code></pre>
  
  <p>But I can't figure out how to find the intersection between the two queries.</p>
  
  <p>Any advice? Or is there a different way to go about it?</p>