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

# Get Facebook video analytics

> Get Facebook video analytics via Posttu's Facebook REST API (POST /api/v1/facebook/posts/analytics/video) and MCP server.



## OpenAPI

````yaml openapi.json POST /api/v1/facebook/posts/analytics/video
openapi: 3.1.0
info:
  title: Posttu API
  version: 1.0.0
  description: >-
    Posttu V1 REST API — Workflow automation, social-media post management,
    inbox, tags, and calendar.
servers:
  - url: https://posttu.com
    description: Production
security: []
paths:
  /api/v1/facebook/posts/analytics/video:
    post:
      tags:
        - Facebook
      summary: Get Facebook video analytics
      description: |-
        Get Facebook video analytics
        Requires API key scope: `facebook:read`.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FacebookVideoAnalyticsInput'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FacebookPostAnalyticsVideoResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    FacebookVideoAnalyticsInput:
      type: object
      properties:
        channelId:
          type: string
          description: Facebook channel ID
          example: ch_fb123
        videoId:
          type: string
          description: Facebook video ID
        metrics:
          type: array
          items:
            type: string
          minItems: 1
        since:
          type: string
        until:
          type: string
        period:
          type: string
      required:
        - channelId
        - videoId
        - metrics
    FacebookPostAnalyticsVideoResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success status
        data:
          $ref: '#/components/schemas/FacebookAnalyticsListResponse'
      required:
        - success
        - data
    FacebookAnalyticsListResponse:
      type:
        - object
        - 'null'
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/FacebookAnalytic'
        paging:
          type: object
          properties:
            cursors:
              type: object
              properties:
                before:
                  type: string
                after:
                  type: string
            next:
              type: string
            previous:
              type: string
        summary: {}
      required:
        - data
      description: The FacebookAnalyticsListResponse.
    FacebookAnalytic:
      type: object
      properties:
        name:
          type: string
        period:
          type: string
        values:
          type: array
          items:
            type: object
            properties:
              value: {}
              end_time:
                type: string
        title:
          type: string
        description:
          type: string
        id:
          type: string
      required:
        - name
        - period
        - values
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Pass your API key via the Authorization header: `Bearer <api-key>`'

````

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