This is a simple broadcasting tower. You can broadcast messages and query
them.
The goal of this service is to facilitate free Internet communication.
This project is open-sourced and the code and instructions can be found on https://github.com/michal-wrzosek/broadcasting-tower.
Broadcast message
POST /api/v1/broadcast
You can send a json (Header: "Content-Type: application/json")
{"messageText": "Hello, World!"}
or a form data (Header: "Content-Type: application/x-www-form-urlencoded")
messageText=Hello, World!
Max byte length of "messageText" is 10000 bytes (assuming "utf-8"
encoding).
This broadcasting tower will store max 825648742 bytes of recent messages.
The successful response will have a status of 201 and the response body will contain a message entry, example:
1725703790081|Hello, World!A timestamp in milliseconds and a "|" separator in front of the message text.
GET /api/v1/messages
startsWith
(optional): Filter messages that start with
the specified text.timestampFrom
(optional): Filter messages that have a
timestamp greater than or equal to the specified timestamp. (in milliseconds)timestampTo
(optional): Filter messages that have a
timestamp less than or equal to the specified timestamp. (in milliseconds)order
(optional): Order messages by timestamp in
ascending or descending order. Default is descending. (newest first)limit
(optional): Limit the number of messages to
return. Default and the default is 1000./api/v1/messages?startsWith=message×tampFrom=1725703790070×tampTo=1725703790081&order=desc&limit=4
1725703790081|message4 1725703790080|message3 1725703790079|message2 1725703790078|message1Each message entry is separated by a newline character with a timestamp in milliseconds and a "|" separator in front of the message text.