# Filtering embedded comments in a website

**URL:** <https://meta.discourse.org/t/filtering-embedded-comments-in-a-website/173920>\
**Category:** Support\
**Created:** [December 21, 2020, 1:45pm UTC](https://meta.discourse.org/t/filtering-embedded-comments-in-a-website/173920 "2020-12-21T13:45:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deyner\_López](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deyner_l%C3%B3pez/32/193016_2.png) [@Deyner\_López](https://meta.discourse.org/u/Deyner_L%C3%B3pez)\
**Post date:** [December 21, 2020, 1:45pm UTC](https://meta.discourse.org/t/filtering-embedded-comments-in-a-website/173920/1 "2020-12-21T13:45:33Z")

</div>

Hi!

I need to know if there is a way i can “filter” somehow the comments i am showing from my Discourse instance on the company website i work for.

The thing is that we need to show certain comments from certain topics in certain webpages we have…Something like:

show comment 5 from topic A,  
show comment 34 from topic A,  
show comment 23 from topic B and  
show comment 10 from topic C

…all of this in the same block (or widget) in a given webpage in our corporate website.

I know how to embed comments using javascript from Discourse on a given website but can’t find anything regarding filtering.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![JonathanShaw](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathanshaw/32/532672_2.png) [@JonathanShaw](https://meta.discourse.org/u/JonathanShaw)\
**Post date:** [December 21, 2020, 2:16pm UTC](https://meta.discourse.org/t/filtering-embedded-comments-in-a-website/173920/2 "2020-12-21T14:16:32Z")

</div>

I think you’re going to need to build a script of your own that calls the Discourse API and processes the results. A trivial task for a Discourse developer, or easy for any javascript developer.
