embed widgets with api code