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

# Post-level analytics (published here or natively on the platform)



## OpenAPI

````yaml /api-reference/openapi.json get /v1/analytics/posts
openapi: 3.0.0
info:
  title: PlugKit API
  description: >-
    One API to publish, schedule and message across Instagram, WhatsApp, TikTok,
    Telegram, YouTube and X.
  version: 1.0.0
  contact: {}
servers: []
security: []
tags: []
paths:
  /v1/analytics/posts:
    get:
      tags:
        - analytics
      summary: Post-level analytics (published here or natively on the platform)
      operationId: AnalyticsController_posts
      parameters:
        - name: profileId
          required: false
          in: query
          description: Restrict to one profile.
          schema:
            type: string
        - name: accountId
          required: false
          in: query
          description: Restrict to one connected account.
          schema:
            type: string
        - name: platform
          required: false
          in: query
          schema:
            type: string
            enum:
              - instagram
              - whatsapp
              - tiktok
              - telegram
              - youtube
              - x
              - facebook
              - meta_ads
              - linkedin
        - name: source
          required: false
          in: query
          description: >-
            Where the post came from. `plugkit` = published through the API,
            `external` = published natively on the platform. Defaults to all.
          schema:
            enum:
              - all
              - plugkit
              - external
            type: string
        - name: from
          required: false
          in: query
          description: Start of the window (ISO date). Defaults to 30 days ago.
          schema:
            type: string
        - name: to
          required: false
          in: query
          description: End of the window (ISO date). Defaults to now.
          schema:
            type: string
        - name: page
          required: false
          in: query
          schema:
            minimum: 1
            default: 1
            type: number
        - name: limit
          required: false
          in: query
          schema:
            minimum: 1
            maximum: 100
            default: 20
            type: number
        - name: sortBy
          required: false
          in: query
          schema:
            default: date
            enum:
              - date
              - engagement
              - likes
              - comments
              - shares
              - saves
              - views
              - impressions
              - reach
              - clicks
            type: string
        - name: order
          required: false
          in: query
          schema:
            default: desc
            enum:
              - asc
              - desc
            type: string
      responses:
        '200':
          description: ''
      security:
        - api-key: []
components:
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: sk_...
      type: http

````