DEV Community Analytics API

The analytics API from DEV Community — 8 operation(s) for analytics.

GitHub OpenAPI

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

0 of 8 operations are conformant: apis.io called them with no credentials and the responses matched this contract; 8 more answered but could not be checked against a schema. Checked 2026-11-12. how this works · status file

GET /api/analytics/totals Get lifetime views, reactions and comments · Retrieve analytics totals observed #
Ask an LLM
“How many views and reactions has a post gotten over its lifetime?”
“Can I get lifetime totals for all articles of an organization?”
Tell an agent
Get lifetime totals for article {article_id}.
Show lifetime views, reactions and comments for organization {organization_id}.
GET /api/analytics/historical Get historical views and reactions over time · Retrieve historical analytics observed #
Ask an LLM
“How have a post's views trended over a date range?”
“Can I chart a blog's engagement history between two dates?”
Tell an agent
Get historical views and reactions for article {article_id} from {start} to {end}.
Chart engagement history for organization {organization_id} since {start}.
GET /api/analytics/past_day Get hourly views for the last 24 hours · Retrieve analytics for the past day observed #
Ask an LLM
“What are the hourly views for a post in the last day?”
“Can I get real-time engagement for a blog right now?”
Tell an agent
Get hourly views for article {article_id} over the past 24 hours.
Show live engagement for organization {organization_id}.
GET /api/analytics/referrers Get traffic sources for a post · Retrieve referrer analytics observed #
Ask an LLM
“Where is traffic to a post coming from?”
“Can I see which domains refer readers to a blog post?”
Tell an agent
Get referrer analytics for article {article_id}.
Show traffic sources for organization {organization_id} between {start} and {end}.
GET /api/analytics/top_contributors Get top contributors by engagement · Retrieve top contributors analytics observed #
Ask an LLM
“Who are the most engaged contributors to an organization?”
“Can I rank contributors by article engagement scores?”
Tell an agent
Get top contributors for organization {organization_id}.
Rank contributors of {organization_id} by engagement since {start}.
GET /api/analytics/follower_engagement Get follower growth and engagement over time · Retrieve follower engagement analytics observed #
Ask an LLM
“How many new followers have I gained over a date range?”
“Is there a way to see follower growth and engagement stats between two dates?”
Tell an agent
Show follower engagement stats from {start} to {end}.
Get new follower growth and engagement over time.
GET /api/analytics/dashboard Get a bundled analytics dashboard · Retrieve dashboard analytics bundle observed #
Ask an LLM
“Can I get totals, history and top posts in one bundle?”
“What does a full blog dashboard include?”
Tell an agent
Get the full analytics dashboard for organization {organization_id}.
Bundle totals, history and top posts for article {article_id} since {start}.
GET /api/analytics/heatmap Get a user activity heatmap · Retrieve heatmap activity observed #
Ask an LLM
“How busy are users on my site by weekday and hour?”
“Can I see commits, posts and reactions grouped in an activity heatmap?”
Tell an agent
Get the activity heatmap ending {end}.
Show user activity as a heatmap.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dev-to:dev-to-analytics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dev-to-analytics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Forem API V1 Analytics API
  version: 1.0.0
  description: Access Forem articles, users and other resources via API.
servers:
- url: https://dev.to
  description: Production server
security:
- api-key: []
- bearer_auth: []
tags:
- name: Analytics
paths:
  /api/analytics/totals:
    get:
      summary: Retrieve analytics totals
      tags:
      - Analytics
      description: '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.'
      parameters:
      - name: article_id
        in: query
        required: false
        description: Optional ID to limit totals to a single article.
        schema:
          type: integer
      - name: organization_id
        in: query
        required: false
        description: Optional ID to limit totals to an organization's articles.
        schema:
          type: integer
      responses:
        '200':
          description: successful
      operationId: getApiAnalyticsTotals
      x-operation-id-source: derived
  /api/analytics/historical:
    get:
      summary: Retrieve historical analytics
      tags:
      - Analytics
      description: 'Retrieve historical analytics data graphed over a time range.


        ### Time Range Formats:

        - **start**: Start date (e.g. `2024-01-01`). Required.

        - **end**: End date (e.g. `2024-01-31`). Defaults to current date if omitted.'
      parameters:
      - name: start
        in: query
        required: true
        description: Start date (YYYY-MM-DD format).
        schema:
          type: string
        example: '2024-01-01'
      - name: end
        in: query
        required: false
        description: End date (YYYY-MM-DD format).
        schema:
          type: string
        example: '2024-01-31'
      - name: article_id
        in: query
        required: false
        description: Limit stats to a single article.
        schema:
          type: integer
      - name: organization_id
        in: query
        required: false
        description: Limit stats to an organization's articles.
        schema:
          type: integer
      responses:
        '200':
          description: successful
      operationId: getApiAnalyticsHistorical
      x-operation-id-source: derived
  /api/analytics/past_day:
    get:
      summary: Retrieve analytics for the past day
      tags:
      - Analytics
      description: Retrieve real-time hourly analytics statistics for the last 24 hours. Used for live graphs.
      parameters:
      - name: article_id
        in: query
        required: false
        schema:
          type: integer
      - name: organization_id
        in: query
        required: false
        schema:
          type: integer
      responses:
        '200':
          description: successful
      operationId: getApiAnalyticsPastDay
      x-operation-id-source: derived
  /api/analytics/referrers:
    get:
      summary: Retrieve referrer analytics
      tags:
      - Analytics
      description: Retrieve traffic referring domains and URL source tracking metrics for articles.
      parameters:
      - name: start
        in: query
        required: false
        schema:
          type: string
        example: '2024-01-01'
      - name: end
        in: query
        required: false
        schema:
          type: string
        example: '2024-01-31'
      - name: article_id
        in: query
        required: false
        schema:
          type: integer
      - name: organization_id
        in: query
        required: false
        schema:
          type: integer
      responses:
        '200':
          description: successful
      operationId: getApiAnalyticsReferrers
      x-operation-id-source: derived
  /api/analytics/top_contributors:
    get:
      summary: Retrieve top contributors analytics
      tags:
      - Analytics
      description: Retrieve top organization contributors ordered by article engagement scores.
      parameters:
      - name: start
        in: query
        required: false
        schema:
          type: string
        example: '2024-01-01'
      - name: end
        in: query
        required: false
        schema:
          type: string
        example: '2024-01-31'
      - name: article_id
        in: query
        required: false
        schema:
          type: integer
      - name: organization_id
        in: query
        required: false
        schema:
          type: integer
      responses:
        '200':
          description: successful
      operationId: getApiAnalyticsTopContributors
      x-operation-id-source: derived
  /api/analytics/follower_engagement:
    get:
      summary: Retrieve follower engagement analytics
      tags:
      - Analytics
      description: Retrieve stats detailing new follower growth and engagement over time.
      parameters:
      - name: start
        in: query
        required: false
        schema:
          type: string
        example: '2024-01-01'
      - name: end
        in: query
        required: false
        schema:
          type: string
        example: '2024-01-31'
      responses:
        '200':
          description: successful
      operationId: getApiAnalyticsFollowerEngagement
      x-operation-id-source: derived
  /api/analytics/dashboard:
    get:
      summary: Retrieve dashboard analytics bundle
      tags:
      - Analytics
      description: Retrieve a complete bundled metrics package (totals, history, top posts) for rendering dashboard landing pages.
      parameters:
      - name: start
        in: query
        required: false
        schema:
          type: string
        example: '2024-01-01'
      - name: end
        in: query
        required: false
        schema:
          type: string
        example: '2024-01-31'
      - name: article_id
        in: query
        required: false
        schema:
          type: integer
      - name: organization_id
        in: query
        required: false
        schema:
          type: integer
      responses:
        '200':
          description: successful
      operationId: getApiAnalyticsDashboard
      x-operation-id-source: derived
  /api/analytics/heatmap:
    get:
      summary: Retrieve heatmap activity
      tags:
      - Analytics
      description: Retrieve user activity heatmap metrics (commits, posts, reactions) grouped by weekdays and hours.
      parameters:
      - name: end
        in: query
        required: false
        schema:
          type: string
        example: '2024-12-31'
      responses:
        '200':
          description: successful
      operationId: getApiAnalyticsHeatmap
      x-operation-id-source: derived
components:
  securitySchemes:
    api-key:
      type: apiKey
      name: api-key
      in: header
      description: "API Key authentication.\n\nAuthentication for some endpoints, like write operations on the\nArticles API require a DEV API key.\n\nAll authenticated endpoints are CORS disabled, the API key is intended for non-browser scripts.\n\n### Getting an API key\n\nTo obtain one, please follow these steps:\n\n  - visit https://dev.to/settings/extensions\n  - in the \"DEV API Keys\" section create a new key by adding a\n    description and clicking on \"Generate API Key\"\n\n    ![obtain a DEV API Key](https://user-images.githubusercontent.com/37842/172718105-bd93664e-76e0-477d-99c4-265dda0b06c5.png)\n\n  - You'll see the newly generated key in the same view\n    ![generated DEV API Key](https://user-images.githubusercontent.com/37842/172718151-e7fe26a0-9937-42e8-96c6-333acdab9e49.png)"
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Short-lived RS256 RFC 9068 access token issued by the configured delegation service and verified against its configured JWKS. The issuer authorizes the client and requested operation before minting the token; Forem validates the token and resolves its subject and owner to a local user. An invalid token returns 401; an unavailable trust dependency with no usable cached key returns 503.
x-provenance:
  method: harvested
  publisher: DEV Community
  source: https://raw.githubusercontent.com/forem/forem/main/swagger/v1/api_v1.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)