Introducing Tickbuddy public links aka ping URLs
In this post we take a look at public links, which was the main feature of Tickbuddy 3.1.0 released on 17 November 2026.
Introduction
Public links are sometimes referred to as “ping URLs” or “web hooks”. The purpose of public links is to facilitate the integration of Tickbuddy with scripts and home automations. There are two main reasons why they would be used instead of the tickcli command line client.
First, not all tools have access to the tickcli executable. Scripts that run on the server or in a container can likely benefit from the full set of features in tickcli, but many home automation tools only have the ability to “ping” a URL.
The second reason is that tickcli authenticates against Nextcloud with an app password. As such, tickcli has access on your Nextcloud account, and whilst this is fine for your own scripts, you may be hesitant to provide this level of access to third-party tools.
Public links solve both of the above challenges. Each link provides granular access to a single track which is either read-only or write-only. The time period accessible to the link is also configurable. Each link is unique and “un-guessable”, and they work without an app password.
How to configure public links
Public links are part of track settings. Navigate to Tracks, select the relevant track so that the detailed sidebar opens and click the new Public links tab. This lists any existing public links and allows the user to manage them and to create new ones.

When creating a new public link, the most important decision is “Tick only” versus “View only”. Each link can only do one or the other. Also select the time period that the link is allowed to access. These two settings cannot be changed later.
Once a public link is created, use the copy icon to copy it to clipboard. Existing links can be revoked, and any track can have up to 99 public links against it.
How to use them
The use of ping URLs is very simple: just call them, via curl or from your automation tool. The default behaviour varies depending on whether the link is Tick only or View only, and for writing also based on the track type. Full documentation is available here.
Tick only
Simply calling the link will tick a Yes/No track or add 1 to a Counter, for the current day.
The following parameters are available:
value: passes a specific value to the tick; this is required for Number and Choice track typesdate: tick for a different date than today (yyyy-mm-dd)appendNote: include a note as part of the tick
Read only
Simply calling the link will return the track’s value for today, inside a JSON envelope.
Following parameters can be passed:
date: get the value for a specific date (yyyy-mm-dd)fromandto: get ticks for multiple daysincludeNotes=true: include the notes
Example: logging your music listening stats from last.fm
Last.fm is a service which lets you track the music you listen to, for example by connecting your Spotify account to it. I have been using it for many years, and it occurred to me that it would be nice to have the listening stats available in Tickbuddy.
Step 1: create a new Counter track in Tickbuddy and add a public link with “Tick only” and “+1 day” settings.
Step 2: login to last.fm and create an API token.
Step 3: on your server, create a file ~/.config/tickbuddy-lastfm.env as follows. chmod the file to 600 to keep it secure.
LASTFM_API_KEY=<your last.fm API key>
LASTFM_USER=<your last.fm username>
TICKBUDDY_PING_URL=<ping URL from step 1>
Step 4: create lastfm-to-tickbuddy.sh, which calls the last.fm API, retrieves the details, and calls the Tickbuddy ping URL using the parameters from the .env file. The reference implementation can be found in the demo directory of the Tickbuddy GitHub repository.
Step 5: by default the script reads the previous day’s listening and records the number of songs as the counter value and appends a note with the number of artists and the top artist by number of tracks. Test it by running it with --dry-run parameter.
Step 6: once everything is working, add the following line in your crontab:
5 0 * * * /path/to/your/script/lastfm-to-tickbuddy.sh
This will run the script at 00:05 every night, retrieve the previous day’s listening stats and write them to the track via its public link. Both the counter value as well as the note should be populated, as shown below.

The demo directory also includes a backfill script which can be used to populate the Tickbuddy track’s history. By default it gets the current year from the 1st January to 2 days ago; the dates can of course be edited to earlier years or a custom time period.