Likes

GET
/sites/site-id/likes

Get likes for articles on this site.

Query parameters

fields Return only requested fields in the response (ex. ?fields=score)
GET https://api.flockler.com/v1/sites/609/likes
{
  "meta": {
    "total_count": null,
    "count": 14
  },
  "likes": [
    {
      "article_id": 878403,
      "downvotes": 0,
      "score": 3,
      "upvotes": 3
    },
    {
      "article_id": 878404,
      "downvotes": 0,
      "score": 3,
      "upvotes": 3
    },
    {
      "article_id": 878405,
      "downvotes": 0,
      "score": 3,
      "upvotes": 3
    },
    {
      "article_id": 878395,
      "downvotes": 0,
      "score": 2,
      "upvotes": 2
    },
    {
      "article_id": 878394,
      "downvotes": 0,
      "score": 2,
      "upvotes": 2
    },
    {
      "article_id": 878387,
      "downvotes": 0,
      "score": 4,
      "upvotes": 4
    },
    {
      "article_id": 878401,
      "downvotes": 0,
      "score": 1,
      "upvotes": 1
    },
    {
      "article_id": 878396,
      "downvotes": 0,
      "score": 1,
      "upvotes": 1
    },
    {
      "article_id": 878391,
      "downvotes": 0,
      "score": 1,
      "upvotes": 1
    },
    {
      "article_id": 878392,
      "downvotes": 0,
      "score": 1,
      "upvotes": 1
    },
    {
      "article_id": 878390,
      "downvotes": 0,
      "score": 1,
      "upvotes": 1
    },
    {
      "article_id": 878386,
      "downvotes": 0,
      "score": 1,
      "upvotes": 1
    },
    {
      "article_id": 878388,
      "downvotes": 0,
      "score": 1,
      "upvotes": 1
    },
    {
      "article_id": 878397,
      "downvotes": 0,
      "score": 1,
      "upvotes": 1
    }
  ]
}
GET https://api.flockler.com/v1/sites/609/likes?fields=score
{
  "meta": {
    "total_count": null,
    "count": 14
  },
  "likes": [
    {
      "score": 3
    },
    {
      "score": 3
    },
    {
      "score": 3
    },
    {
      "score": 2
    },
    {
      "score": 2
    },
    {
      "score": 4
    },
    {
      "score": 1
    },
    {
      "score": 1
    },
    {
      "score": 1
    },
    {
      "score": 1
    },
    {
      "score": 1
    },
    {
      "score": 1
    },
    {
      "score": 1
    },
    {
      "score": 1
    }
  ]
}