adding api call for widget info. Helps reduce arguments on <script> embed code..