Pagination

How to page through results from the Webhose API

How to page through results from the Webhose API

When you call the API, Webhose returns a list of posts. The list is a subset of the total number of posts that are relevant to the query. To get the total number of available results, access the 'totalResults' field.

The following example shows the 'totalResults' field that a query returned.

To page through the available posts, call the value in the 'next' field.

Each request may return up to 100 posts matching your query. To consume all the data, make sure you keep on calling the URL string value that appears in the "next" field found in the output of each request. So for example if the total number of results is 1,000, you will need to call the output value of the "next" field 10 times. Make sure you call the new value of the output of each request.

Pagination


How to page through results from the Webhose API

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.