Skip to content

Analytics API โ€‹

Post Analytics โ€‹

prolog
GET API_BASE/lists/:list_id/posts/:post_id/analytics?start_date=:start_date&end_date=:end_date&granularity=:granularity

Authorization Required โ€‹

OAuthAPIKey
YesYes

Parameters โ€‹

ParameterTypeDescription
list_iduint64The numeric ID of the list.
post_iduint64The numeric ID of the post.

Query Parameters โ€‹

ParameterTypeDescription
start_datestringDate in YYYY-MM-DD (default: last 30 days).
end_datestringDate in YYYY-MM-DD (default: today).
granularitystringday (default).

Response โ€‹

json
{
  "data": {
    "summary": { ... },
    "daily": [ ... ],
    "sources_summary": [ ... ]
  },
  "ts": 1723923923
}

List Analytics (Posts) โ€‹

prolog
GET API_BASE/lists/:list_id/analytics/posts?start_date=:start_date&end_date=:end_date

Authorization Required โ€‹

OAuthAPIKey
YesYes

Parameters โ€‹

ParameterTypeDescription
list_iduint64The numeric ID of the list.

Response โ€‹

json
{
  "data": {
    "items": [ ... ],
    "total": 0,
    "daily": [ ... ]
  },
  "ts": 1723923923
}

List Analytics (Sources) โ€‹

prolog
GET API_BASE/lists/:list_id/analytics/sources?start_date=:start_date&end_date=:end_date

Authorization Required โ€‹

OAuthAPIKey
YesYes

Parameters โ€‹

ParameterTypeDescription
list_iduint64The numeric ID of the list.

Response โ€‹

json
{
  "data": {
    "sources": [
      {
        "source": "direct",
        "views": 0,
        "percentage": 0
      }
    ],
    "total_views": 0
  },
  "ts": 1723923923
}