Get data in html format via API

I’m trying to load some Visitors Log data in PHP Script. In PIWIK v3 data is loaded via request:
/index.php?forceView=1&viewDataTable=VisitorLog&module=Live&action=getLastVisitsDetails&small=1&idSite=1&period=day&date=2016-12-28&showtitle=1
I can load similar data like this:
/index.php?module=API&method=Live.getLastVisitsDetails&period=day&date=today&idSite=1&token_auth=xxxxxxxx
via API but I’m loading XML data. Is there any way to load data in html or is there a way to authorise this first request with token? I’ll appreciate any tip.

&format=html will do the trick