Siemens WinCC (part of the SIMATIC HMI / TIA Portal ecosystem) exposes REST APIs in newer versions to enable web-based access to runtime data, alarms, tags, and historical values. This article summarizes capabilities, typical use cases, architecture, authentication, common endpoints, examples, and best practices for integrating with the WinCC REST API.
import requests
import json
base_url = "https://192.168.1.100/api/v1"
auth_response = requests.post(f"base_url/auth",
json="username": "apiuser", "password": "pass")
token = auth_response.json()["access_token"] wincc rest api
headers = "Authorization": f"Bearer token" WinCC REST API — Overview & Practical Guide
Introduction: The Shift from OPC to Web Services
For decades, Siemens WinCC (Windows Control Center) has been a cornerstone of SCADA (Supervisory Control and Data Acquisition) systems. Traditionally, accessing data from WinCC meant relying on OPC (OLE for Process Control), proprietary DLLs, or complex database queries. These methods, while reliable, often required specialized engineering knowledge, specific network configurations (DCOM), and heavy client installations. Traditionally, accessing data from WinCC meant relying on
The industrial landscape has changed. The push for Industry 4.0 and the Industrial Internet of Things (IIoT) demands that operational technology (OT) data be accessible to information technology (IT) applications—ERP systems, MES, cloud platforms, and custom dashboards—using standard, lightweight web protocols.
Enter the WinCC REST API. Starting primarily with WinCC Open Architecture (OA) and evolving into WinCC Professional (TIA Portal) , Siemens has embraced RESTful web services. This article provides an exhaustive deep dive into what the WinCC REST API is, why it matters, how to implement it, and real-world use cases.
Real-World Use Cases