Get Discourse Topics

Data Source: URL returning JSON
Data Source Endpoint URL: https://forum.example.com/latest.json

for closed forums: /latest.json?api_username=XXX&api_key=XXX
for categories/tags: use /c/categoryslug.json or another endpoint instead of /latest.json

{% for topic in data.topic_list.topics %}
  {{ topic.title }} - 
    {% for user in data.users %}
      {% if topic.posters[0].user_id == user.id %}
        {{ user.username }}
        {% if user.avatar_template starts with '/' %}
          {% set image_url = 'https://forum.example.com' ~ user.avatar_template  %}
        {% else  %}
         {%  set image_url  = user.avatar_template %}
        {% endif %}
        <img src="{{ image_url  | replace({'{size}': '40'})}}">
     {% endif %} 
    {% endfor %}
    <br>
  {% endfor %}