Post Bridge Analytics API

View analytics data for your posts. Currently supports TikTok.

GitHub OpenAPI

Operations 4

GET /v1/analytics Get analytics #
POST /v1/analytics/sync Sync analytics for your connected accounts (TikTok, YouTube, Instagram) #
GET /v1/analytics/{id} Get analytics by ID #
GET /v1/analytics/{id}/daily Get daily snapshots and per-day deltas for a post #

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/post-bridge-com:post-bridge-com-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

post-bridge-com-analytics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: post bridge Analytics API
  description: The official API for post bridge
  version: '1.0'
  contact: {}
  termsOfService: https://www.post-bridge.com/tos
servers: []
tags:
- name: Analytics
  description: View analytics data for your posts. Currently supports TikTok.
paths:
  /v1/analytics:
    get:
      description: Get a paginated result for analytics based on the applied filters
      operationId: AnalyticsController_getAllAnalytics_v1
      parameters:
      - name: offset
        required: false
        in: query
        description: Number of items to skip
        schema:
          default: 0
          type: number
      - name: limit
        required: false
        in: query
        description: Number of items to return
        schema:
          default: 10
          type: number
      - name: platform
        required: false
        in: query
        description: Filter by platform (e.g. tiktok)
        schema:
          type: string
      - name: post_result_id
        required: false
        in: query
        description: Filter by post result IDs. Multiple values imply OR logic.
        schema:
          type: array
          items:
            type: string
      - name: timeframe
        required: false
        in: query
        description: 'Filter by timeframe: 7d, 30d, 90d, or all'
        schema:
          default: all
          type: string
      - name: media_type
        required: false
        in: query
        description: 'Filter by media type: video or slideshow. Told apart by duration: slideshow = TikTok photo posts, video = TikTok and YouTube videos. Instagram and Facebook do not report duration, so their posts are excluded when this is set.'
        schema:
          type: string
          enum:
          - video
          - slideshow
      responses:
        '200':
          description: Paginated data set for analytics.
          content:
            application/json:
              schema:
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/AnalyticsDto'
                  meta:
                    type: object
                    properties:
                      total:
                        type: number
                        description: Total number of items available.
                      offset:
                        type: number
                        description: Number of items skipped.
                      limit:
                        type: number
                        description: Maximum number of items returned.
                      next:
                        type:
                        - string
                        - 'null'
                        description: URL to the next page of results, or null if none.
                        example: https://api.post-bridge.com/v1/items?offset=10&limit=10
                    required:
                    - total
                    - offset
                    - limit
                    - next
                required:
                - data
                - meta
        '500':
          description: Internal server error when fetching analytics.
      security:
      - bearer: []
      summary: Get analytics
      tags:
      - Analytics
  /v1/analytics/sync:
    post:
      description: 'Pulls fresh view, like and comment counts from each platform for posts published through post bridge. Rate limited: a sync can only be triggered once every 30 minutes per account. Analytics are only available for TikTok, YouTube, Instagram and Facebook.'
      operationId: AnalyticsController_syncAnalytics_v1
      parameters:
      - name: platform
        required: false
        in: query
        description: Sync a specific platform only. Omit to sync all.
        schema:
          enum:
          - tiktok
          - youtube
          - instagram
          type: string
      responses:
        '200':
          description: Analytics sync completed.
        '429':
          description: Rate limited - please wait between syncs.
      security:
      - bearer: []
      summary: Sync analytics for your connected accounts (TikTok, YouTube, Instagram)
      tags:
      - Analytics
  /v1/analytics/{id}:
    get:
      description: 'Returns the lifetime analytics record for one post result: views, likes, comments and shares as last synced, with the timestamp of that sync.'
      operationId: AnalyticsController_getAnalyticsById_v1
      parameters:
      - name: id
        required: true
        in: path
        description: Analytics record ID
        schema:
          type: string
      responses:
        '200':
          description: Analytics record retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalyticsDto'
        '404':
          description: Analytics record not found.
      security:
      - bearer: []
      summary: Get analytics by ID
      tags:
      - Analytics
  /v1/analytics/{id}/daily:
    get:
      description: Returns one row per day for a post, with both the cumulative total on that day and the change from the previous day. Use this for charts; use the lifetime endpoint for a single current number.
      operationId: AnalyticsController_getAnalyticsDaily_v1
      parameters:
      - name: id
        required: true
        in: path
        description: Analytics record ID
        schema:
          type: string
      responses:
        '200':
          description: Daily analytics snapshots and deltas for a post.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalyticsDailyDto'
        '404':
          description: Analytics record not found.
      security:
      - bearer: []
      summary: Get daily snapshots and per-day deltas for a post
      tags:
      - Analytics
components:
  schemas:
    AnalyticsDto:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the analytics record
        post_result_id:
          type: string
          description: The ID of the associated post result
        platform:
          type: string
          description: Platform name (e.g. tiktok)
        platform_post_id:
          type: object
          description: Platform-specific post ID
        view_count:
          type: number
          description: Total view count
        like_count:
          type: number
          description: Total like count
        comment_count:
          type: number
          description: Total comment count
        share_count:
          type: number
          description: Total share count
        cover_image_url:
          type: object
          description: Cover image URL from the platform
        share_url:
          type: object
          description: Share URL on the platform
        video_description:
          type: object
          description: Video description on the platform
        duration:
          type: object
          description: Video duration in seconds
        platform_created_at:
          type: object
          description: When the content was created on the platform
        last_synced_at:
          type: string
          description: When analytics were last synced
        match_confidence:
          type: object
          description: Confidence of the match (exact or high)
      required:
      - id
      - post_result_id
      - platform
      - platform_post_id
      - view_count
      - like_count
      - comment_count
      - share_count
      - cover_image_url
      - share_url
      - video_description
      - duration
      - platform_created_at
      - last_synced_at
      - match_confidence
    AnalyticsDailyDeltaDto:
      type: object
      properties:
        date:
          type: string
          description: Snapshot date (YYYY-MM-DD)
        views:
          type: number
          description: New views gained on this day
        likes:
          type: number
          description: New likes gained on this day
        comments:
          type: number
          description: New comments gained on this day
        shares:
          type: number
          description: New shares gained on this day
      required:
      - date
      - views
      - likes
      - comments
      - shares
    AnalyticsDailySnapshotDto:
      type: object
      properties:
        date:
          type: string
          description: Snapshot date (YYYY-MM-DD)
        view_count:
          type: number
          description: Cumulative view count as of this date
        like_count:
          type: number
          description: Cumulative like count as of this date
        comment_count:
          type: number
          description: Cumulative comment count as of this date
        share_count:
          type: number
          description: Cumulative share count as of this date
      required:
      - date
      - view_count
      - like_count
      - comment_count
      - share_count
    AnalyticsDailyDto:
      type: object
      properties:
        snapshots:
          description: Raw daily snapshots (cumulative totals). First snapshot is the earliest available date.
          type: array
          items:
            $ref: '#/components/schemas/AnalyticsDailySnapshotDto'
        deltas:
          description: Per-day deltas (new engagement gained each day). Excludes the first snapshot since it has no previous day to diff against.
          type: array
          items:
            $ref: '#/components/schemas/AnalyticsDailyDeltaDto'
      required:
      - snapshots
      - deltas
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
    mcp-oauth:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://www.post-bridge.com/authorize
          tokenUrl: https://www.post-bridge.com/api/oauth/token
          refreshUrl: https://www.post-bridge.com/api/oauth/token
          scopes:
            posts:read: Read posts, drafts and scheduled posts
            posts:write: Create, update, schedule and delete posts
            accounts:read: List connected social accounts
            media:read: List uploaded media
            media:write: Upload and delete media
            analytics:read: Read post analytics
      description: Used by MCP clients (Claude, ChatGPT, Cursor). REST API callers use the Bearer API key above instead.