Discourse API

APIドキュメント

https://docs.discourse.org/

Get the latest topics

https://docs.discourse.org/#tag/Topics/paths/~1latest.json/get

https://{defaultHost}/latest.json

データフォーマット

{
  "users": [
    {
      "id": 0,
      "username": "string",
      "name": "string",
      "avatar_template": "string"
    }
  ],
  "primary_groups": [
    null
  ],
  "topic_list": {
    "can_create_topic": true,
    "draft": "string",
    "draft_key": "string",
    "draft_sequence": 0,
    "per_page": 0,
    "topics": [
      {
        "id": 0,
        "title": "string",
        "fancy_title": "string",
        "slug": "string",
        "posts_count": 0,
        "reply_count": 0,
        "highest_post_number": 0,
        "image_url": "string",
        "created_at": "string",
        "last_posted_at": "string",
        "bumped": true,
        "bumped_at": "string",
        "archetype": "string",
        "unseen": true,
        "last_read_post_number": 0,
        "unread_posts": 0,
        "pinned": true,
        "unpinned": "string",
        "visible": true,
        "closed": true,
        "archived": true,
        "notification_level": 0,
        "bookmarked": true,
        "liked": true,
        "views": 0,
        "like_count": 0,
        "has_summary": true,
        "last_poster_username": "string",
        "category_id": 0,
        "op_like_count": 0,
        "pinned_globally": true,
        "featured_link": "string",
        "posters": [
          {
            "extras": "string",
            "description": "string",
            "user_id": 0,
            "primary_group_id": "string"
          }
        ]
      }
    ]
  }
}