Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,554,311
Community Members
 
Community Events
184
Community Groups

I went to get the number of likes on page. How can get using REST api

I went to get the number of likes on confluence page. How can get using REST api

2 answers

1 accepted

1 vote
Answer accepted
Aleksandr Zuevich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Oct 02, 2017

Hi, 

use GET /rest/likes/1.0/content/{id}/likes, where id is the numerous pageId.

Aleksandr Zuevich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Oct 02, 2017

Thank you it works..

Suppose I want to get just the total count of likes for page is there api for this. 

Sorry to necro this thread, but: how on earth did you find this api?  The solution you've given still works some five years later (2022) and yet it's neither documented by Atlassian nor incorporated into their supported REST API.

Also a bit necro...

Was googling for an answer on how to find likes and found this (thanks @Aleksandr Zuevich), but in answer to @Richard Cross the next method I use when I can't find answers or documentation is to open the web dev tools in my browser, select the network tab, reload the page, and then look to see if I can find the relevant request.

Then I hack it around, guessing at the URLs the developers of the api might have come up with, to try and work out what it can and can't do.

This won't always work - it depends how the website devs have built the pages.

I can also try more specific google searches once I have the URL (wrapping the URL in speech marks in google).

0 votes
Move Work Forward
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Feb 27, 2020

Hello everybody and @Aleksandr Zuevich ,

 

Any idea how to like a page on user's behalf?

 

When I use the API above with my API token it works, when I try to do it using the Connect App - no auth error :(

 

Thanks,

Leo

Aleksandr Zuevich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Feb 27, 2020

Hi Leo,

Have you read about Authorization for Connect apps?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events