What Peter highlighted is that the mediawiki API pages results, when you
make a request you should page thru all results

On Monday, May 2, 2016, Petr Onderka <gsv...@gmail.com> wrote:

> No, it's not about paging in your app, it's about paging of the API
> results. [1]
>
> In the case of this specific query, it's enough just to raise the
> limit by adding imlimit=max to the query [2],
> but in general, you should specify the limit and also follow continue.
>
> Petr Onderka
> User:Svick
>
> [1]: https://www.mediawiki.org/wiki/API:Query#Continuing_queries
> [2]:
> https://en.wikipedia.org/w/api.php?action=query&prop=images&pageids=45298209|22451814|17926903|6084709|4037814|302483|4740439|3894101|4157638|1845819|25337925|2604407|49063439|6258715|4259530|48523312|6332908|30044006|35970623|2101648|49073305|4680959|36834129|313451|15135925|13549495|16569477|937103|45225441|48653192|18414867|972204|17530427|26563621|15192218|45235494|33513019|21843422|22848121|23809496|9094714|48320541|3291857|26743149|8130141|24251238|12777317|36522192|7889859|35052699&format=json&imlimit=max
>
> On Mon, May 2, 2016 at 3:25 PM, sherry.um...@gmail.com <javascript:;>
> <sherry.um...@gmail.com <javascript:;>> wrote:
> > Hi John,
> >
> >
> > I have not decided yet whether to do any paging logic in my app (if thats
> > what you are asking).
> >
> > But I want to get the whole list of images from all the pages in the
> query
> > and then I need to do some filtration.
> >
> > -Sherry
> >
> > On Mon, 2 May 2016 at 15:01 <mediawiki-api-requ...@lists.wikimedia.org
> <javascript:;>>
> > wrote:
> >>
> >> Send Mediawiki-api mailing list submissions to
> >>         mediawiki-api@lists.wikimedia.org <javascript:;>
> >>
> >> To subscribe or unsubscribe via the World Wide Web, visit
> >>         https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
> >> or, via email, send a message with subject or body 'help' to
> >>         mediawiki-api-requ...@lists.wikimedia.org <javascript:;>
> >>
> >> You can reach the person managing the list at
> >>         mediawiki-api-ow...@lists.wikimedia.org <javascript:;>
> >>
> >> When replying, please edit your Subject line so it is more specific
> >> than "Re: Contents of Mediawiki-api digest..."
> >>
> >>
> >> Today's Topics:
> >>
> >>    1. Wrong result (sherry.um...@gmail.com <javascript:;>)
> >>    2. Re: Wrong result (John)
> >>
> >>
> >> ----------------------------------------------------------------------
> >>
> >> Message: 1
> >> Date: Sun, 01 May 2016 20:38:10 +0000
> >> From: "sherry.um...@gmail.com <javascript:;>" <sherry.um...@gmail.com
> <javascript:;>>
> >> To: "mediawiki-api@lists.wikimedia.org <javascript:;>"
> >>         <mediawiki-api@lists.wikimedia.org <javascript:;>>
> >> Subject: [Mediawiki-api] Wrong result
> >> Message-ID:
> >>
> >> <CABKw4GEpYpT4dw=GdeCw5G=snn7vn2eeghgtqr48miclbvq...@mail.gmail.com
> <javascript:;>>
> >> Content-Type: text/plain; charset="utf-8"
> >>
> >> hello,
> >>
> >> if i run following query :
> >>
> >>
> >>
> https://en.wikipedia.org/w/api.php?action=query&prop=images&pageids=45298209|22451814|17926903|6084709|4037814|302483|4740439|3894101|4157638|1845819|25337925|2604407|49063439|6258715|4259530|48523312|6332908|30044006|35970623|2101648|49073305|4680959|36834129|313451|15135925|13549495|16569477|937103|45225441|48653192|18414867|972204|17530427|26563621|15192218|45235494|33513019|21843422|22848121|23809496|9094714|48320541|3291857|26743149|8130141|24251238|12777317|36522192|7889859|35052699&format=json
> >>
> >> I do not get images for all the pageids. I am not sure what is worn in
> >> this
> >> query.
> >>
> >> If I use single pageid then I get expected result.
> >>
> >> Please suggest or help!
> >>
> >> -Sherry
> >> -------------- next part --------------
> >> An HTML attachment was scrubbed...
> >> URL:
> >> <
> https://lists.wikimedia.org/pipermail/mediawiki-api/attachments/20160501/91fc4568/attachment-0001.html
> >
> >>
> >> ------------------------------
> >>
> >> Message: 2
> >> Date: Sun, 1 May 2016 17:35:01 -0400
> >> From: John <phoenixoverr...@gmail.com <javascript:;>>
> >> To: "MediaWiki API announcements & discussion"
> >>         <mediawiki-api@lists.wikimedia.org <javascript:;>>
> >> Subject: Re: [Mediawiki-api] Wrong result
> >> Message-ID:
> >>
> >> <CAP-JHp=giwUuQT-TGeL29+e3J=oz+jf1dovicv0udg29ao-...@mail.gmail.com
> <javascript:;>>
> >> Content-Type: text/plain; charset="utf-8"
> >>
> >> Are you paging thru all the results or just the single result page?
> >>
> >> On Sunday, May 1, 2016, sherry.um...@gmail.com <javascript:;> <
> sherry.um...@gmail.com <javascript:;>>
> >> wrote:
> >>
> >> > hello,
> >> >
> >> > if i run following query :
> >> >
> >> >
> >> >
> >> >
> https://en.wikipedia.org/w/api.php?action=query&prop=images&pageids=45298209|22451814|17926903|6084709|4037814|302483|4740439|3894101|4157638|1845819|25337925|2604407|49063439|6258715|4259530|48523312|6332908|30044006|35970623|2101648|49073305|4680959|36834129|313451|15135925|13549495|16569477|937103|45225441|48653192|18414867|972204|17530427|26563621|15192218|45235494|33513019|21843422|22848121|23809496|9094714|48320541|3291857|26743149|8130141|24251238|12777317|36522192|7889859|35052699&format=json
> >> >
> >> > I do not get images for all the pageids. I am not sure what is worn in
> >> > this query.
> >> >
> >> > If I use single pageid then I get expected result.
> >> >
> >> > Please suggest or help!
> >> >
> >> > -Sherry
> >> >
> >> -------------- next part --------------
> >> An HTML attachment was scrubbed...
> >> URL:
> >> <
> https://lists.wikimedia.org/pipermail/mediawiki-api/attachments/20160501/c8451e51/attachment-0001.html
> >
> >>
> >> ------------------------------
> >>
> >> Subject: Digest Footer
> >>
> >> _______________________________________________
> >> Mediawiki-api mailing list
> >> Mediawiki-api@lists.wikimedia.org <javascript:;>
> >> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
> >>
> >>
> >> ------------------------------
> >>
> >> End of Mediawiki-api Digest, Vol 107, Issue 1
> >> *********************************************
> >
> >
> > _______________________________________________
> > Mediawiki-api mailing list
> > Mediawiki-api@lists.wikimedia.org <javascript:;>
> > https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
> >
>
> _______________________________________________
> Mediawiki-api mailing list
> Mediawiki-api@lists.wikimedia.org <javascript:;>
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to