Add local variable for api call to actors.