fixed #1 Error and pagination extraction from API responses