Edit rules
| Rule | Details |
|---|---|
| Time window | 30 minutes from original post |
| Edit limit | 5 edits maximum |
| ID behavior | Each edit creates a new post ID |
| Deletion | Deleting any version deletes the entire chain |
What can’t be edited
Some post types are not editable:- Promoted posts (ads)
- Posts with polls
- Replies to others (non-self-thread)
- Reposts (Quote posts can be edited)
- Community posts
- Collaborative posts
- Scheduled posts
Edit data in responses
Default fields
All post responses includeedit_history_tweet_ids by default:
- Single ID = never edited
- Multiple IDs = edit history (oldest first)
Edit controls
Requestedit_controls for edit status:
| Field | Description |
|---|---|
is_edit_eligible | Whether the post can be edited |
editable_until | Timestamp when edit window closes |
edits_remaining | Number of edits left (0-5) |
Getting edit history
Use theedit_history_tweet_ids expansion to get full post objects for all versions:
Which version is returned?
By default, the API returns the most recent version of an edited post. To get a specific version, request it by its post ID directly:Metrics for edited posts
Each version of an edited post has its own engagement metrics. The metrics are attributed to the version that was visible when the engagement occurred.Availability
Edit metadata is available:- For all posts created since September 29, 2022
- On all v2 endpoints that return posts
- Including search, timelines, stream, and lookup
Use cases
- Track changes
- Show edit indicator
- Get original content
Monitor posts for edits and log the differences: