Get single tag value
Fetches the value of a specific tag identified by its name, along with optional filters for time range and conditions.
Last Update: 7 NOV 2024
Example URL
Note: This endpoint demonstrates querying the value of a specific tag (B15-Status
) with additional query parameters. In this example:
starttime=*-10d
specifies the start time as 10 days ago.endtime=*
indicates no specific end time (or the most recent data).query=value > 50
filters the results to include only those where the value is greater than 50.
Retrieve Tag Value with Conditions
Method: GET
URL: {{base_url}}/tag/{tagname}/value?starttime={starttime}&endtime={endtime}&query={query}
Query Parameters:
Parameter | Required | Description |
---|---|---|
| Yes | Starting time for filtering the data (e.g., |
| Yes | Ending time for filtering the data (e.g., |
| No | A condition to filter the results, acting like a WHERE clause in PostgreSQL. |
Time Expression:
Expression | Description |
---|---|
| Second |
| Minute |
| Hour |
| Day |
| Month |
| Year |
| Present |
| Go back (e.g., |
| Go forward (e.g., |
Response Example:
Response Details:
Object | Data Type | Description |
---|---|---|
| array | Array of tag value objects returned from the API. |
| string | Name of the tag. |
| string/null | Description of the tag, if available. |
| string/null | Sub-description of the tag, if available. |
| string | Current value of the tag. |
| integer | Quality indicator of the tag value. |
| integer | Status code associated with the tag value. |
| datetime | Timestamp when the tag value was recorded. |
Last updated