Skip to content

Get device point by id

GET
/devices/id/points/fk

Parameters

Path Parameters

id*

device id

Typenumber
Required
fk*

Foreign key for points

Typenumber
Required

Responses

Body (JSON)
JSON
{
"location": null,
"timestamp": "string",
"speed": 0,
"altitude": 0,
"course": 0,
"num_value": "string",
"stringValue": "string",
"sendReason": 0,
"sats": 0,
"hdop": 0,
"accuracy": 0,
"locationType": "string",
"batteryVoltage": 0,
"batteryPct": 0,
"averageCharge": 0,
"created": "string",
"address": "string",
"alertType": 0,
"currentUsed": 0,
"gsmSignal": 0,
"correlationId": "string",
"id": 0,
"deviceId": 0
}

Samples

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