# Api to fetch topic by page

**URL:** <https://meta.discourse.org/t/api-to-fetch-topic-by-page/63342>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [May 25, 2017, 8:51am UTC](https://meta.discourse.org/t/api-to-fetch-topic-by-page/63342 "2017-05-25T08:51:41Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![gchiu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gchiu/32/95856_2.png) [@gchiu](https://meta.discourse.org/u/gchiu)\
**Post date:** [May 25, 2017, 7:49pm UTC](https://meta.discourse.org/t/api-to-fetch-topic-by-page/63342/5 "2017-05-25T19:49:55Z")

</div>

And I’ve cooked up something that works for me. It grabs the post\_stream and then searches on the last 10 posts for the topic looking for my commit hash.

[https://github.com/r3n/renclib/blob/master/scripts/changes.reb](https://github.com/r3n/renclib/blob/master/scripts/changes.reb)

---

_[View the full topic](https://meta.discourse.org/t/api-to-fetch-topic-by-page/63342)._
