Stack Overflow Post Timeline API
One chronological record of answers, comments, edits, reviews, votes and locks on a question or answer.
GET /v1/stack-overflow/posts/{postId}/timeline1 credit Failed requests are free
About this endpoint
GET /v1/stack-overflow/posts/{postId}/timeline returns what happened to a post. Each event has id, type, at, action, actor with id, name and url, license, detail, linkedPostId and isDeleted. type is answer, comment, history (an edit, a close or a lock), review, vote (an accept or a bounty) or other.
Review events can share an id, so id is not unique within a response; use type, at, action and actor to tell those events apart. The result also carries the question title and the post's current license. Use types to keep only some kinds, for example types=history,vote. A comment event can have no user id; the actor is then the name and the profile link. A missing post is not_found.
Stack Overflow Post Timeline API FAQ
What is in a timeline that a revision list does not have?
The timeline also records answers, comments, reviews, accepts and bounties, not only edits. Each event carries its type, actor and a detail line.
How many credits does a timeline page 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. Each paginated page is a separate billed request.
Can I filter the events?
Yes. types takes a comma-separated subset of answer, comment, history, review, vote and other. The default is every kind.
Why does a comment event have no actor id?
Some comment rows have no user id. The actor then has the name and the profile URL and id is null.
Other Stack Overflow endpoints
- QuestionGET /v1/stack-overflow/questions/{questionId}
- Questions by idGET /v1/stack-overflow/questions/batch
- QuestionsGET /v1/stack-overflow/questions
- SearchGET /v1/stack-overflow/questions/search
- Similar titlesGET /v1/stack-overflow/questions/title-search
- AnswersGET /v1/stack-overflow/questions/{questionId}/answers
- CommentsGET /v1/stack-overflow/posts/{postId}/comments
- Comments by postGET /v1/stack-overflow/posts/comments