GET /sites/$site/comments/$comment_ID/likes/

Get the likes for a comment.

Resource Information

Method GET
Requires authentication? No

Method Parameters

Parameter Type Description
$site (int|string) Site ID or domain
$comment_ID (int) The comment ID

Query Parameters

Parameter Type Description
http_envelope (bool)
Some environments (like in-browser JavaScript or Flash) block or divert responses with a non-200 HTTP status code. Setting this parameter will force the HTTP status code to always be 200. The JSON response is wrapped in an "envelope" containing the "real" HTTP status code and headers.
pretty (bool)
Output pretty JSON
meta (string) Optional. Loads data from the endpoints found in the 'meta' part of the response. Comma-separated list. Example: meta=site,likes
fields (string) Optional. Returns specified fields only. Comma-separated list. Example: fields=ID,title
callback (string) An optional JSONP callback function.

Response Parameters

Parameter Type Description
found (int) The total number of likes for this comment.
i_like (bool) If authenticated, this returns the current like status for the user on this comment.
likes (array) An array of users who liked this comment.
meta (object) Metadata

Resource Errors

These are the possible errors returned by this endpoint.

HTTP Code Error Identifier Error Message
403 unauthorized User cannot view post
403 unauthorized User cannot access this private blog.
403 unauthorized User cannot access this restricted blog
404 uknown_comment Unknown comment


curl ''
$options  = array (
  'http' => 
  array (
    'ignore_errors' => true,

$context  = stream_context_create( $options );
$response = file_get_contents(
$response = json_decode( $response );


    "found": 0,
    "i_like": false,
    "likes": [],
    "meta": {
        "links": {
            "help": "https:\/\/\/rest\/v1\/sites\/3584907\/comments\/174726\/likes\/\/help",
            "post": "https:\/\/\/rest\/v1\/sites\/3584907\/posts\/15934",
            "comment": "https:\/\/\/rest\/v1\/sites\/3584907\/comments\/174726",
            "site": "https:\/\/\/rest\/v1\/sites\/3584907"