# RouterOS TCP API

**Canonical:** https://apis.io/apis/routeros/routeros-tcp-api/  
**Provider:** RouterOS — https://apis.io/providers/routeros/  
**Base URL:** tcp://{router-ip}:8728  
**Documentation:** https://help.mikrotik.com/docs/spaces/ROS/pages/47579160/API

RouterOS TCP API is one of 11 APIs that [RouterOS](https://apis.io/providers/routeros/) publishes on the [APIs.io](https://apis.io/) network. Tagged areas include Networking, Router Management, TCP API, and Binary Protocol. The published artifact set on APIs.io includes API documentation.

The RouterOS TCP API is the native binary protocol for RouterOS, running on TCP port 8728 (standard) and TCP port 8729 (SSL/TLS). It uses a sentence-based word protocol with variable-length encoding, supporting tagged concurrent commands, streaming changes via /listen, and cancellation. Used by most RouterOS client libraries (Python, PHP, Java, Go, etc.).

## Machine-readable artifacts (3)

- **Documentation** — https://help.mikrotik.com/docs/spaces/ROS/pages/47579160/API
- **Documentation** — https://wiki.mikrotik.com/wiki/Manual:API
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/routeros/refs/heads/main/apis.yml

## Other RouterOS APIs (10)

- [RouterOS Bridge API](https://apis.io/apis/routeros/routeros-bridge-api/)
- [RouterOS DHCP API](https://apis.io/apis/routeros/routeros-dhcp-api/)
- [RouterOS DNS API](https://apis.io/apis/routeros/routeros-dns-api/)
- [RouterOS Firewall API](https://apis.io/apis/routeros/routeros-firewall-api/)
- [RouterOS Interface API](https://apis.io/apis/routeros/routeros-interface-api/)
- [RouterOS IP Address API](https://apis.io/apis/routeros/routeros-ip-address-api/)
- [RouterOS Routing API](https://apis.io/apis/routeros/routeros-routing-api/)
- [RouterOS System API](https://apis.io/apis/routeros/routeros-system-api/)
- [RouterOS VPN API](https://apis.io/apis/routeros/routeros-vpn-api/)
- [RouterOS Wireless API](https://apis.io/apis/routeros/routeros-wireless-api/)

## Tags

Networking, Router Management, TCP API, Binary Protocol

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/routeros/routeros-tcp-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/routeros/.
