extracted youtube api call to a core service