Schedulin Analytics API

The Analytics API from Schedulin — 3 operation(s) for analytics.

GitHub OpenAPI

Operations 3

GET /v0/analytics/overview Get workspace analytics totals #
GET /v0/analytics/platforms Get analytics totals by platform #
GET /v0/analytics/top-posts List top-performing posts #

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/schedulin-app:schedulin-app-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

schedulin-app-analytics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Schedulin Analytics API
  version: 0.1.0
  description: 'Schedulin API for social media management.


    ## Authentication


    All API requests require authentication via the `x-api-key` header.


    You can generate an API key from your Schedulin dashboard.


    ```

    x-api-key: your-api-key

    ```'
servers:
- url: https://api.schedulin.app
security:
- apiKey: []
tags:
- name: Analytics
paths:
  /v0/analytics/overview:
    get:
      operationId: v0.analytics.overview
      summary: Get workspace analytics totals
      description: Aggregate engagement totals (impressions, reach, likes, comments, shares, saves, video views, clicks, engagement), follower audience and posts published for the window, plus percent change vs the previous window of the same length. Covers posts published from the workspace's connected accounts. Filter with `platforms` and `socialAccountIds`; `from`/`to` may span up to 400 days. Metrics are collected periodically per post, so the most recent hours may still be filling in.
      tags:
      - Analytics
      parameters:
      - name: from
        in: query
        required: true
        schema:
          type: string
          description: Start of the window (inclusive), ISO 8601. The window may span up to 400 days.
        allowEmptyValue: true
        allowReserved: true
      - name: to
        in: query
        required: true
        schema:
          type: string
          description: End of the window (exclusive), ISO 8601
        allowEmptyValue: true
        allowReserved: true
      - name: platforms
        in: query
        required: false
        schema:
          type: array
          maxItems: 11
          items:
            enum:
            - bluesky
            - facebook
            - google_business_profile
            - instagram
            - linkedin
            - pinterest
            - reddit
            - threads
            - tiktok
            - twitter
            - youtube
            type: string
          description: Only include these platforms
        style: deepObject
        explode: true
        allowEmptyValue: true
        allowReserved: true
      - name: socialAccountIds
        in: query
        required: false
        schema:
          type: array
          maxItems: 100
          items:
            type: string
          description: Only include these social accounts
        style: deepObject
        explode: true
        allowEmptyValue: true
        allowReserved: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  totals:
                    type: object
                    properties:
                      impressions:
                        type: integer
                      reach:
                        type: integer
                      likes:
                        type: integer
                      comments:
                        type: integer
                      shares:
                        type: integer
                      saves:
                        type: integer
                      videoViews:
                        type: integer
                      clicks:
                        type: integer
                      linkClicks:
                        type: integer
                      engagement:
                        type: integer
                      audience:
                        type: integer
                        description: Sum of the latest follower count of each account at `to`
                      postsPublished:
                        type: integer
                    required:
                    - impressions
                    - reach
                    - likes
                    - comments
                    - shares
                    - saves
                    - videoViews
                    - clicks
                    - linkClicks
                    - engagement
                    - audience
                    - postsPublished
                  trend:
                    type: object
                    properties:
                      impressions:
                        anyOf:
                        - type: number
                        - type: 'null'
                      engagement:
                        anyOf:
                        - type: number
                        - type: 'null'
                      likes:
                        anyOf:
                        - type: number
                        - type: 'null'
                      audience:
                        anyOf:
                        - type: number
                        - type: 'null'
                    required:
                    - impressions
                    - engagement
                    - likes
                    - audience
                    description: 'Percent change vs the previous window of the same length: 0 when both windows are zero, null when only the previous window is zero'
                required:
                - totals
                - trend
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalServerError'
      x-fern-sdk-group-name: analytics
      x-fern-sdk-method-name: overview
      security:
      - apiKey: []
      - oauth2:
        - analytics:read
  /v0/analytics/platforms:
    get:
      operationId: v0.analytics.platformBreakdown
      summary: Get analytics totals by platform
      description: Engagement totals for the window grouped by platform, highest engagement first. Covers posts published from the workspace's connected accounts. Filter with `platforms` and `socialAccountIds`; `from`/`to` may span up to 400 days. Metrics are collected periodically per post, so the most recent hours may still be filling in.
      tags:
      - Analytics
      parameters:
      - name: from
        in: query
        required: true
        schema:
          type: string
          description: Start of the window (inclusive), ISO 8601. The window may span up to 400 days.
        allowEmptyValue: true
        allowReserved: true
      - name: to
        in: query
        required: true
        schema:
          type: string
          description: End of the window (exclusive), ISO 8601
        allowEmptyValue: true
        allowReserved: true
      - name: platforms
        in: query
        required: false
        schema:
          type: array
          maxItems: 11
          items:
            enum:
            - bluesky
            - facebook
            - google_business_profile
            - instagram
            - linkedin
            - pinterest
            - reddit
            - threads
            - tiktok
            - twitter
            - youtube
            type: string
          description: Only include these platforms
        style: deepObject
        explode: true
        allowEmptyValue: true
        allowReserved: true
      - name: socialAccountIds
        in: query
        required: false
        schema:
          type: array
          maxItems: 100
          items:
            type: string
          description: Only include these social accounts
        style: deepObject
        explode: true
        allowEmptyValue: true
        allowReserved: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  platforms:
                    type: array
                    items:
                      type: object
                      properties:
                        platform:
                          type: string
                        impressions:
                          type: integer
                        likes:
                          type: integer
                        comments:
                          type: integer
                        shares:
                          type: integer
                        engagement:
                          type: integer
                      required:
                      - platform
                      - impressions
                      - likes
                      - comments
                      - shares
                      - engagement
                required:
                - platforms
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalServerError'
      x-fern-sdk-group-name: analytics
      x-fern-sdk-method-name: platformBreakdown
      security:
      - apiKey: []
      - oauth2:
        - analytics:read
  /v0/analytics/top-posts:
    get:
      operationId: v0.analytics.topPosts
      summary: List top-performing posts
      description: Posts ranked by `metric` (default `engagementTotal`) accumulated within the window. Covers posts published from the workspace's connected accounts. Filter with `platforms` and `socialAccountIds`; `from`/`to` may span up to 400 days. Metrics are collected periodically per post, so the most recent hours may still be filling in.
      tags:
      - Analytics
      parameters:
      - name: from
        in: query
        required: true
        schema:
          type: string
          description: Start of the window (inclusive), ISO 8601. The window may span up to 400 days.
        allowEmptyValue: true
        allowReserved: true
      - name: to
        in: query
        required: true
        schema:
          type: string
          description: End of the window (exclusive), ISO 8601
        allowEmptyValue: true
        allowReserved: true
      - name: platforms
        in: query
        required: false
        schema:
          type: array
          maxItems: 11
          items:
            enum:
            - bluesky
            - facebook
            - google_business_profile
            - instagram
            - linkedin
            - pinterest
            - reddit
            - threads
            - tiktok
            - twitter
            - youtube
            type: string
          description: Only include these platforms
        style: deepObject
        explode: true
        allowEmptyValue: true
        allowReserved: true
      - name: socialAccountIds
        in: query
        required: false
        schema:
          type: array
          maxItems: 100
          items:
            type: string
          description: Only include these social accounts
        style: deepObject
        explode: true
        allowEmptyValue: true
        allowReserved: true
      - name: metric
        in: query
        required: false
        schema:
          enum:
          - impressions
          - reach
          - likes
          - comments
          - shares
          - saves
          - videoViews
          - engagementTotal
          type: string
          default: engagementTotal
          description: Metric to rank by
        allowEmptyValue: true
        allowReserved: true
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 50
          default: 10
        allowEmptyValue: true
        allowReserved: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  posts:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        platform:
                          type: string
                        caption:
                          anyOf:
                          - type: string
                          - type: 'null'
                        url:
                          anyOf:
                          - type: string
                          - type: 'null'
                        createdAt:
                          anyOf:
                          - type: string
                            format: date-time
                            x-native-type: date
                          - type: 'null'
                        value:
                          type: integer
                          description: The ranking metric's total within the window
                      required:
                      - id
                      - platform
                      - caption
                      - url
                      - createdAt
                      - value
                required:
                - posts
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalServerError'
      x-fern-sdk-group-name: analytics
      x-fern-sdk-method-name: topPosts
      security:
      - apiKey: []
      - oauth2:
        - analytics:read
components:
  responses:
    ValidationFailed:
      description: 'Unprocessable request. Schema validation failures have `code: "INPUT_VALIDATION_FAILED"` and `data.fieldErrors` mapping each invalid field to its messages (nested issues name their full path, e.g. `media[0].url: ...`). Business-rule rejections (e.g. a `scheduledAt` in the past) have `code: "UNPROCESSABLE_CONTENT"` and carry the reason in `data.message` and `data.formErrors`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationErrorResponse'
          example:
            defined: false
            code: INPUT_VALIDATION_FAILED
            status: 422
            message: Input validation failed
            data:
              formErrors: []
              fieldErrors:
                caption:
                - 'Too small: expected string to have >=1 characters'
    Forbidden:
      description: Forbidden — the credential lacks the required scope or access.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            defined: false
            code: FORBIDDEN
            status: 403
            message: Forbidden
            data:
              message: Forbidden
    Unauthorized:
      description: Unauthorized — missing or invalid API key / access token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            defined: false
            code: UNAUTHORIZED
            status: 401
            message: Unauthorized
            data:
              message: Unauthorized
    BadRequest:
      description: Bad Request — the request isn't allowed in the resource's current state (e.g. editing a published post).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            defined: false
            code: BAD_REQUEST
            status: 400
            message: Bad Request
            data:
              message: Bad Request
    RateLimited:
      description: Rate limit exceeded. Wait `Retry-After` seconds before retrying.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitErrorResponse'
          example:
            code: RATE_LIMITED
            status: 429
            message: Rate limit exceeded. Retry after 12s.
            error:
              code: RATE_LIMITED
              message: Rate limit exceeded. Retry after 12s.
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
    InternalServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            defined: false
            code: INTERNAL_SERVER_ERROR
            status: 500
            message: Internal Server Error
            data:
              message: Internal Server Error
  schemas:
    ValidationErrorResponse:
      type: object
      description: 422 error. `data.fieldErrors` maps each invalid field to its messages; `data.formErrors` holds errors not tied to one field. `code` is "INPUT_VALIDATION_FAILED" for schema validation and "UNPROCESSABLE_CONTENT" for business-rule rejections, whose reason is also in `data.message`.
      properties:
        code:
          type: string
          description: '"INPUT_VALIDATION_FAILED" or "UNPROCESSABLE_CONTENT"'
        status:
          type: integer
        message:
          type: string
        defined:
          type: boolean
        data:
          type: object
          properties:
            message:
              type: string
              description: Human-readable reason (business-rule rejections only).
            formErrors:
              type: array
              items:
                type: string
            fieldErrors:
              type: object
              additionalProperties:
                type: array
                items:
                  type: string
      required:
      - code
      - status
      - data
    RateLimitErrorResponse:
      type: object
      description: '429 rate-limit error. Per-key request limits return `code: "RATE_LIMITED"` (also mirrored under `error`); the per-user limiter returns `code: "TOO_MANY_REQUESTS"`. Honor the `Retry-After` header.'
      properties:
        code:
          type: string
        status:
          type: integer
        message:
          type: string
        defined:
          type: boolean
        data:
          type: object
          additionalProperties: true
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
          - code
          - message
      required:
      - code
      - status
    ErrorResponse:
      type: object
      description: Error envelope. The machine-readable `code` and HTTP `status` are always present; the human-readable reason is in `message` / `data.message`.
      properties:
        code:
          type: string
          description: e.g. "BAD_REQUEST", "UNAUTHORIZED", "NOT_FOUND".
        status:
          type: integer
        message:
          type: string
        defined:
          type: boolean
        data:
          type: object
          additionalProperties: true
          properties:
            message:
              type: string
            userMessage:
              type: string
              description: End-user-safe explanation, when available.
            errorTag:
              type: string
            isRetryable:
              type: boolean
      required:
      - code
      - status
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication
    oauth2:
      type: oauth2
      description: OAuth2 authorization code flow (PKCE supported). Each operation lists the scope it requires.
      flows:
        authorizationCode:
          authorizationUrl: https://api.schedulin.app/oauth/authorize
          tokenUrl: https://api.schedulin.app/oauth/token
          scopes:
            posts:read: View posts and drafts
            posts:write: Create, edit, and delete posts
            tags:read: View tags
            tags:write: Create, edit, and delete tags
            social-accounts:read: View connected social accounts
            social-accounts:write: Update and disconnect social accounts
            channels:read: View channels
            media:read: View media files
            media:write: Upload and delete media files
            analytics:read: View analytics data
            org:read: View organization details
            ai:read: View AI generation jobs and available voices
            ai:write: Generate AI images and videos (spends AI credits)
            webhooks:read: View webhook endpoints and delivery history
            webhooks:write: Create, edit, and delete webhook endpoints