# 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:** 4

<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, 6:34pm UTC](https://meta.discourse.org/t/api-to-fetch-topic-by-page/63342/4 "2017-05-25T18:34:47Z")

</div>

I’m using a topic to hold a change-log which is all the commits as they come in each day from our GitHub project. I want to find the post that contains a particular commit hash. So, I’d want to search all the posts for that topic in reverse date order to find the post.

I thought it might be too expensive to search on the hash itself and extract that post that is in the topic.

I can work with the `post_stream` I guess.

---

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