PostQuest Analytics API

Read post performance on connected accounts and queue metric syncs.

GitHub OpenAPI

Operations 5

GET /analytics/summary Summarize analytics for a period #
GET /analytics List post analytics #
POST /analytics/sync Queue an analytics sync #
GET /analytics/{analytics} Get post analytics #
GET /analytics/{analytics}/daily Get daily post analytics #

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-quest-com:post-quest-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-quest-com-analytics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Post Quest Com Analytics API
  version: 1.0.0
  contact:
    name: PostQuest Support
    email: support@post-quest.com
  license:
    name: Proprietary
  description: 'Operations tagged Analytics across 2 of this provider''s published API definitions: openapi.yaml, post-quest-com-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.post-quest.com/v1
  description: Production
security:
- bearerAuth: []
tags:
- name: Analytics
  description: Read post performance on connected accounts and queue metric syncs.
paths:
  /analytics/summary:
    get:
      tags:
      - Analytics
      operationId: getAnalyticsSummary
      summary: Summarize analytics for a period
      description: 'Requires `posts:read`. Totals are growth within the period, next to the

        same-length period before it. Numbers appear about 24 hours after a

        post goes live and refresh daily. Platforms report different metrics,

        so a zero can mean a metric is not reported.'
      parameters:
      - $ref: '#/components/parameters/AnalyticsRange'
      - $ref: '#/components/parameters/AnalyticsAccountFilter'
      responses:
        '200':
          description: Analytics summary.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalyticsSummary'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/BillingRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
    servers:
    - url: https://api.post-quest.com/v1
      description: Production
  /analytics:
    get:
      tags:
      - Analytics
      operationId: listAnalytics
      summary: List post analytics
      description: 'Requires `posts:read`. Lifetime metrics per published post on connected

        accounts, including posts made outside PostQuest, limited to the plan''s

        analytics history.'
      parameters:
      - name: platform
        in: query
        schema:
          $ref: '#/components/schemas/Platform'
      - $ref: '#/components/parameters/AnalyticsAccountFilter'
      - name: post_id
        in: query
        description: A PostQuest post ID, to see how each of its destinations performed.
        schema:
          type: string
          format: uuid
      - name: range
        in: query
        description: Only posts published in this range. Omit for the whole plan history.
        schema:
          $ref: '#/components/schemas/AnalyticsRange'
      - name: sort
        in: query
        description: Descending order.
        schema:
          type: string
          enum:
          - posted_at
          - engagements
          - views
          - impressions
          - likes
          default: posted_at
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Offset'
      responses:
        '200':
          description: Offset-paginated post analytics.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostAnalyticsListResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/BillingRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
    servers:
    - url: https://api.post-quest.com/v1
      description: Production
  /analytics/sync:
    post:
      tags:
      - Analytics
      operationId: syncAnalytics
      summary: Queue an analytics sync
      description: 'Requires `posts:read`. Analytics already sync every 24 hours; this

        queues an extra refresh. Allowed once every 15 minutes per workspace,

        shared with the dashboard''s Sync insights button. A sync inside the

        cooldown returns `429 sync_cooldown` with `Retry-After`.'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                social_account_id:
                  type: string
                  format: uuid
                  description: Sync one account. Omit to sync every account.
      responses:
        '202':
          description: Sync queued.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalyticsSyncResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/BillingRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
    servers:
    - url: https://api.post-quest.com/v1
      description: Production
  /analytics/{analytics}:
    get:
      tags:
      - Analytics
      operationId: getAnalytics
      summary: Get post analytics
      description: Requires `posts:read`. One post's lifetime metrics as last synced.
      parameters:
      - $ref: '#/components/parameters/AnalyticsId'
      responses:
        '200':
          description: Post analytics.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/PostAnalytics'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/BillingRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
    servers:
    - url: https://api.post-quest.com/v1
      description: Production
  /analytics/{analytics}/daily:
    get:
      tags:
      - Analytics
      operationId: getAnalyticsDaily
      summary: Get daily post analytics
      description: 'Requires `posts:read`. One row per synced day: the cumulative totals on

        that day, and the growth since the day before. The first growth row

        counts on the publish date. Use this for charts; use the lifetime

        endpoint for a single current number.'
      parameters:
      - $ref: '#/components/parameters/AnalyticsId'
      responses:
        '200':
          description: Daily snapshots and growth for a post.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostAnalyticsDailyResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/BillingRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
    servers:
    - url: https://api.post-quest.com/v1
      description: Production
components:
  schemas:
    Error:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
        message:
          type: string
    AnalyticsDay:
      allOf:
      - type: object
        required:
        - date
        properties:
          date:
            type: string
            format: date
      - $ref: '#/components/schemas/AnalyticsMetrics'
    ValidationIssue:
      type: object
      required:
      - platform
      - field
      - code
      - message
      - blocking
      properties:
        platform:
          oneOf:
          - $ref: '#/components/schemas/Platform'
          - type: 'null'
        field:
          type: string
        code:
          type: string
        message:
          type: string
        blocking:
          type: boolean
    ContentFormat:
      type: string
      enum:
      - video
      - text
      - image
      - carousel
      - reel
      - story
    AnalyticsRange:
      type: string
      enum:
      - 7d
      - 14d
      - 30d
      - 90d
      - 6mo
      - 9mo
      - 12mo
      - 24mo
      - this_month
      - last_month
      - this_year
      - last_year
    AnalyticsTotal:
      type: object
      required:
      - value
      - previous
      properties:
        value:
          type: integer
          minimum: 0
        previous:
          type: integer
          minimum: 0
    PaginationMeta:
      type: object
      required:
      - total
      - limit
      - offset
      properties:
        total:
          type: integer
          minimum: 0
        limit:
          type: integer
          minimum: 1
          maximum: 100
        offset:
          type: integer
          minimum: 0
        timezone:
          type: string
          examples:
          - Asia/Singapore
    AnalyticsSyncResponse:
      type: object
      required:
      - queued
      - social_account_ids
      - cooldown_seconds
      - message
      properties:
        queued:
          type: boolean
          const: true
        social_account_ids:
          type: array
          items:
            type: string
            format: uuid
        cooldown_seconds:
          type: integer
          examples:
          - 900
        message:
          type: string
    ValidationError:
      allOf:
      - $ref: '#/components/schemas/Error'
      - type: object
        properties:
          errors:
            type: object
            additionalProperties:
              type: array
              items:
                type: string
          issues:
            type: array
            items:
              $ref: '#/components/schemas/ValidationIssue'
    AnalyticsMetrics:
      type: object
      description: Zero can mean the platform does not report that metric. `engagements` is likes, comments, shares and saves combined.
      required:
      - impressions
      - reach
      - views
      - likes
      - comments
      - shares
      - saves
      - follows
      - engagements
      properties:
        impressions:
          type: integer
          minimum: 0
        reach:
          type: integer
          minimum: 0
        views:
          type: integer
          minimum: 0
        likes:
          type: integer
          minimum: 0
        comments:
          type: integer
          minimum: 0
        shares:
          type: integer
          minimum: 0
        saves:
          type: integer
          minimum: 0
        follows:
          type: integer
          minimum: 0
        engagements:
          type: integer
          minimum: 0
    PostAnalyticsListResponse:
      type: object
      required:
      - data
      - meta
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/PostAnalytics'
        meta:
          $ref: '#/components/schemas/PaginationMeta'
    Platform:
      type: string
      enum:
      - instagram
      - facebook
      - x
      - youtube
      - tiktok
      - pinterest
      - linkedin
      - threads
      - bluesky
      - mastodon
    PostAnalytics:
      type: object
      required:
      - id
      - social_account_id
      - post_id
      - platform
      - platform_post_id
      - platform_url
      - caption
      - thumbnail_url
      - content_format
      - posted_at
      - metrics
      - last_synced_at
      properties:
        id:
          type: string
          format: uuid
        social_account_id:
          type: string
          format: uuid
        post_id:
          type:
          - string
          - 'null'
          format: uuid
          description: The PostQuest post, when it was published through PostQuest.
        platform:
          $ref: '#/components/schemas/Platform'
        platform_post_id:
          type: string
        platform_url:
          type:
          - string
          - 'null'
          format: uri
        caption:
          type:
          - string
          - 'null'
        thumbnail_url:
          type:
          - string
          - 'null'
          format: uri
        content_format:
          $ref: '#/components/schemas/ContentFormat'
        posted_at:
          type:
          - string
          - 'null'
          format: date-time
        metrics:
          $ref: '#/components/schemas/AnalyticsMetrics'
        last_synced_at:
          type:
          - string
          - 'null'
          format: date-time
    PostAnalyticsDailyResponse:
      type: object
      required:
      - data
      properties:
        data:
          type: object
          required:
          - id
          - timezone
          - snapshots
          - deltas
          properties:
            id:
              type: string
              format: uuid
            timezone:
              type: string
            snapshots:
              type: array
              description: Cumulative totals as recorded each day.
              items:
                $ref: '#/components/schemas/AnalyticsDay'
            deltas:
              type: array
              description: Growth per day.
              items:
                $ref: '#/components/schemas/AnalyticsDay'
    AnalyticsSummary:
      type: object
      required:
      - range
      - period
      - timezone
      - history_days
      - last_synced_at
      - totals
      - daily
      - content_performance
      - top_posts
      properties:
        range:
          $ref: '#/components/schemas/AnalyticsRange'
        period:
          type: object
          required:
          - start
          - end
          properties:
            start:
              type: string
              format: date
            end:
              type: string
              format: date
        timezone:
          type: string
        history_days:
          type: integer
          minimum: 1
        last_synced_at:
          type:
          - string
          - 'null'
          format: date-time
        totals:
          type: object
          required:
          - impressions
          - reach
          - views
          - engagements
          - likes
          - comments
          - shares
          - follows
          properties:
            impressions:
              $ref: '#/components/schemas/AnalyticsTotal'
            reach:
              $ref: '#/components/schemas/AnalyticsTotal'
            views:
              $ref: '#/components/schemas/AnalyticsTotal'
            engagements:
              $ref: '#/components/schemas/AnalyticsTotal'
            likes:
              $ref: '#/components/schemas/AnalyticsTotal'
            comments:
              $ref: '#/components/schemas/AnalyticsTotal'
            shares:
              $ref: '#/components/schemas/AnalyticsTotal'
            follows:
              $ref: '#/components/schemas/AnalyticsTotal'
        daily:
          type: array
          items:
            type: object
            required:
            - date
            - views
            - reach
            - likes
            - engagements
            - follows
            properties:
              date:
                type: string
                format: date
              views:
                type: integer
                minimum: 0
              reach:
                type: integer
                minimum: 0
              likes:
                type: integer
                minimum: 0
              engagements:
                type: integer
                minimum: 0
              follows:
                type: integer
                minimum: 0
        content_performance:
          type: array
          items:
            type: object
            required:
            - format
            - posts
            - engagements
            - average_engagements
            properties:
              format:
                $ref: '#/components/schemas/ContentFormat'
              posts:
                type: integer
                minimum: 0
              engagements:
                type: integer
                minimum: 0
              average_engagements:
                type: integer
                minimum: 0
        top_posts:
          type: array
          maxItems: 10
          items:
            type: object
            required:
            - id
            - social_account_id
            - platform
            - caption
            - platform_url
            - content_format
            - posted_at
            - engagements
            properties:
              id:
                type: string
                format: uuid
              social_account_id:
                type: string
                format: uuid
              platform:
                $ref: '#/components/schemas/Platform'
              caption:
                type: string
              platform_url:
                type:
                - string
                - 'null'
                format: uri
              content_format:
                $ref: '#/components/schemas/ContentFormat'
              posted_at:
                type:
                - string
                - 'null'
                format: date-time
              engagements:
                type: integer
                minimum: 0
    RateLimitError:
      allOf:
      - $ref: '#/components/schemas/Error'
      - type: object
        required:
        - retry_after
        properties:
          retry_after:
            type: integer
            minimum: 1
  responses:
    NotFound:
      description: The resource does not exist or belongs to another workspace.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: not_found
            message: The requested resource was not found.
    ServerError:
      description: Unexpected server failure. Internal details are never exposed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: server_error
            message: The request failed. Try again later.
    BadRequest:
      description: Malformed request, invalid idempotency key, or credential in the query string.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            queryCredential:
              value:
                code: credential_query_not_supported
                message: Credentials are not accepted in URLs. Use OAuth or the Authorization bearer header.
    Unauthorized:
      description: Missing, invalid, expired, revoked, or unbound API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: unauthenticated
            message: A valid API key is required.
    ValidationFailed:
      description: Request fields, platform capability, media, schedule, or quota validation failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationError'
    Forbidden:
      description: The key lacks an ability, onboarding is incomplete, or publish-now is disabled.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: forbidden
            message: This API token does not allow posts:write.
    Conflict:
      description: Resource state, idempotency payload, or in-progress idempotency conflict.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            idempotency:
              value:
                code: idempotency_conflict
                message: This Idempotency-Key was already used with a different request payload.
            mediaInUse:
              value:
                code: media_in_use
                message: Media attached to a post cannot be deleted.
    BillingRequired:
      description: The workspace does not have effective paid REST access.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: billing_access_required
            message: The REST API requires an active Solo, Pro, or Agency subscription.
    RateLimited:
      description: The per-key global or media-specific request limit was exceeded.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-RateLimit-Limit:
          $ref: '#/components/headers/XRateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/XRateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/XRateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitError'
          example:
            code: rate_limited
            message: Too many requests. Retry after 18 seconds.
            retry_after: 18
  headers:
    XRateLimitReset:
      description: Unix timestamp when the active limiting window resets.
      schema:
        type: integer
        format: int64
    XRateLimitRemaining:
      description: Requests remaining in the active limiting window.
      schema:
        type: integer
    XRateLimitLimit:
      description: Maximum requests in the active limiting window.
      schema:
        type: integer
    RetryAfter:
      description: Seconds until another request should be attempted.
      schema:
        type: integer
        minimum: 1
  parameters:
    AnalyticsAccountFilter:
      name: social_account_id
      in: query
      description: Limit to one connected account. Omit for all accounts.
      schema:
        type: string
        format: uuid
    Limit:
      name: limit
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 20
    Offset:
      name: offset
      in: query
      schema:
        type: integer
        minimum: 0
        default: 0
    AnalyticsRange:
      name: range
      in: query
      description: Defaults to `30d`. A range beyond the plan's history returns `403 analytics_history_limit`.
      schema:
        $ref: '#/components/schemas/AnalyticsRange'
    AnalyticsId:
      name: analytics
      in: path
      required: true
      description: Analytics record ID from the list or summary endpoints.
      schema:
        type: string
        format: uuid
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: pq_live_
      description: Workspace-scoped PostQuest API key sent only in the Authorization header.
x-refined-from:
- openapi.yaml
- post-quest-com-openapi.yaml