Skip to content

Summary of devices

GET
/users/id/getDeviceSummary

Lists all devices for a user, with a summary of state, including most resent points.

Parameters

Path Parameters

id*

user id

Typestring
Required

Query Parameters

pointCount

Maximum number of points to return per device. Default 5.

Typestring
dateRange

What date range to consider when retrieving recent points. Typical use is [TimeOfLastPointDownload, NOW]. Defaults to all time.

Typestring
hideApprox

Don't include GSM / poor accuracy locations. Default to false.

Typestring

Responses

Request was successful
JSON
[
null
]

Samples

cURL
curl -X GET https://api.lightbug.cloud/api/users/id/getDeviceSummary
JavaScript
fetch("https://api.lightbug.cloud/api/users/id/getDeviceSummary")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("https://api.lightbug.cloud/api/users/id/getDeviceSummary");
Python
import requests
response = requests.get("https://api.lightbug.cloud/api/users/id/getDeviceSummary")
print(response.json())