Horbit Developers
Reactions & views

Reaction counts, and which ones this reader left

GET
/v1/public/blog/posts/{post}/reactions

Pass the same visitorId you react with, so mine lights the right buttons.

Authorization

x-api-key
headerx-api-key<token>

A tenant API key — secret (htk_…) or, where allowed, publishable (hpk_…).

Path Parameters

post*string

The post's slug (recommended) or id.

Query Parameters

visitorId?string

Your own stable, anonymous id for the reader (e.g. a uuid kept in localStorage). Used to remember their reactions. Falls back to ip + user agent.

Response Body

Counts per type, and the ones this reader left.

response?unknownapplication/json
curl -X GET 'https://api.horbit.ng/v1/public/blog/posts/five-lessons-open-data-hackathon/reactions'
{  "status": true,  "message": "Reactions retrieved successfully",  "data": {    "enabled": true,    "total": 87,    "counts": {      "like": 51,      "love": 20,      "clap": 12,      "insightful": 4    },    "types": [      {        "type": "like",        "label": "Like",        "emoji": "👍"      }    ],    "mine": [      "like"    ]  }}