Retrieve topic excerpt via API

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?

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

4 Likes