# How to get a previous version/revision of a post through the API

**URL:** <https://meta.discourse.org/t/how-to-get-a-previous-version-revision-of-a-post-through-the-api/58164>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [1. März 2017 um 12:53 UTC](https://meta.discourse.org/t/how-to-get-a-previous-version-revision-of-a-post-through-the-api/58164 "2017-03-01T12:53:08Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [1. März 2017 um 18:24 UTC](https://meta.discourse.org/t/how-to-get-a-previous-version-revision-of-a-post-through-the-api/58164/4 "2017-03-01T18:24:45Z")

</div>

`PostRevision` will not have exact post of the specific version. It will have the post with modifications like below

`<del>Hi, </del>This is example post <ins>revision</ins>.`  
~~Hi,~~ This is example post revision.

And it will start from number 2 only. Because revision 2 is the modifications of the post version 1 from version 2.

If you need the exact post instead then you may have to find an another way. Explore the code 👍.

---

_[View the full topic](https://meta.discourse.org/t/how-to-get-a-previous-version-revision-of-a-post-through-the-api/58164)._
