Skip to main content

uptime-kuma-api-v2

A wrapper for the Uptime Kuma Socket.IO API

uptime-kuma-api-v2 is a Python wrapper for the Uptime Kuma Socket.IO API.

Based on Original Version by https://github.com/lucasheld/uptime-kuma-api

Python version 3.7+ is required.

Supported Uptime Kuma versions:

Uptime Kuma uptime-kuma-api-v2
2.0.0-beta.2 1.0.0 - 1.0.2

Installation

uptime-kuma-api-v2 is available on the Python Package Index (PyPI).

You can install it using pip:

pip install uptime-kuma-api-v2

Documentation

The API Reference is available on Read the Docs.

Example

Once you have installed the python package, you can use it to communicate with an Uptime Kuma instance.

To do so, import UptimeKumaApi from the library and specify the Uptime Kuma server url (e.g. 'http://127.0.0.1:3001'), username and password to initialize the connection.

>>> from uptime_kuma_api import UptimeKumaApi, MonitorType
>>> api = UptimeKumaApi('INSERT_URL')
>>> api.login('INSERT_USERNAME', 'INSERT_PASSWORD')

Now you can call one of the existing methods of the instance. For example create a new monitor:

>>> result = api.add_monitor(type=MonitorType.HTTP, name="Google", url="https://google.com")
>>> print(result)
{'msg': 'Added Successfully.', 'monitorId': 1}

At the end, the connection to the API must be disconnected so that the program does not block.

>>> api.disconnect()

With a context manager, the disconnect method is called automatically:

from uptime_kuma_api import UptimeKumaApi

with UptimeKumaApi('INSERT_URL') as api:
    api.login('INSERT_USERNAME', 'INSERT_PASSWORD')
    api.add_monitor(
        type=MonitorType.HTTP,
        name="Google",
        url="https://google.com"
    )

Release files for uptime-kuma-api-v2 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uptime-kuma-api-v2 1.0.3
File Size Uploaded
uptime_kuma_api_v2-1.0.3.tar.gz 52.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for uptime-kuma-api-v2 1.0.3
File Interpreter ABI Platform
uptime_kuma_api_v2-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 99.9 kB

Release files / uptime_kuma_api_v2-1.0.3.tar.gz

Download URL uptime_kuma_api_v2-1.0.3.tar.gz
Size 52.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a790fd355dc5728dd313427bc859dfc518b67bf8f7d65b64823d32a2bc8f0fee
BLAKE2b-256 checksum
How to use checksums
b4c4841088ebfdbeb24b2f9fcd1a08a13f0afab503c7872b44999e8248b28ece
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 26, 2026.

Transparency log

Release files / uptime_kuma_api_v2-1.0.3-py3-none-any.whl

Download URL uptime_kuma_api_v2-1.0.3-py3-none-any.whl
Size 47.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9b4c6def52e1562e3999b91b085e138306d8f7b141e63aa12a371c6effc3357
BLAKE2b-256 checksum
How to use checksums
a3142b6fe7993c36a78506c3d9b4870273295770dfed4142ad1a222bfb578573
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 26, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page