go-mastodon

github.com/mattn/go-mastodon Fediverse Open-source projectOpen source

Go projects can interact with the Mastodon API using go-mastodon, a client library for the programming language.

github.com/mattn/go-mastodon
go-mastodon homepage screenshot

About go-mastodon

go-mastodon is an open source client library for the Go programming language that lets Go projects interact with the Mastodon API. The GitHub repository's README describes three ways to authenticate users: user credentials, public applications, and applications using OAuth client credentials. Working examples for each method are in the repository's examples directory.

The README includes a status list of Mastodon API endpoints covering accounts, statuses, lists, filters, notifications, and search. The excerpt available for this entry is cut off partway through that list, so it does not confirm which endpoints are fully implemented. Public applications have access only to public data.

Key features

  • Go client library for calling the Mastodon API
  • Three authentication methods: user credentials, public application, and OAuth client credentials
  • Working code examples for each authentication method in the examples directory
  • Listed endpoint support for accounts, statuses, lists, filters, and notifications
  • Listed endpoint support for search, instance information, and push subscriptions
Best for: Developers writing Go programs that need to read or act on Mastodon accounts, statuses, or instances through the Mastodon API.
Good for
  • Open source, with the source code available in a public GitHub repository
  • Includes working examples for each supported authentication method
Watch out for
  • Public applications have limited access and can only reach public data
  • The endpoint status list in the available excerpt is incomplete, so full API coverage cannot be confirmed from it

go-mastodon at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

go-mastodon alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Fediverse

Well-known listings from the same topic.

All 113

go-mastodon FAQ

How do applications authenticate with the Mastodon API using this library?
The README describes three methods: user credentials, public applications, and applications using OAuth client credentials. Each has a working example in the examples directory.
What data can a public application access?
Public applications use application tokens and have limited access to the API, allowing access only to public data.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing