# Embed Discourse using external\_id

**URL:** https://meta.discourse.org/t/embed-discourse-using-external-id/266171
**Category:** Development
**Tags:** embedding
**Created:** [May 25, 2023, 9:23am UTC](https://meta.discourse.org/t/embed-discourse-using-external-id/266171 "2023-05-25T09:23:12Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Aaron\_B](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aaron_b/32/327391_2.png) [@Aaron\_B](https://meta.discourse.org/u/Aaron_B)
#### Post date: [October 3, 2023, 6:21am UTC](https://meta.discourse.org/t/embed-discourse-using-external-id/266171/4 "2023-10-03T06:21:18Z")

</div>

I split it out to it’s own thread which hopefully makes more sense:

> [@Expose external\_id in embed.js](https://meta.discourse.org/t/expose-external-id-in-embed-js/280834):
>
> I am needing to load posts on an external site where I don’t know the post\_id but I DO know the external\_id that I configured when I created the topic. Can someone please expose the external\_id variable in the embed.js logic or teach me what I’m missing? Example support needed: window.DiscourseEmbed = { discourseUrl: ‘[https://forums.blah.org/](https://forums.blah.org/)’, external\_id: ‘2023-4’ };

---

_[View the full topic](https://meta.discourse.org/t/embed-discourse-using-external-id/266171)._
