analytics

Retrieve analytics totals

Changed on

Retrieve aggregated lifetime stats (views, reactions, comments) for articles.

Scope Control:

  • Specify article_id to query a single post's metrics.
  • Specify organization_id to retrieve metrics across all articles owned by the target organization.
get/api/analytics/totals

Request

  • Base URL
    https://dev.to
  • Auth
    • API key in header api-key
    • or HTTP bearer

Query parameters

article_idinteger

Optional ID to limit totals to a single article.

organization_idinteger

Optional ID to limit totals to an organization's articles.

Response

successful

Changes