View Full Version : "ADD LIKES" via API Calls

12-29-2014, 12:06 PM
Hi All,

We are trying to replicate "LIKES COUNT" via an API Call to our site articles. Seems like the following CALL does not work for "ADD LIKES" as expected (for articles that are NEVER LIKED before via UI, we get EDITED = 0 in API response):


The above API Call works under the following scenario :

If we LIKE the article( #941) via UI first, and then RUN the above API Call, we get edited as "1" in our API response and the LIKE Count is reflected as expected for that article.

As the API ACTION Name suggests, it works fine for EDIT / UPDATE (meaning the API Call works for ALREADY LIKED (via UI) Articles)... But we need a similar API for ADD Likes on an article.

Any help around how we can replicate LIKES via API Call for Articles which have NEVER been LIKED before ? How can we achieve the same effect via an API Call ?

The following URL shows that "ULTRA Plan" users can "Changing number of likes and dislikes by admin".
Does this also mean we can "ADD LIKES" via API Calls as well after we are "ULTRA Plan" Members ?

So any help would be greatly appreciated.

12-29-2014, 05:35 PM
"Edit" method works the same as the edit feature on Statistics page: allows to change likes of the liked/disliked items only.

12-30-2014, 04:52 AM

Yes , I understand what you are trying to say, but this is not something that we are expecting.

We are looking for a similar ACTION named "ADD" if any, which would ENABLE us to replicate the LIKE COUNTS via the API Call. Just wanted to share my observation, that way things are clear to you :

Description :
When user "LIKES" an article via UI, it works as expected. The reason being, an ENTRY is made in the API response CALL for the following URL :
As a result, API response for EDIT has EDITED = 1


Now, if we call the EDIT API, for an article which has NEVER been LIKED (Like Count = 0), it does NOT work the API route, as NO ENTRY for this is being made in the API response for the following URL :

How can we achieve the UI behavior via our API Call ? Any extra call needs to be made, that way an entry is made to the STATS API ?

Any pointers around how we can achieve this. Please let me know , if it is possible?

12-30-2014, 05:43 AM
How can we achieve the UI behavior via our API Call ? Any extra call needs to be made, that way an entry is made to the STATS API ?
API does not provide a method for adding new items for now. It will be added in future releases.