# Is there a way that I can pull the title from latest topics from discourse to my app?

**URL:** https://meta.discourse.org/t/is-there-a-way-that-i-can-pull-the-title-from-latest-topics-from-discourse-to-my-app/56675
**Category:** Feature
**Created:** [January 31, 2017, 10:34pm UTC](https://meta.discourse.org/t/is-there-a-way-that-i-can-pull-the-title-from-latest-topics-from-discourse-to-my-app/56675 "2017-01-31T22:34:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![railsnoob](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@railsnoob](https://meta.discourse.org/u/railsnoob)
#### Post date: [January 31, 2017, 10:34pm UTC](https://meta.discourse.org/t/is-there-a-way-that-i-can-pull-the-title-from-latest-topics-from-discourse-to-my-app/56675/1 "2017-01-31T22:34:26Z")

</div>

i want to pass data, for example: titles of the latest questions from [forum.example.com](http://forum.example.com) to [example.com](http://example.com) is this possible?

i want to have a section on [example.com](http://example.com) that says:

Latest Questions and then a list of those questions links to those questions.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [January 31, 2017, 11:37pm UTC](https://meta.discourse.org/t/is-there-a-way-that-i-can-pull-the-title-from-latest-topics-from-discourse-to-my-app/56675/2 "2017-01-31T23:37:42Z")

</div>

Yes, just use ajax and call [forum.example.com/latest.json](http://forum.example.com/latest.json) and then iterate over the data and load it into your site.

In all actuallity, you don’t have to do it client side either, you simply just have to process that json endpoint.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [February 1, 2017, 2:51am UTC](https://meta.discourse.org/t/is-there-a-way-that-i-can-pull-the-title-from-latest-topics-from-discourse-to-my-app/56675/3 "2017-02-01T02:51:43Z")

</div>

Why not use the existing RSS feeds for this?

---

<div class="post-metadata">

### Author: ![railsnoob](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@railsnoob](https://meta.discourse.org/u/railsnoob)
#### Post date: [February 1, 2017, 4:22am UTC](https://meta.discourse.org/t/is-there-a-way-that-i-can-pull-the-title-from-latest-topics-from-discourse-to-my-app/56675/4 "2017-02-01T04:22:27Z")

</div>

is there a way to limit the amount of data from /latest.json ? I only want to see the 10 most recent topics?

I don’t have a clue how to utilize the rss feed. i will have to search for that a bit.

---

<div class="post-metadata">

### Author: ![railsnoob](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@railsnoob](https://meta.discourse.org/u/railsnoob)
#### Post date: [February 2, 2017, 1:19am UTC](https://meta.discourse.org/t/is-there-a-way-that-i-can-pull-the-title-from-latest-topics-from-discourse-to-my-app/56675/5 "2017-02-02T01:19:29Z")

</div>

> <https://github.com/discourse/discourse/blob/33d0a23d84a4d22f28b33a44df67dee1d14c35a0/lib/topic_query.rb>

I can’t get any of these two work for me, for example, I only want to see the 5 latest topics:

[https://meta.discourse.org/latest.json?limit=5](https://meta.discourse.org/latest.json?limit=5)

it does not work? thanks.
