Thread:Project:Support desk/MediaWiki API: how do you get the max image width with piprop and pithumbsize ?/reply

Could you show us an example of the query you're trying, what it returns, and what you'd like to be different?

And it looks like you should be using : https://en.wikipedia.org/w/api.php?action=query&titles=File:Test.jpg&prop=imageinfo&iiprop=url|size