Back to services

Apprise

Apprise allows you to send a notification to almost all of the most popular notification services available to us today such as: Telegram, Discord, Slack, Amazon SNS, Gotify, etc.

View alternatives to Apprise
Suggest edit
Open source
Self-hostable
MIT
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

The name Apprise comes from the English word "apprise," meaning "to inform or notify." Its goal is to be "one notification library for every platform": using a unified, intuitive syntax, it sends notifications to most of today's major notification services, such as Telegram, Discord, Slack, Amazon SNS, Gotify, and more. The project is hosted on GitHub under the BSD-2-Clause license and has about 17,000 stars on GitHub. The official documentation is at appriseit.com.

Key Features

  • Broad service support: The official README lists the supported services in the following categories:
    • Collaboration and push services: Discord, Slack, Telegram, Matrix, Mattermost, Rocket.Chat, Microsoft Teams (Power Automate / Workflows), Google Chat, ntfy, Gotify, Pushover, PushBullet, Bark, Home Assistant, Nextcloud, Mastodon, BlueSky, MQTT, IRC, XMPP, Signal, WhatsApp, and more. It also supports services commonly used in China, such as Feishu, DingTalk, WeCom (Enterprise WeChat and its bots), ServerChan, PushPlus, PushDeer, WxPusher, and QQ Push.
    • SMS services: AWS SNS, ClickSend, Plivo, Sinch, MessageBird, SMPP, and many other SMS gateways.
    • Email services: SMTP as well as email delivery services such as AWS SES, Mailgun, SendGrid, Postmark, Resend, and Office 365.
    • Desktop and custom notifications, plus media and system targets such as Syslog, Emby, Jellyfin, and Kodi.
  • Unified URL syntax: Each service is described by a single URL, for example tgram://bottoken/ChatID, discord://webhook_id/webhook_token, or ntfy://topic/. An online Apprise URL Builder is also available to help you generate these URLs.
  • Images and attachments: You can send images and files to services that support attachments.
  • Asynchronous sending: All messages are sent asynchronously, so responses are fast and the library itself stays lightweight.
  • Configuration files: Both the command line and the API can load multiple notification targets from configuration files.
  • Custom notifications and hooks: You can load notification plugins or hooks that you write yourself.
  • Environment variables and persistent storage: The command line can be configured through environment variables, and a Persistent Storage mechanism is also provided.

Target Users and Use Cases

  • Developers: When your application needs notifications, you don't have to study each platform's API one by one, or add support separately for every new service that appears later. Adding the single Apprise library gives you access to almost every notification service.
  • System administrators and DevOps: Use the bundled apprise command-line tool directly to send alerts from scripts, scheduled jobs, or monitoring workflows, with no need to find another tool.
  • Self-hosting and homelab users: Forward events from servers, downloads, backups, smart home systems, and more to your favorite chat tools or push apps in one place.

Core Strengths

  • One syntax connects to hundreds of services, so switching or adding notification channels only requires changing a URL.
  • You can send to multiple targets at the same time, enabling multi-channel broadcasting.
  • It is lightweight and asynchronous, and convenient both as a Python library and as a command-line tool.
  • The project is active, and the list of supported services keeps growing.
  • The permissive BSD-2-Clause license makes it suitable for integration into all kinds of projects, including commercial ones.

Installation and Usage

Install from PyPI:

pip install apprise

Command-line example:

apprise -t "标题" -b "消息内容" \
  "tgram://bottoken/ChatID" \
  "discord://webhook_id/webhook_token"

Python example:

import apprise

apobj = apprise.Apprise()
apobj.add('tgram://bottoken/ChatID')
apobj.notify(title='标题', body='消息内容')

If you need to call it over an HTTP interface, you can use it together with Apprise API. Apprise itself also supports forwarding notifications to an Apprise API server using apprise://.

Technical Requirements

  • A Python 3 environment is required.
  • Some notification services need additional dependencies. The repository provides all-plugin-requirements.txt, and there is a separate win-requirements.txt for Windows.
  • You need to prepare the credentials required by each target service yourself, such as tokens, API keys, and webhooks.

Notable Characteristics

  • SMS services generally have no title field, so Apprise merges the title and body into a single message before sending.
  • Each service's default port, URL format, and optional parameters are documented item by item in the official documentation.