Set up GET request for api.