Wincc Rest Api Today
The RestSharp library provides a clean, intuitive interface for consuming REST APIs in .NET applications. After installing the RestSharp NuGet package, a simple WinForm application can read WinCC tag values with minimal code:
The API is designed around standard web principles, making it accessible to any language that supports HTTP, such as Python, C#, or JavaScript.
It acts as an enabler for data transfer to cloud platforms, particularly when used with the WinCC/Cloud Connector . 3. Architecture and Configuration
: Allows other systems to query WinCC for tag management data, RT (Runtime) values, and archive tags.
Node-RED's visual programming environment offers excellent integration with WinCC REST services. By using HTTP request nodes, you can create flows that read from and write to WinCC tags, then route the data to databases, dashboards, or other systems. The wincc-unified-nodes package provides custom nodes for accessing the GraphQL server in WinCC Unified environments, enabling rich visualizations and real-time data processing. wincc rest api
Beyond basic authentication, consider implementing certificate validation, IP whitelisting, and audit logging. The REST service can be monitored at the configured port using Microsoft C++ SDK for ongoing service health checking.
The server responds with a JSON payload containing an access token (e.g., a JSON Web Token). This token must be included in the header of all subsequent requests: Authorization: Bearer . Step 3: Reading a Tag Value Once authenticated, you can query a specific process tag.
At the center of this convergence is Siemens SIMATIC WinCC, a cornerstone SCADA (Supervisory Control and Data Acquisition) system. To bridge the gap between heavy industrial machinery and modern web development, Siemens introduced the WinCC REST API. This powerful interface allows developers to interact with industrial processes using standard, universal web technologies.
Connecting operational technology (OT) with enterprise information technology (IT) is a core requirement of Industry 4.0. For decades, engineers relied on complex, vendor-specific protocols like OPC DA, OPC UA, or proprietary software development kits (SDKs) to extract data from supervisory control and data acquisition (SCADA) systems. The RestSharp library provides a clean, intuitive interface
Is the WinCC REST API the final answer? Not exactly. Each protocol has a role:
"name": "Temperature_Sensor_1", "value": 23.5, "quality": "GOOD", "timestamp": "2026-05-22T21:00:00Z" Use code with caution. Writing a Tag Value
Generate automated PDF reports via serverless functions or cron jobs by pulling raw historical data straight from the SCADA layer. Step-by-Step Implementation: Reading Data with Python
The WinCC REST API is a self-hosted service available in and WinCC Unified that enables external applications to securely interact with SCADA Runtime and configuration data using standard HTTP methods and JSON. Core Capabilities By using HTTP request nodes, you can create
"tags": [ "name": "Temperature_Setpoint", "value": 50.0 ] Use code with caution. 3. Fetching Historical Alarms
To integrate the WinCC REST API into your workflow, follow these general steps: Configuration in WinCC Enable the REST service within the WinCC project settings.
: A valid WinCC/Connectivity Pack license is mandatory. Without it, the API will return a 402 Payment Required error.
API access is bound to the WinCC User Management system. You can create specific API users with restricted "Read Only" access to prevent external systems from accidentally changing critical machine setpoints.