Add segments to API call