Posts

Clicks on a post's short links

Links in a post are shortened to https://www.sociahive.com/l/<code> when it is published (per the account's short link setting). Each link counts its clicks per day; this returns every short link of the post with its total and the last 30 days. A post with no short links returns an empty links array.

get/posts/{id}/link-clicks

Request

  • Base URL: https://www.sociahive.com/api/v1
  • URL: https://www.sociahive.com/api/v1/posts/{id}/link-clicks
  • Auth: one of:
    • API key in header X-API-Key
    • OAuth 2 (authorization code, authorization URL /api/oauth/authorize, token URL /api/oauth/token, scopes: posts:read)

Path parameters

idstring required

MongoDB ObjectId (24-character hex string)

Example:507f1f77bcf86cd799439011

Response

Link clicks

successtrue required

Example response

{
  "data": {
    "post_id": "507f1f77bcf86cd799439011",
    "links": [
      {
        "post_link_id": "507f1f77bcf86cd799439011",
        "code": "aB3dE5gH",
        "daily": [
          {
            "day": "2026-10-15"
          }
        ]
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.