Skip to main content
GET
/
api
/
v1
/
analytics
Get latest analytics per post/platform
curl --request GET \
  --url https://mallary.ai/api/v1/analytics \
  --header 'Authorization: <api-key>'
{
  "status": "ok",
  "data": {
    "analytics": [
      {
        "captured_at": "2023-11-07T05:31:56Z",
        "impressions": 123,
        "reach": 123,
        "likes": 123,
        "comments": 123,
        "shares": 123,
        "clicks": 123,
        "views": 123,
        "engagementRate": 123,
        "post_id": 123,
        "platform": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Use Authorization: Bearer {api_key}

Query Parameters

post_id
integer

Filter analytics to a single post id. Must belong to the authenticated user.

Response

Analytics retrieved

status
enum<string>
Available options:
ok
data
object