Skip to content

The Avatar in the Newest Comments #1355

Answered by umputun
pai233 asked this question in Q&A
Discussion options

You must be logged in to vote

see the official API docs https://remark42.com/docs/contributing/api/

the method you are looking for is GET /api/v1/last/{max}?site=site-id&since=ts-msec - get up to {max} last comments, since (epoch time, milliseconds) is optional`

for example: https://demo.remark42.com/api/v1/last/10?site=remark will give you json with the last 10 comments and it includes all the info

[
  {
    "id": "c21a4872-978f-4681-8757-cea61ab2a1b7",
    "pid": "",
    "text": "<p>g</p>\n",
    "orig": "g",
    "user": {
      "name": "y545yh",
      "id": "anonymous_2568b534a8805e3a9c6ee9c657c29b0aa6200375",
      "picture": "https://demo.remark42.com/api/v1/avatar/6fa4a372c50c66a01aec36dc0835d70959564cd5.image",…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pai233
Comment options

Answer selected by umputun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1354 on May 12, 2022 16:43.