LikedBy
is a multi valued lookup column. You have to $expand
it in the query. Just make GET
request to the following end-point, in response you will get LikesCount and LikedBy
/_api/web/lists/GetByTitle('List Name')/Items?$select=LikesCount,LikedBy/Title&$expand=LikedBy
Above query will give you the Title of LikedBy
user as I am using LikedBy/Title
in $select
like following
{
"d": {
"results": [
{
"__metadata": {
"id": "f2592d31-7960-42c1-a51b-b0cbf6238483",
"uri": "https://xxx.sharepoint.com/_api/Web/Lists(guid'ba8a6814-61cd-4dc6-92f2-ae088316744a')/Items(1)",
"etag": "\"2\"",
"type": "SP.Data.Short_x0020_DescriptionListItem"
},
"LikedBy": {
"results": [
{
"__metadata": {
"id": "e81c95c7-b0f0-44ff-aa46-71d6a7782bc8",
"type": "SP.Data.UserInfoItem"
},
"Title": "Mohammad Mazumder"
}
]
},
"LikesCount": 1
}
]
}
}
If you need more fields of LikedBy
user, then mention them in the $select
like following.
$select=LikesCount,LikedBy/Id,LikedBy/Title&$expand=LikedBy
If you have time, have a look on this article.