Event log entry based on pagination

My query is i want to find Event Log Entry list with pagination based on process instance id.
I have finding a way to get event log record based on parameter like my parameter is: processInstanceId,startRecordNo,endRecordNo,page,order.

So here,
processInstanceId = processInstanceId,
startRecordNo = 0,
endRecordNo = 50,
page = 1,
order = ‘ASC | DESC’,

So in short my query is i just want to get even log based on pagination.
So if any one have idea about above query than please help me and give me some solution for same.

Thanks

What API are you referring to? The managementService#getEventLogEntries ? (which already has pagination). Or something else?