# Retrieving AI Summaries via API Call?

**URL:** https://meta.discourse.org/t/retrieving-ai-summaries-via-api-call/325562
**Category:** Support
**Tags:** ai
**Created:** [September 8, 2024, 2:26pm UTC](https://meta.discourse.org/t/retrieving-ai-summaries-via-api-call/325562 "2024-09-08T14:26:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [September 8, 2024, 2:26pm UTC](https://meta.discourse.org/t/retrieving-ai-summaries-via-api-call/325562/1 "2024-09-08T14:26:15Z")

</div>

Is there any way to retrieve those AI summaries via API call? We would like to display those AI summaries automatically in our wordpress blog on product pages.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 8, 2024, 2:32pm UTC](https://meta.discourse.org/t/retrieving-ai-summaries-via-api-call/325562/2 "2024-09-08T14:32:21Z")

</div>

Anything that displays in the ux you can get with the API. You can probably just add `.json` to the url, but see [Reverse engineer the Discourse API](https://meta.discourse.org/t/reverse-engineer-the-discourse-api/20576)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [September 9, 2024, 1:33am UTC](https://meta.discourse.org/t/retrieving-ai-summaries-via-api-call/325562/3 "2024-09-09T01:33:39Z")

</div>

Use the following endpoint:

`https://SITE/discourse-ai/summarization/t/TOPIC_ID.json`

Eg:

```plaintext
curl https://meta.discourse.org/discourse-ai/summarization/t/325562.json

```

Be sure not to include the `stream` parameter. The `stream` parameter will cause the message bus to deliver new summaries, which is a more complex protocol.

Also, be sure to use an API key for a user in a group that is able to generate summaries.

---

<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: [October 9, 2024, 1:34am UTC](https://meta.discourse.org/t/retrieving-ai-summaries-via-api-call/325562/4 "2024-10-09T01:34:37Z")

</div>

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