# What would be the best way to display the last topics excerpts and categories via the API?

**URL:** <https://meta.discourse.org/t/what-would-be-the-best-way-to-display-the-last-topics-excerpts-and-categories-via-the-api/77061>\
**Category:** Support\
**Created:** [2018 年1 月 1 日 16:30 UTC](https://meta.discourse.org/t/what-would-be-the-best-way-to-display-the-last-topics-excerpts-and-categories-via-the-api/77061 "2018-01-01T16:30:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
发布日期： [2018 年1 月 1 日 18:08 UTC](https://meta.discourse.org/t/what-would-be-the-best-way-to-display-the-last-topics-excerpts-and-categories-via-the-api/77061/2 "2018-01-01T18:08:31Z")

</div>

> [@hanks](#):
>
> I need another request for the categories, but what about the excerpts? Should I do one additional API request for every topic in order to make an excerpt?

You can save the Discourse category data on WordPress so that you don’t have to keep requesting it. The same idea works for excerpts. Once you have the excerpt for a topic on WordPress, you shouldn’t need to fetch it again from Discourse.

---

_[View the full topic](https://meta.discourse.org/t/what-would-be-the-best-way-to-display-the-last-topics-excerpts-and-categories-via-the-api/77061)._
