Devices and tracking

Stream

Live video streaming

Fetch the HLS playlist for a Device camera channel

GET
https://demo.traccar.org/api/stream/{deviceId}/{channel}/live.m3u8

Parameters

deviceIdintegerrequiredpath
channelintegerrequiredpath

Response

200OKstring

OK

Response fields application/vnd.apple.mpegurl
string
401Unauthorized

Unauthorized

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Fetch an HLS video segment for a Device camera channel

GET
https://demo.traccar.org/api/stream/{deviceId}/{channel}/{index}.ts

Parameters

deviceIdintegerrequiredpath
channelintegerrequiredpath
indexintegerrequiredpath

Response

200OKstring<binary>

OK

Response fields video/mp2t
string<binary>
401Unauthorized

Unauthorized

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)