# Issue with title and get latest topics API

**URL:** https://meta.discourse.org/t/issue-with-title-and-get-latest-topics-api/132135
**Category:** Development
**Tags:** rest-api
**Created:** [October 29, 2019, 11:31am UTC](https://meta.discourse.org/t/issue-with-title-and-get-latest-topics-api/132135 "2019-10-29T11:31:45Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![nakul\_krishnan1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nakul_krishnan1/32/159811_2.png) [@nakul\_krishnan1](https://meta.discourse.org/u/nakul_krishnan1)
#### Post date: [October 29, 2019, 11:31am UTC](https://meta.discourse.org/t/issue-with-title-and-get-latest-topics-api/132135/1 "2019-10-29T11:31:45Z")

</div>

Hi,

I am making use of the discourse forum and we have a customised UX for the application. We are making use of the exposed APIs to do the interaction with discourse. The UX doesn’t have the concept of a title followed by content. Basically it needs to post the entered content only. To make it work in discourse style if i am putting some of the initial characters as title and the original content as raw in body, then while getting the latest topics or whenever i get a list of topics i will get only the title, i won’t get the post number-1 which is my actual content. Is there any solution or customisation i can do to get rid of this issue?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [October 30, 2019, 1:49am UTC](https://meta.discourse.org/t/issue-with-title-and-get-latest-topics-api/132135/2 "2019-10-30T01:49:53Z")

</div>

> [@nakul\_krishnan1](#):
>
> while getting the latest topics or whenever i get a list of topics i will get only the title

This is what is returned by the Discourse topic lists. I don’t think the lack of a proper title is what is causing the problem. To get actual post content from a topic list, you need to make two API requests. First make an API request to get the topic list. Then from the topics that are returned, you need to get the topic ids and make a request to `/t/<topic_id>.json` for each topic. Substitute the id of the topic you want for `<topic_id>`. This second request will return the first 20 posts in the topic.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [July 14, 2023, 2:29am UTC](https://meta.discourse.org/t/issue-with-title-and-get-latest-topics-api/132135/3 "2023-07-14T02:29:16Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [August 13, 2023, 2:30am UTC](https://meta.discourse.org/t/issue-with-title-and-get-latest-topics-api/132135/4 "2023-08-13T02:30:05Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
