Construct api calls with url get params