Can you use the analytics APIs in front-end widgets?

Wondering if you can use analytics APIs to pull data into front-end widgets in widget studio.  For instance, media most viewed within a date range?