# Retrieve topic excerpt via API

**URL:** https://meta.discourse.org/t/retrieve-topic-excerpt-via-api/189388
**Category:** Development
**Tags:** rest-api
**Created:** [May 5, 2021, 4:48pm UTC](https://meta.discourse.org/t/retrieve-topic-excerpt-via-api/189388 "2021-05-05T16:48:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hollyw](https://avatars.discourse-cdn.com/v4/letter/h/4da419/32.png) [@hollyw](https://meta.discourse.org/u/hollyw)
#### Post date: [May 5, 2021, 4:48pm UTC](https://meta.discourse.org/t/retrieve-topic-excerpt-via-api/189388/1 "2021-05-05T16:48:18Z")

</div>

We’re currently using the endpoint `tag/tag-name.json` to retrieve topic data based on a tag we provide. Some of the data we’re using is topic title, created\_at, and like\_count, but we’d also like to have the topic excerpt. I don’t see the excerpt included in the response payload, so what’s the best way to retrieve that via the API?

One option I see is the `t/topic-id.json` endpoint, though it looks like we’d have to manually parse the `cooked` field to get the excerpt from there.

Are there any other endpoints where we could get a topic’s excerpt? Or any settings that would allow us to include the excerpt in response payloads?

---

<div class="post-metadata">

### Author: ![hollyw](https://avatars.discourse-cdn.com/v4/letter/h/4da419/32.png) [@hollyw](https://meta.discourse.org/u/hollyw)
#### Post date: [May 6, 2021, 3:39pm UTC](https://meta.discourse.org/t/retrieve-topic-excerpt-via-api/189388/2 "2021-05-06T15:39:22Z")

</div>

Digging around some more, I found this as an option. I’m uncertain whether we’ll stick with it, but it works for now.

> [@Discourse as a simple personal blog engine](https://meta.discourse.org/t/discourse-as-a-simple-personal-blog-engine/138244/4):
>
> There is a hidden site setting for this grinning rails c SiteSetting.always\_include\_topic\_excerpts = true I believe it just add the data to the JS model, so you still need a client change to actually show it.
