ThingsBoard icon

ThingsBoard

Interact with ThingsBoard REST API

Telemetry → Timeseries (Latest)

AI-generated

Summary

Fetches the most recent time series (telemetry) values for specific keys on a ThingsBoard entity.

Inputs

  • entityId (required) — A string value representing the entity ID (e.g., a device ID).
  • entityType — The entity type (defaults to 'DEVICE').
  • keys (required) — Comma-separated list of telemetry key names to fetch.
  • useStrictDataTypes — If true, disables automatic conversion of telemetry values to strings (defaults to false).

Output shape

A single record containing the latest values for the requested keys.

Values are returned in an object where keys match the requested telemetry keys and values are the latest recorded values.

Examples

Example 1: Get the latest temperature and humidity readings from a specific device.

Entity ID: 784f394c-42b6-435a-983c-b7beff2784f9, Keys: temperature,humidity

Links

Discussion