This workflow demonstrates how to send a GET request with pagination on the example of Google Books API.
In the case of Google Books API, the key parameter is "startIndex". The maximum number of returned results is 40, the default one is 10.
First, the workflow gets the total number of items for the requested search term.
Next, the workflow starts to get the titles and the authors for the books corresponding to the provided search terms from the "startIndex" = 0. At each iteration, the "startIndex" is increased by the number of results returned in this iteration. Next iteration starts from the increased "startIndex". This process is repeated till "startIndex" is greater than or equal to the maximum number of items. The duplicates are removed in the end.
Workflow
Pagination on the example of Google Books API
External resources
Used extensions & nodes
Created with KNIME Analytics Platform version 4.6.1
- Go to item
- Go to item
- Go to item
- Go to item
- Go to item
- Go to item
Legal
By using or downloading the workflow, you agree to our terms and conditions.