Looking at the examples on api.php,
adding a &apnamespace=1 to api.php?action=query&list=allpages works,
but doesn't when added to the next example,
api.php?action=query&generator=allpages&prop=info .
Pilot error surely, but still, how can I set the namespace?