function api for rentabroad