Mastodon
communityDecentralized social network (fediverse). Open-source microblogging with federation via ActivityPub.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
GET
https://mastodon.social/api/v2/searchSearch accounts, statuses, and hashtags
Parameters
qsearch query (stringrequiredtypeaccounts|statuses|hashtags (stringoptionallimitresults (integeroptionalresolveresolve remote (booleanoptionalReturns
accounts[], statuses[], hashtags[] with name, url, history[]GET
https://mastodon.social/api/v1/timelines/publicGet public or home timeline
Parameters
limitresults (integeroptionallocallocal only (booleanoptionalmax_idpagination (stringoptionalReturns
statuses[] with id, content, account, created_at, reblogs_count, favourites_count, media_attachments[]POST
https://mastodon.social/api/v1/statusesCreate a new post (toot)
Parameters
statuspost content (stringrequiredvisibilitypublic|unlisted|private|direct (stringoptionalin_reply_to_idreply to status ID (stringoptionalReturns
id, content, account, created_at, url, visibility