In above function the parameters (country, data, country, start, end) will help to fetch the data from indeed api url. $.each will parse all the data’s and store the data’s in “result” variable. Below code will construct the pagination URL and store the links in “pagination” variable.