# Embed Discourse comments on another website via Javascript

**URL:** https://meta.discourse.org/t/embed-discourse-comments-on-another-website-via-javascript/31963
**Category:** Integrations
**Tags:** embedding, how-to
**Created:** [August 10, 2015, 6:20pm UTC](https://meta.discourse.org/t/embed-discourse-comments-on-another-website-via-javascript/31963 "2015-08-10T18:20:46Z")
**Posts on this page:** 1
**Showing post:** 417

<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 28, 2021, 5:01pm UTC](https://meta.discourse.org/t/embed-discourse-comments-on-another-website-via-javascript/31963/417 "2021-10-28T17:01:25Z")

</div>

> [@aaronpk](#):
>
> Since the embed controller [tries to look up an existing post by the `embed_url` database column](https://github.com/discourse/discourse/blob/08dce4f477b006f0bf830507aa0f75ac6c3ce895/app/models/topic_embed.rb#L226), I would like to see an API property to set that field when [creating a topic](https://docs.discourse.org/#operation/createTopicPostPM).

I believe this is possible now. The `embed_url` property can be set when you first create the topic. Our WordPress plugin does that here: [wp-discourse/lib/discourse-publish.php at main · discourse/wp-discourse · GitHub](https://github.com/discourse/wp-discourse/blob/main/lib/discourse-publish.php#L330). The `embed_url` property cannot be updated via the API after the topic has been created.

---

_[View the full topic](https://meta.discourse.org/t/embed-discourse-comments-on-another-website-via-javascript/31963)._
