I need a Rest API service for getting a Like & Label list user details for the particular page in confluence.
Please let me know if it is possible or not.
If possible then how can we achieve.
Is there anything please share with me your ideas or API.
Thanks and regards
Thanks for your reply @Shannon Spaniol
I need a User details those who all are "LIKE" my confluence page. I don't need the user details who like comments and nested comments.
These details is help for me to display dashboard .
In Getting the confluence page space details API . I got the like details in HTML format. its not helpful for me.
In Labels also need user details its display only label details
FYI please refer screenshot
The REST API to obtain likes is from /rest/likes/1.0/content, so for example, if I want to get a list of likes on a specific page:
However, you would need to do several API calls, such as one to get the list of users, and compare it to the user ID of the vote.
The HTML format you are referring to is JSON and it's the default format that API calls return information. You would need adjust the format yourself in your code to make it human readable.
For example: JSON to HTML Table
For further details on using the REST API, have a look at our Confluence Cloud REST API Documentation.
@Shannon Spaniol Thanks for your valuable reply its working fine.
Question 1 :
Here the likes user details came using these API . but the same time i need a user details those who all are created the labels.
I searched the API for that its not available. Its get only labels count and labels details API's alone.
In my confluence page there are 1000 of users like the page and comments_like also. How can we set the pagination for like API service because all other API's are have pagination limit size.
I have a doubt either it can be show all the likes in single page itself.?
There's a User Macro that Stephen Deutsch posted on the below thread:
I am aware that you cannot use User Macros in Cloud, but perhaps you may be able to reverse-engineer it for your needs?
For pagination, could you try what's listed here?
Pagination: The Confluence REST API uses pagination: a method that returns a response with multiple objects can only return a limited number at one time. This limits the size of responses and conserves server resources.
Use the 'limit' and 'start' query parameters to specify pagination:
limitis the number of objects to return per page. This may be restricted by system limits.
startis the index of the first item returned in the page of results. The base index is 0.
For example, the following request will return ten content objects, starting from the fifth object.
Hello @Shannon Spaniol need your help for my query.
I need to take the particular date between of records which i was created in the confluence space.
I tried this API for getting the list of pages i was created in confluence. But the same time i need a particular date between basis.
Can you clarify what you mean by "need to take the particular date between of records"? I'm not sure what it is you want to get from the API.
Are you looking for a way to pull a list of pages created in Confluence (by a particular user) between a date range? I would recommend raising a new question for that, since it's not directly related to your original question.
Hi Community! 2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs