Analytics

Post Analytics

GEThttps://tryferra.co/api/public/v1/analytics/post/{postId}

Get analytics data for a specific published post. Returns metrics like likes, comments, shares, impressions, etc. depending on the platform.

Authorization

Send your API key in the Authorization header. It is under Settings → Developers → Public API in Ferra.

Parameters

postIdstringrequired

path · Post ID

datestringrequired

query · Number of days to look back for analytics data (e.g. 7, 30, 90)

Request

curl -X GET 'https://tryferra.co/api/public/v1/analytics/post/{postId}' \
  -H 'Authorization: your-api-key'

Responses

200Analytics data for the post
[
  {
    "label": "Likes",
    "data": [
      {
        "total": "150",
        "date": "2025-01-01"
      },
      {
        "total": "175",
        "date": "2025-01-02"
      }
    ],
    "percentageChange": 16.7
  },
  {
    "label": "Comments",
    "data": [
      {
        "total": "25",
        "date": "2025-01-01"
      },
      {
        "total": "30",
        "date": "2025-01-02"
      }
    ],
    "percentageChange": 20
  }
]

Parts of these docs are adapted from open-source documentation under the MIT License (© 2023 Mintlify).