query the widget endpoint