Narrareach Stats API

Read stored Stats outcomes, engagement peaks, and audience snapshots.

GitHub OpenAPI

Operations 2

GET /api/v1/articles/stats List article stats and clicked links #
GET /api/v1/stats/outcomes Get Stats insights #

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/narrareach-com:narrareach-com-stats-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

narrareach-com-stats-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Narrareach Automation Stats API
  version: 1.1.0
  description: Scoped REST API for authenticated Narrareach agents and automations. Create tokens in Narrareach settings and grant only the permissions required by the client. 1.1.0 adds Note versions (/api/v1/notes/{id}/versions) and hashtag sets (/api/v1/notes/hashtag-sets), the article and Note request fields the API already accepted, the refresh parameter on LinkedIn Article destinations, Stats engagement-peak basis and benchmark fields, the outbound webhooks payloads, and a list of error codes (components.x-error-codes). 429 is now declared only on the operations that can return it.
  contact:
    name: Narrareach Support
    url: https://www.narrareach.com/contact
servers:
- url: https://www.narrareach.com
  description: Production
tags:
- name: Stats
  description: Read stored Stats outcomes, engagement peaks, and audience snapshots.
paths:
  /api/v1/articles/stats:
    get:
      tags:
      - Stats
      summary: List article stats and clicked links
      description: 'Returns saved stats for published articles, newest first: views, opens, open and click rates, reactions, comments, shares, new subscribers and the links readers clicked (Substack only), with each link''s clicks and share of openers. Pass publicationId for one article. Reads what Narrareach last saved (statsAsOf); does not fetch from the platforms. Requires notes:read.'
      operationId: listArticleStats
      security:
      - scopedBearerToken:
        - notes:read
      parameters:
      - name: publicationId
        in: query
        description: One published article, from a previous response.
        schema:
          type: string
          maxLength: 191
      - name: platform
        in: query
        description: Only articles published to this platform.
        schema:
          type: string
          enum:
          - SUBSTACK
          - MEDIUM
          - LINKEDIN
          - X
          - WORDPRESS
          - GHOST
      - name: limit
        in: query
        description: Articles per page (1 to 50). Defaults to 20.
        schema:
          type: integer
          minimum: 1
          maximum: 50
          default: 20
      - name: cursor
        in: query
        description: nextCursor from the previous page.
        schema:
          type: string
          maxLength: 191
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArticleStatsList'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '500':
          $ref: '#/components/responses/InternalError'
  /api/v1/stats/outcomes:
    get:
      tags:
      - Stats
      summary: Get Stats insights
      description: Returns stored Stats outcomes for a period, including reach, engagement, conversion, publishing rhythm, the honest engagement peak, the other-writers timing benchmark, and the latest audience snapshot. Does not live-fetch Substack. Requires notes:read.
      operationId: getStatsOutcomes
      security:
      - scopedBearerToken:
        - notes:read
      parameters:
      - name: period
        in: query
        schema:
          type: string
          enum:
          - 1d
          - 7d
          - 30d
          - 90d
          - custom
          default: 30d
      - name: from
        in: query
        description: Inclusive start date (YYYY-MM-DD). Required when period is custom.
        schema:
          type: string
      - name: to
        in: query
        description: Inclusive end date (YYYY-MM-DD). Required when period is custom.
        schema:
          type: string
      - name: platforms
        in: query
        description: Comma-separated connected platforms to include.
        schema:
          type: string
      - name: contentTypes
        in: query
        description: 'Comma-separated content types: article, note, social_post.'
        schema:
          type: string
      - name: publicationId
        in: query
        description: Optional connected Substack publication id.
        schema:
          type: string
          maxLength: 191
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatsInsightsResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  responses:
    NotFound:
      description: The requested resource or API route does not exist.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    BadRequest:
      description: The request is malformed or failed validation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    PaymentRequired:
      description: The account needs an active subscription or a plan with Automation API access.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Unauthorized:
      description: The bearer token is missing, invalid, revoked, or expired.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    InternalError:
      description: The request could not be completed safely.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Conflict:
      description: The request conflicts with current resource or idempotency state. Reply delivery may return REPLY_NOT_DELIVERED or DELIVERY_UNCONFIRMED; the latter requires checking the provider thread before recovery.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Forbidden:
      description: The token is valid but lacks the required scope or workspace role.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  schemas:
    ArticleStats:
      type: object
      required:
      - publicationId
      - draftId
      - title
      - platform
      - url
      - publishedAt
      - statsAsOf
      - views
      - opens
      - clicks
      - links
      properties:
        publicationId:
          type: string
        draftId:
          type: string
        title:
          type:
          - string
          - 'null'
        platform:
          type: string
        url:
          type:
          - string
          - 'null'
        publishedAt:
          type: string
          format: date-time
        statsAsOf:
          type:
          - string
          - 'null'
          format: date-time
          description: When these stats were last saved.
        views:
          type:
          - number
          - 'null'
        opens:
          type:
          - number
          - 'null'
        openRate:
          type:
          - number
          - 'null'
        clicks:
          type:
          - number
          - 'null'
        clickRate:
          type:
          - number
          - 'null'
        reactions:
          type:
          - number
          - 'null'
        comments:
          type:
          - number
          - 'null'
        shares:
          type:
          - number
          - 'null'
        newSubscribers:
          type:
          - number
          - 'null'
        links:
          type:
          - object
          - 'null'
          description: Links readers clicked, most-clicked first. Null when the platform does not report them.
          required:
          - items
          - clickedBy
          - openers
          - hasMore
          properties:
            items:
              type: array
              items:
                $ref: '#/components/schemas/ArticleLinkClick'
            clickedBy:
              type:
              - number
              - 'null'
              description: Openers who clicked at least one link.
            openers:
              type:
              - number
              - 'null'
            hasMore:
              type: boolean
              description: The platform has more links than it returned.
    ArticleStatsList:
      type: object
      required:
      - success
      - articles
      - nextCursor
      properties:
        success:
          type: boolean
        articles:
          type: array
          items:
            $ref: '#/components/schemas/ArticleStats'
        nextCursor:
          type:
          - string
          - 'null'
    ArticleLinkClick:
      type: object
      required:
      - kind
      - url
      - label
      - clicks
      - share
      properties:
        kind:
          type: string
          enum:
          - link
          - image
          - button
          - other
          description: link is a URL in the article; image is Substack's image-zoom link; button and other are Substack's own buttons and its bucket for unlisted links.
        url:
          type:
          - string
          - 'null'
          description: The clicked URL for link and image.
        label:
          type:
          - string
          - 'null'
          description: Substack's label for buttons and other, for example "Share button".
        clicks:
          type: number
        share:
          type:
          - number
          - 'null'
          description: Share of openers who clicked it, 0 to 1.
    ApiError:
      type: object
      required:
      - error
      properties:
        code:
          type: string
          deprecated: true
          description: Compatibility alias for error.code. New clients should use error.code.
        message:
          type: string
          deprecated: true
          description: Compatibility alias for error.message. New clients should use error.message.
        resolution:
          type: string
          deprecated: true
          description: Compatibility alias for error.resolution. New clients should use error.resolution.
        error:
          type: object
          required:
          - code
          - message
          - resolution
          properties:
            code:
              type: string
              example: TOKEN_MISSING_SCOPE
              description: Stable error.code values. components.x-error-codes lists the codes the API returns, with HTTP status and the operations that return each; new codes may be added, so treat an unlisted code by its HTTP status.
            message:
              type: string
              example: This API token does not include the notes:write permission.
            resolution:
              type: string
              example: Create a token with notes:write and retry the request.
            details:
              description: Optional validation or recovery details.
    StatsInsightsResponse:
      type: object
      required:
      - schemaVersion
      - generatedAt
      - scope
      - outcomes
      - nicheTiming
      - audience
      properties:
        schemaVersion:
          type: integer
          const: 1
        generatedAt:
          type: string
          format: date-time
        scope:
          type: object
          additionalProperties: true
        outcomes:
          type: array
          items:
            type: object
            additionalProperties: true
            required:
            - id
            - state
            - metrics
            - drivers
            - evidence
            properties:
              id:
                type: string
                enum:
                - audience_growth
                - reach
                - traffic_discovery
                - engagement_quality
                - conversion_value
                - publishing_rhythm
              state:
                type: string
                enum:
                - ready
                - partial
                - unavailable
                - error
              metrics:
                type: array
                items:
                  type: object
                  required:
                  - key
                  - label
                  - unit
                  - semantics
                  - current
                  - previous
                  - absoluteChange
                  - percentChange
                  properties:
                    key:
                      type: string
                    label:
                      type: string
                    unit:
                      type: string
                      enum:
                      - count
                      - percent
                      - currency_minor
                      - milliseconds
                    semantics:
                      type: string
                      enum:
                      - period_event
                      - latest_cumulative_snapshot
                      - account_total
                    current:
                      type:
                      - number
                      - 'null'
                      description: Null when the value was not measured, never 0 in its place.
                    previous:
                      type:
                      - number
                      - 'null'
                      description: Null when the previous period was not measured.
                    absoluteChange:
                      type:
                      - number
                      - 'null'
                      description: Null unless both current and previous were measured.
                    percentChange:
                      type:
                      - number
                      - 'null'
                      description: Null unless both were measured and previous is not 0.
              drivers:
                type: array
                items:
                  type: object
                  additionalProperties: true
                  properties:
                    contribution:
                      type:
                      - number
                      - 'null'
              evidence:
                type: array
                items:
                  type: object
                  additionalProperties: true
              coverage:
                type: object
                additionalProperties: true
        platformPerformance:
          type: array
          items:
            type: object
            additionalProperties: true
        engagementPeak:
          anyOf:
          - type: object
            additionalProperties: true
            required:
            - basis
            - hour
            - weekday
            - benchmarkHour
            - benchmarkWeekday
            - weekdayLabel
            - displayLabel
            - engagements
            - averageEngagements
            - share
            - sampleCount
            properties:
              basis:
                type: string
                const: measured_scheduled_posts
                description: The peak is measured from the writer's own scheduled posts that have engagement data.
              hour:
                type: integer
                minimum: 0
                maximum: 23
              weekday:
                anyOf:
                - type: integer
                - type: 'null'
              benchmarkHour:
                anyOf:
                - type: integer
                  minimum: 0
                  maximum: 23
                - type: 'null'
                description: The peak hour in America/New_York time, the clock the other-writers timing benchmark uses. hour and weekday are in the writer's own time zone. Null when the peak posts do not agree on one New York hour.
              benchmarkWeekday:
                anyOf:
                - type: integer
                  minimum: 0
                  maximum: 6
                - type: 'null'
                description: The peak weekday in America/New_York time (0 is Sunday). Null for an hour-only peak.
              weekdayLabel:
                anyOf:
                - type: string
                - type: 'null'
              displayLabel:
                type: string
              engagements:
                type: number
              averageEngagements:
                type: number
              share:
                type: number
              sampleCount:
                type: integer
          - type: 'null'
        nicheTiming:
          type: object
          required:
          - title
          - summary
          - comparison
          - alignment
          - windows
          additionalProperties: false
          properties:
            title:
              type: string
            summary:
              type: string
            comparison:
              type: string
            alignment:
              type: string
              enum:
              - no_peak
              - weekend_peak
              - weekday_reliable
              - crowded_morning
              - other
            windows:
              type: array
              items:
                type: object
                additionalProperties: false
                properties:
                  label:
                    type: string
                  window:
                    type: string
                  detail:
                    type: string
        audience:
          type: object
          required:
          - date
          - subscribers
          - paidSubscribers
          - emailOpenRate
          - arr
          additionalProperties: false
          properties:
            date:
              anyOf:
              - type: string
              - type: 'null'
            subscribers:
              anyOf:
              - type: number
              - type: 'null'
            paidSubscribers:
              anyOf:
              - type: number
              - type: 'null'
            emailOpenRate:
              anyOf:
              - type: number
              - type: 'null'
            arr:
              anyOf:
              - type: number
              - type: 'null'
              description: Annual recurring revenue. Null for non-owners.
      additionalProperties: false
  securitySchemes:
    scopedBearerToken:
      type: http
      scheme: bearer
      bearerFormat: Narrareach automation token
      description: 'Send `Authorization: Bearer nrr_api_…`. Tokens are user-created and restricted to the operation scopes listed in each Security Requirement Object; a token needs any one of the scopes an operation lists. New tokens get every scope unless you choose fewer. A token stored with no scopes (an older token) is accepted for every operation. A token whose scopes were chosen does not gain scopes added later; create a new token to use them.'
      x-available-scopes:
        notes:read: Read Notes, Note operation state, and stored Stats insights.
        notes:write: Create, update, schedule, publish, and delete Notes.
        articles:write: Create, schedule, reschedule, and cancel articles.
        activity:read: Read connected Substack reader activity.
        activity:write: Reply to and triage connected Substack reader activity.
        webhooks:write: 'Reserved. No /api/v1 operation requires it yet: webhook endpoints are registered in Narrareach Settings → Integrations → REST API & webhooks, not with a token.'
        research:read: Read transcripts that were already requested (GET /api/v1/transcripts/{id}) and list topic suggestions (GET /api/v1/topics). Does not use the transcript allowance.
        research:write: Request transcripts of YouTube videos, podcast episodes, and audio files (POST /api/v1/transcripts), which uses the daily transcript allowance. Also reads them.
externalDocs:
  description: Connector and API setup
  url: https://www.narrareach.com/api-docs