Use the Querying API to fetch multiple pages of search results sequentially. This REST API lets you to retrieve entities that match a specific criteria.
The Try it functionality available from the API documentation lets you explore API endpoints and make calls directly from the documentation.