When the aggregates are not enough and you need the underlying track.
8.1 GET /api/get_history — trips and stops
curl 'https://myfleet.sawatelematics.com/api/get_history?device_id=17\
&from_date=2026-10-06&from_time=00:00&to_date=2026-10-06&to_time=06:00' \
-H 'Authorization: Bearer sk_live_…'
Returns segments, each with its constituent positions:
{ "items": [
{ "status": 3, "show": "2026-10-05 22:00:01",
"raw_time": "2026-10-06 00:00:01", "distance": 0, "driver": null,
"items": [ { "id": 4449716, "device_id": 17,
"time": "2026-10-06 00:00:01", "speed": 0,
"latitude": -2.033563, "longitude": 30.09421,
"altitude": 1533, "course": 198, "distance": 0,
"other": "<info><priority>0</priority>…</info>" } ] } ] }
status identifies the segment kind (drive / stop / idle).
Measured: 4.99 MB for one vehicle over six hours. Request narrow windows, one vehicle at a time. A day across a fleet will not complete.
8.2 GET /api/get_history_messages — raw positions, paginated
Prefer this for bulk extraction. Same parameters plus page and limit:
{ "messages": { "current_page": 1, "data": [
{ "id": 4449716, "device_id": 17, "latitude": -2.0335633,
"longitude": 30.0942099, "altitude": 1533, "course": 198,
"other": "<info>…<ignition>true</ignition><io270>137</io270>…</info>" } ] } }
Page through with limit around 500–1000 and a date window of a day or less.