uptime-kuma-api-v2
A python wrapper for the Uptime Kuma WebSocket API
What it is and what it does
uptime-kuma-api-v2 is a Python wrapper around the Uptime Kuma Socket.IO API, enabling programmatic interaction with an Uptime Kuma monitoring server. It abstracts the WebSocket communication layer, allowing you to create monitors, manage notifications, retrieve status data, and automate monitoring tasks from Python code. The package depends on python-socketio for WebSocket connectivity and packaging for version handling.
Typical usage involves instantiating an API client with a server URL, authenticating with credentials, then calling methods to manage monitors and retrieve uptime data. The package supports context managers for automatic resource cleanup and is actively maintained with support for Python 3.7 through 3.11. It carries an MIT license, making it suitable for both open-source and commercial use.
Use it for:
- Automate creation and configuration of HTTP/TCP monitors on an Uptime Kuma instance from a deployment script.
- Build a custom dashboard or reporting tool that pulls uptime statistics from Uptime Kuma via the Python API.
- Integrate Uptime Kuma monitoring into a larger infrastructure-as-code or DevOps automation workflow.
- Programmatically manage alert thresholds and notification settings across multiple monitors.
- Sync monitor definitions from an external configuration source into Uptime Kuma using this client.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a Python client for the Uptime Kuma Socket.IO API, allowing programmatic control of monitors, notifications, and status checks on an Uptime Kuma server.
Yes. The package has low install friction, active maintenance, no known vulnerabilities, and a permissive MIT license. It directly solves the problem of programmatic Uptime Kuma control from Python. Install it if you need to automate Uptime Kuma operations or integrate monitoring into a larger application.
Install
uptime-kuma-api-v2 on PyPI
pip
pip install uptime-kuma-api-v2uv
uv add uptime-kuma-api-v2poetry
poetry add uptime-kuma-api-v2Installing uptime-kuma-api-v2
Before you install
Low friction installation with only two runtime dependencies (python-socketio and packaging). The package is actively maintained with a recent release and no known vulnerabilities.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install uptime-kuma-api-v2
from uptime_kuma_api import UptimeKumaApi, MonitorType
api = UptimeKumaApi('http://127.0.0.1:3001')
api.login('username', 'password')
result = api.add_monitor(type=MonitorType.HTTP, name="Google", url="https://google.com")
api.disconnect()
Requires Python 3.7 or later and a running Uptime Kuma server instance to connect to.
Verify before relying
- Exact list of supported Uptime Kuma versions beyond 2.0.0-beta.2 for version 1.0.3
- Full API method coverage and whether all Uptime Kuma features are exposed
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4,>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — python-socketio, packaging |
| Maintenance | actively maintained — 80 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 84,560/month — #13,988 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: uptime_kuma_api_v2-1.0.3-py3-none-any.whl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
uptime-kuma-apiA Python wrapper for the Uptime Kuma Socket.IO…
permissive · top 5,000 on PyPI
uptimeRetrieves the system uptime (time since last…
permissive · top 15,000 on PyPI
python-socketioPython implementation of Socket.IO realtime…
permissive · top 1,000 on PyPI
moonraker-apiFully async Python client for connecting to and…
copyleft · top 15,000 on PyPI
luigi-monitorSends summary Slack notifications when Luigi…
permissive · top 15,000 on PyPI
fastapi-socketioIntegrates Socket.IO real-time bidirectional…
permissive · top 15,000 on PyPI
cronitorA Python client library for Cronitor that…
permissive · top 15,000 on PyPI
greeneye_monitorParses and processes binary data packets from…
permissive · top 15,000 on PyPI
django-health-checkProvides pluggable health check endpoints for…
permissive · top 5,000 on PyPI
zabbix-utilsProvides Python bindings for Zabbix API,…
permissive · top 15,000 on PyPI