trying to integrate api