This is always called with `APIEndpoint.SEARCH` so it doesn't need to be an argument to this function.