News for hackers. Stuff that matters.
Re:ActivityPub by outside1234 on Monday November 07, 2022 @06:24PM (#33513980)
Totally ignorant question - is ActivityPub the preferred way to work against a Mastodon server if you want something like a Twitter firehose?

If not, what is the preferred manner of accomplishing this?

Re:ActivityPub by jeroenhd on Tuesday November 08, 2022 @01:58PM (#33522805)
I don't think there's a firehose alternative for Mastodon. There's the generic stream API (https://docs.joinmastodon.org/methods/timelines/streaming/) which should contain all public posts but that will only reflect the local timeline.

The general public API also has a "fetch posts since ID <x>" call but in practice you'll only be able to fetch 400 posts at most based on the docs I can find.

There are tools like this: https://github.com/cscape/mastodon-firehose which you can use to combine multiple stream endpoints. That tool probably comes closest if you provide it with enough servers to monitor.