Search Query (Cursor) and documentation
Source - @brianhribek
Please check and confirm accuracy of this statement.
The parameters passed in the request body are exactly the same as the query API except for the offset and cursor values. Please note that offset is not a valid parameter in query_with_cursor API
Typically "offset" will be the trick to use in order to get a chunk of records and then get the next chunk and so on.
Perhaps the documentation may provide a better working example to do just that.