Skip to content

Advangrid API

The Advangrid API provides a secure, token-authenticated REST interface for discovering assets and retrieving time-series measurements from the Advangrid platform. It includes endpoints to list accessible devices, optionally enriched with related object data, and to list objects for organizing devices by site or location.

The API also supports consumption retrieval over a defined time range (with constraints such as hour-aligned RFC3339 timestamps and a bounded window), enabling quick energy overviews without running raw measurement queries.

For metric discovery, you can list all metric definitions and list metrics available for a specific device, including the phases supported by that device. For detailed analytics, the API uses an asynchronous query workflow: submit a measurement timeseries request via POST /measurements, receive a query_id, poll GET /queries/{query_id}/status, and finally fetch results via GET /queries/{query_id}/result (results expire after a TTL).

Measurement queries support phase filtering (L1/L2/L3 or all phases) and quality filtering (ok, not-ok, all) to control whether returned data points must pass validation rules.

Query results return per-sample fields such as measurement timestamp, rate/counter values, validity duration, and quality status/flags, enabling integrators to safely build dashboards and analytics while respecting data quality signals.

This quick start walks you through the fastest “happy path” to integrate Advangrid data into your system. You will authenticate with your API token, discover the devices you have access to, identify which metrics are available per device (including phase support), and then retrieve time-series measurements using the asynchronous query flow.

The recommended sequence is: List Devices → List Device Metrics → Submit Measurements Query → Poll Query Status → Fetch Query Result. Use metric_id as the stable identifier for selecting measurements, and apply phase_filter when working with multi-phase electrical data.

The query result contains timestamps and both val_rate (instantaneous / gauge-like values) and val_counter (cumulative / counter-like values), allowing you to build charts and compute consumption depending on the metric type.

Always read quality_status and quality_flags in the response before aggregating or alerting on the data. If you need a quick energy overview without raw time-series, use the dedicated consumption endpoint (where available) for a bounded time range.