# Incrustar comentarios de Discourse en otro sitio web mediante Javascript

**URL:** <https://meta.discourse.org/t/embed-discourse-comments-on-another-website-via-javascript/31963>\
**Category:** Integrations\
**Tags:** embedding, how-to\
**Created:** [10 Agosto, 2015 18:20 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:** 394

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [27 Abril, 2021 15:19 UTC](https://meta.discourse.org/t/embed-discourse-comments-on-another-website-via-javascript/31963/394 "2021-04-27T15:19:15Z")

</div>

Sí, tenemos un punto de enlace de API dedicado solo para eso. Aquí hay un ejemplo:

```plaintext
curl 'https://meta.discourse.org/embed/info?embed_url=https://blog.discourse.org/2021/04/discourse-team-grows-to-50' -H 'API-KEY: logapikeygoeshere' -H 'API-USERNAME: apiusernamehere' 

```

Y la respuesta es:

```json
{
  "topic_id": 187794,
  "post_id": 925017,
  "topic_slug": "discourse-team-grows-to-50-blog",
  "comment_count": 2
}

```

Buena pregunta, la he añadido al OP.

---

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