Mastodon Edit History API
Every saved version of a post, oldest first, so you can see what changed and when.
GET /v1/mastodon/posts/edits1 credit Failed requests are free
About this endpoint
GET /v1/mastodon/posts/edits?url=https://mastodon.social/@Gargron/1 returns the post's history from the server in the post URL. data.edits is ordered oldest first, and each revision carries createdAt, contentHtml, text, contentWarning, isSensitive, author, media, poll and emojis.
A post that was never edited still has one entry: the current version. A missing post returns lookupStatus: not_found with an empty list. This route does not page, and the edit history is not exposed for every post: servers that do not keep it answer unsupported.
Mastodon Edit History API FAQ
What does a never-edited post return?
One entry holding the current version. Compare edits.length across checks to detect an edit, and read createdAt on each entry for when it was saved.
How many credits does the history cost?
Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth.
Why is the edit list empty?
An empty list with lookupStatus not_found means the post could not be shown. unsupported means the server does not offer edit history. Neither is an error response.
Are media and polls included per revision?
Yes. Each revision carries its own media, poll, emojis and content warning, so a change to an attachment or poll option is visible in the right version.
Other Mastodon endpoints
- ProfileGET /v1/mastodon/profiles/{handle}
- Profile postsGET /v1/mastodon/profiles/{handle}/posts
- FollowersGET /v1/mastodon/profiles/{handle}/followers
- FollowingGET /v1/mastodon/profiles/{handle}/following
- CollectionsGET /v1/mastodon/profiles/{handle}/collections
- Profiles by idGET /v1/mastodon/profiles/batch
- PostGET /v1/mastodon/posts
- Post contextGET /v1/mastodon/posts/context