Topic on Project:Support desk

API json result for prop=imageinfo fails

2
Summary by User587668
$.getJSON(url, function(res) {
           var pages = res["query"]["pages"];
           $.each( pages, function( i, item ) {
               var info = item.imageinfo[0],
                   width = item.width;
           });
});
User587668 (talkcontribs)
TheDJ (talkcontribs)

I also note that the separator for iiprop is a pipe character not a comma and that this call does not require a POST.

Reply to "API json result for prop=imageinfo fails"