Skip to content

Devices in zone

GET
/users/id/getDevicesInZone

Parameters

Path Parameters

id*

user id

Typestring
Required

Query Parameters

zoneId

ID of geofence to search. zoneId or zoneType required.

Typestring
zoneType

Type of zones to search. Ignored if zoneId is specified. zoneId or zoneType required.

Typestring
includeApprox

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/getDevicesInZone
JavaScript
fetch("https://api.lightbug.cloud/api/users/id/getDevicesInZone")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("https://api.lightbug.cloud/api/users/id/getDevicesInZone");
Python
import requests
response = requests.get("https://api.lightbug.cloud/api/users/id/getDevicesInZone")
print(response.json())