get
https://app.fracttal.com/api/meters/
This API returns the list of meters created in Fracttal. It lets you filter so you only get the meters you need: by asset code, by meter serial number, or by location.
- To get the meters that belong to a specific asset, send the
codeparameter (asset code). - To get the information of a specific meter, send the
code(asset code) andserial(meter serial number) parameters. - To get the meters of the assets linked to a location and its secondary (child) locations, send the
location_codeparameter.
GET https://app.fracttal.com/api/metersInput parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
code | text | Optional | Code of the asset the meter is associated with. |
serial | text | Optional | Serial number of the meter you want to query. |
start | integer | Optional | Field used to paginate records. It is the number where pagination starts. Default is 0. |
limit | integer | Optional | Number of records (items) you want the API to return. Default is 100 (it cannot be greater than this value). |
location_code | text | Optional | Code of the main location (parent location), used to query the meters linked to its secondary (child) locations. |
Output parameters
| Parameter | Type | Description |
|---|---|---|
id | integer | Meter identifier. |
active | boolean | Indicates the meter status, showing whether it is enabled or not. |
description | text | Meter description. |
serial | text | Meter serial number. |
is_counter | boolean | Indicates whether the meter is a counter (accumulator) type. |
counter_offset_value | number | Base value of the counter. It is the value readings are added to in order to obtain the accumulated value; for example, it is updated when the counter is reset. It is not the accumulated value. |
counter_value | number | Current accumulated value of the counter (base value plus the recorded readings). |
last_data | object | Information about the last reading added to the meter. See the structure in the table below. |
monthly_average_data | number | Monthly average value. |
units_description | text | Description of the meter unit. |
units_code | text | Meter unit code. |
items_description | text | Description of the asset the meter belongs to. |
parent_description | text | Location the asset belongs to. |
monthly_average_auto | boolean | Indicates whether the monthly average is calculated by the system or entered manually by the user. |
min_value | number | Meter minimum value. |
max_value | number | Meter maximum value. |
code | text | Asset code. |
is_monitored | boolean | Indicates whether the meter is being monitored. |
default_min | number | Default minimum value of the meter. |
default_max | number | Default maximum value of the meter. |
alert_high_preventive_value | number | High preventive threshold for the meter status. Does not apply to counters (is_counter = true). |
alert_high_preventive_enabled | boolean | Indicates whether the high preventive threshold is enabled. |
alert_high_critical_value | number | High critical threshold for the meter status. Does not apply to counters (is_counter = true). |
alert_high_critical_enabled | boolean | Indicates whether the high critical threshold is enabled. |
alert_low_preventive_value | number | Low preventive threshold for the meter status. Does not apply to counters (is_counter = true). |
alert_low_preventive_enabled | boolean | Indicates whether the low preventive threshold is enabled. |
alert_low_critical_value | number | Low critical threshold for the meter status. Does not apply to counters (is_counter = true). |
alert_low_critical_enabled | boolean | Indicates whether the low critical threshold is enabled. |
alert_current_state | text | Current alert state of the meter. If no state change has been recorded, the value is NORMAL. |
Structure of last_data:
| Parameter | Type | Description |
|---|---|---|
date | text | Date of the last reading (ISO 8601 format). |
value | number | Value of the last reading. |
accumulated_value | number | Accumulated value of the counter at the time of the last reading. |
How to get the accumulated value of a counterTo get the accumulated value of a counter-type meter, use
counter_value(current accumulated value) orlast_data.accumulated_value(accumulated value as of the last reading).The
counter_offset_valuefield is the base value of the counter and must not be interpreted as the accumulated value.
Errors
| Code | Cause |
|---|---|
404 | The code sent in location_code does not exist in the company. |
500 | Internal error while processing the query. |
Example
Request
GET https://app.fracttal.com/api/meters/?code=12345&serial=4789Response 200
200{
"success": true,
"message": "200",
"data": [
{
"id": 1001,
"active": true,
"description": "Generator hour meter",
"serial": "4789",
"is_counter": true,
"counter_offset_value": 1500,
"counter_value": 1620,
"last_data": {
"date": "2026-10-20T08:30:00+00:00",
"value": 120,
"accumulated_value": 1620
},
"monthly_average_data": 45,
"units_description": "HOURS",
"units_code": "HS",
"items_description": "Electric generator 01",
"parent_description": "/ Main plant / ",
"monthly_average_auto": true,
"min_value": null,
"max_value": null,
"code": "12345",
"is_monitored": false,
"default_min": 0,
"default_max": 0,
"alert_high_preventive_value": null,
"alert_high_preventive_enabled": false,
"alert_high_critical_value": null,
"alert_high_critical_enabled": false,
"alert_low_preventive_value": null,
"alert_low_preventive_enabled": false,
"alert_low_critical_value": null,
"alert_low_critical_enabled": false,
"alert_current_state": "NORMAL"
}
],
"total": 1
}Response — location not found (404)
404){
"success": false,
"message": "404",
"data": [
{
"ERROR": "Location code LOC-999 was not found in your company"
}
],
"total": 0
}