> **For coding agents and LLMs:** This is one Social Fetch marketing page (markdown export). For API orientation start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for auth and crawl rules use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for every operation use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt).

## This page

- **On-site (HTML):** <https://www.socialfetch.dev/platforms/mastodon/posts-edits>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/platforms/mastodon/posts-edits.mdx>

---

# Mastodon Edit History API

Every saved version of a post, oldest first, so you can see what changed and when.

`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`.

## Request

- **Endpoint:** `GET /v1/mastodon/posts/edits`
- **Credits:** 1 credit
Failed requests are free
- **Input:** by URL
- **Full reference:** [docs](https://www.socialfetch.dev/docs/api/v1/mastodon/posts/edits/get)
- **Platform page:** [/platforms/mastodon](https://www.socialfetch.dev/platforms/mastodon)

## 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.
