Topics

Get the latest topics

GET
https://discourse.example.com/latest.json

Parameters

Api-Keystringrequiredheader
Api-Usernamestringrequiredheader
orderstringquery

Enum: default, created, activity, views, posts, category, likes, op_likes, posters

ascendingstringquery

Defaults to desc, add ascending=true to sort asc

per_pageintegerquery

Maximum number of topics returned, between 1-100

Response

200OKobject

topic updated

Response fields application/json
usersArray<object>
Show child attributes
idinteger
usernamestring
namestring | null
avatar_templatestring
primary_groupsArray<any>
topic_listobject
Show child attributes
can_create_topicboolean
draftstring | null
draft_keystring
draft_sequenceinteger
per_pageinteger
topicsArray<object>
Show child attributes
idinteger
titlestring
fancy_titlestring
slugstring
posts_countinteger
reply_countinteger
highest_post_numberinteger
image_urlstring
created_atstring
last_posted_atstring
bumpedboolean
bumped_atstring
archetypestring
unseenboolean
last_read_post_numberinteger
unread_postsinteger
pinnedboolean
unpinnedstring | null
visibleboolean
closedboolean
archivedboolean
notification_levelinteger
bookmarkedboolean
likedboolean
viewsinteger
like_countinteger
has_summaryboolean
last_poster_usernamestring
category_idinteger
op_like_countinteger
pinned_globallyboolean
postersArray<object>
Show child attributes
extrasstring
descriptionstring
user_idinteger
primary_group_idinteger | null