Custom tag query for homepage?

סיכום מבוסס בינה מלאכותית

rkaplan is seeking to display a filtered list of posts by tag on a custom homepage, without the additional UI elements typically shown in search results. They’re aware of using tags:XXX in search and reconstructing URLs, but want to isolate just the post list. awesomerobot explains that Discourse’s custom homepage uses AJAX to fetch tag data via endpoints like tags/theme.json, and suggests using the search API (e.g., search.json?q=...&expanded=true) to retrieve raw topic data. They also point to a guide on reverse-engineering Discourse API responses for deeper inspection awesomerobot. The key takeaway is that API endpoints can be leveraged to extract clean topic lists without UI clutter, without necessarily building a full web app.

I was reading this blog article

and I noticed a reference to “tag queries” on a custom home page:

I know that I can search by tag with the format tags:XXX in the search bar. I also know that I can re-create the search via the resulting URL. But what I do not understand is how to retrieve for a home page or static page just the list of posts corresponding to the search and not all the other stuff in a search response.

Do I need to use the API and build a web app to get a custom query such as this - or is there some other trick?

The custom homepage you’re referencing pulls in the topics from a tag using AJAX and an endpoint like this:

https://meta.discourse.org/tags/theme.json

If you want to get the contents of a search (can you clarify what you mean by “all the other stuff”?):

https://meta.discourse.org/search.json?q=reverse%20engineer&expanded=true

For more details about finding the data that populates a specific page, you can look here: