> ## Documentation Index
> Fetch the complete documentation index at: https://docs.postinger.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Post statistics

> One post's numbers on each account it went to, and how they grew. Needs analytics:read.



## OpenAPI

````yaml GET /v1/analytics/posts/{postId}
openapi: 3.1.1
info:
  title: Postinger API
  description: >-
    Schedule and publish posts, upload media and read analytics for one
    workspace. Authenticate with an API key from API Keys in the app:
    Authorization: Bearer pst_live_…
  version: v1
servers:
  - url: https://api.postinger.dev
    description: Production
security:
  - apiKey: []
tags:
  - name: Accounts
  - name: Analytics
  - name: Workspace
  - name: Media
  - name: Posts
paths:
  /v1/analytics/posts/{postId}:
    get:
      tags:
        - Analytics
      summary: Post statistics
      description: >-
        One post's numbers on each account it went to, and how they grew. Needs
        analytics:read.
      parameters:
        - name: postId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostAnalyticsResponse'
components:
  schemas:
    PostAnalyticsResponse:
      required:
        - postId
        - targets
      type: object
      properties:
        postId:
          type: string
          format: uuid
        targets:
          type: array
          items:
            $ref: '#/components/schemas/PostTargetAnalyticsResponse'
    PostTargetAnalyticsResponse:
      required:
        - socialAccountId
        - platform
        - format
        - publishedAt
        - externalUrl
        - state
        - lastSyncedAt
        - nextSyncAt
        - error
        - metrics
        - snapshots
      type: object
      properties:
        socialAccountId:
          type: string
          format: uuid
        platform:
          enum:
            - instagram
            - facebook
            - youtube
            - tiktok
          type: string
        format:
          type: string
        publishedAt:
          type: string
          format: date-time
        externalUrl:
          type:
            - 'null'
            - string
        state:
          enum:
            - active
            - done
            - unavailable
            - gone
          type: string
        lastSyncedAt:
          type:
            - 'null'
            - string
          format: date-time
        nextSyncAt:
          type:
            - 'null'
            - string
          format: date-time
        error:
          type:
            - 'null'
            - string
        metrics:
          $ref: '#/components/schemas/PostValuesResponse'
        snapshots:
          type: array
          items:
            $ref: '#/components/schemas/PostSnapshotResponse'
    PostValuesResponse:
      required:
        - views
        - reach
        - likes
        - comments
        - shares
        - saves
        - engagements
        - avgWatchSeconds
      type: object
      properties:
        views:
          type:
            - 'null'
            - integer
          format: int64
        reach:
          type:
            - 'null'
            - integer
          format: int64
        likes:
          type:
            - 'null'
            - integer
          format: int64
        comments:
          type:
            - 'null'
            - integer
          format: int64
        shares:
          type:
            - 'null'
            - integer
          format: int64
        saves:
          type:
            - 'null'
            - integer
          format: int64
        engagements:
          type:
            - 'null'
            - integer
          format: int64
        avgWatchSeconds:
          type:
            - 'null'
            - number
          format: double
    PostSnapshotResponse:
      required:
        - takenAt
        - metrics
      type: object
      properties:
        takenAt:
          type: string
          format: date-time
        metrics:
          $ref: '#/components/schemas/PostValuesResponse'
  securitySchemes:
    apiKey:
      type: http
      description: A workspace API key (pst_live_…).
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.