I'm trying to make a batch call to Wikipedia's query API to retrieve the pageImages (main image) and extract. For some reason my API call only returns an image for the first result, not the second:
https://en.wikipedia.org/w/api.php?format=json&action=query&prop=pageimages|extracts&exintro=&explaintext=&titles=Stack%20Overflow%7CMicrosoft&exlimit=2&pithumbsize=500&pilimit=2
This was happening with the extracts too, but it was solved by adding the exlimit parameter. Which as far as I understand, for pageimages the equivalent parameter is pilimit. Unfortunately this doesn't fix it.
How can I change the API call above to return a batch collection of Wikipedia results, with each result having an extract and pageImages?