Mastodon API
APIREST API for reading and posting statuses on Mastodon servers
- Fiyat
- Free, open source
- Erişim
- OAuth to post; public reads open
Hakkında
Mastodon's REST API reads timelines and statuses, posts statuses and manages notifications and conversations on any Mastodon server, which federates over ActivityPub. Public data is readable without a token unless the server disables public preview; posting needs an OAuth token.
Neler yapabilirsin
- Read the public timeline or a single public status without a token
- Post statuses from a bot or app with an OAuth token
- Run your own Mastodon server and build against its API
Başlarken
- Pick a Mastodon server or run your own
- Register an application on it to get an OAuth token
- Call the statuses and timelines endpoints
Örnek kod
# Public timeline (no token unless the server disables public preview)
curl "https://mastodon.social/api/v1/timelines/public?limit=5"
# Post a status (needs a token with the write:statuses scope)
curl -X POST https://mastodon.social/api/v1/statuses \
-H "Authorization: Bearer $MASTODON_TOKEN" \
-d "status=Hello from the API"Ayrıntılar
- Barındırma
- Hazır hizmet (bulut), Kendi sunucunda
- Kullanılabildiği yerler
- Tüm dünya
- MCP sunucusu
- Yok