question

gzch2002 avatar image
0 Likes"
gzch2002 asked

I set to get multiple pages but only one page returned.(Finding Api)

I tried to get more than 100 results by using finding API, but only the first page shows. Here is the example: http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findCompletedItems&SERVICE-VERSION=1.12.0&SECURITY-APPNAME=*******&GLOBAL-ID=EBAY-US&categoryId=1&paginationInput.entriesPerPage=3&paginationInput.pageNumber=2 Only 3 results returned. The pageNumber didn't seem to work. Thanks
finding api
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

clickimusprime avatar image
0 Likes"
clickimusprime answered
Your request would results paginated in sets of 3. So page 1 returns items 1-3, page 2 would give you items 4-6, etc. New items may arrive between requests. The pagination does not come from a static result set, so item results can change between requests.
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

gzch2002 avatar image
0 Likes"
gzch2002 answered
Thanks. But how do I get to the second page. It only showed first page.
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

clickimusprime avatar image
0 Likes"
clickimusprime answered
Your request is fetching page 2.
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

gzch2002 avatar image
0 Likes"
gzch2002 answered
Thanks clickprime, I am sorry to ask such basic questions, but can you please give more details, like how do I know it is page 2,(It looks like they are the page 1 to me when I compared to the searching I did), how I can get all 6 items. Or can you please send me to a link with more details on how the pages work? Thanks a lot.
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

gzch2002 avatar image
0 Likes"
gzch2002 answered
Do you mean I need to do this 2 times by changing the pagenumber to get all 6 items?
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

clickimusprime avatar image
0 Likes"
clickimusprime answered
**Do you mean I need to do this 2 times by changing the pagenumber to get all 6 items?** That's the purpose of pagination. But I can't imagine why you'd do that when you could just get all 6 items at once by removing the pagination parameters. Or getting 100 items per page as you indicated in your first post. You can get them 3x2 or 2x3 or 6x1. It seems that you don't understand the concept of pagination. Think of it as a long list of 200,000 items. You can get them 50 at a time, up to 100 pages (1-5000), or 100 at a time up to 100 pages (1-10000). The pagesize is the size of the chunk you want to receive at one time. The page number if the offset in this, in pagesize increments. Max is 100x100. The pagenumber feature has two main uses: - getting a large number of items for storage in a database - allowing the user to pagedown thru a list of items and fetching them on demand The pagesize can also be used to just request a specific number of items (up to 100) based on your current need.
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

gzch2002 avatar image
0 Likes"
gzch2002 answered
Thanks. The reason I used 3 and 2 pages is just for a test. All I want is 10000 items. I thought I could get 10000 continuous results at 1 call instead of 100 calls. I couldn't find any doc on how pagination works.
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.