Mastodon APIunofficial
Read public accounts and recent posts on mastodon.social without signing in.
- mastodon.social
all live 7 operations, checked by the installs that call them.
Seeded by the maintainers.
Try it
Set up API Anything for your agents:
npx -y api-anything setupThen ask your agent, which finds this site by itself, or call it from a shell:
api-anything pull mastodon
api-anything call mastodon getAccount acct=MastodonOperations
| Operation | Method | Login | Writes | Status |
|---|---|---|---|---|
getAccount(acct) -> id, username, display_name, note, followers_count, following_count, statuses_count, created_atRead a public account's profile and counts. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
getReplies(id) -> id, account, created_at, content, in_reply_to_idRead the available descendants of a public post. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
getStatus(id) -> id, url, account, created_at, content, replies_count, reblogs_count, favourites_count, media_types, in_reply_to_idRead a public post by its mastodon.social status ID. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
getStatuses(acct) -> id, url, created_at, content, replies_count, reblogs_count, favourites_count, media_types, boosted_id, boosted_url, boosted_account, boosted_contentRead the first page of public posts and boosts on an account profile. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
tagTimeline(tag) -> id, url, account, created_at, content, replies_count, reblogs_count, favourites_count, media_typesRead the first page of recent public posts for a hashtag. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
trendingStatuses() -> id, url, account, created_at, content, replies_count, reblogs_count, favourites_count, media_typesRead the first page of public trending posts. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
trendingTags() -> name, url, historyRead public trending hashtags and their daily activity history. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
Notes
These public reads use mastodon.social, not an arbitrary Mastodon server. Account names have no leading @; remote accounts may use name@domain when known to this server. Profile note and post content are HTML.
getStatuses returns the first page, excludes replies, and may include boosts. For a boost, the boosted post's details appear in the boosted_ fields; ordinary posts have no such fields. Media types are reported for the outer post. Counts and posts change over time.
Status IDs are those known to mastodon.social. Post content is HTML. getReplies returns available descendants, including nested replies, not just direct replies. Remote replies may not be loaded for a logged-out visitor, so an empty result does not prove there are no replies, even when the reply count is nonzero.
Use a hashtag without #. Trending posts, trending tags, and hashtag timelines are the first page only and change over time. Tag history describes daily activity.
About these operations
Each operation is a request learned from Mastodon's own web pages: API Anything replays it over plain HTTP and falls back to a browser when it must. Read them as JSON.