Adding pagination to the API call

I added the offset parameter to use the API pagination;
There is no documentation about the offset paramater; sorry about that