Skip to main content
The typical workflow for historical data is a two-step process:
  1. Find points using the GraphQL API to discover sensors and their IDs
  2. Query timeseries using the REST API to fetch time-value data for those timeseries IDs

Step 1: Find point IDs with GraphQL

Query the knowledge graph to find the points you’re interested in:

Step 2: Fetch timeseries for those points

Use the point IDs to query historical data:
The response enriches each series with the point’s metadata, so you don’t need to join the results yourself:
Timestamps are in the site’s local timezone (here Europe/London, UTC+0), declared in query.timezone.

Common patterns

Dashboard: latest value for all equipment points

Get the current values for all points on a piece of equipment, directly in one GraphQL call:

Analytics: weekly energy comparison

Fault detection: high-resolution recent data

This returns raw (unaggregated) data for the last 2 hours, useful for detecting oscillation, stuck sensors, or control issues.

Python example

TypeScript example