株式会社キャリースルー Analytics API

投稿の指標と取得状況

GitHub OpenAPI

Operations 1

GET /analytics/posts 連携したSNSアカウントの投稿と指標を取得 #

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-mesh-com:post-mesh-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-mesh-com-analytics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ポストメッシュ Analytics API
  description: 'ポストメッシュは、複数のSNSプラットフォームに同時投稿できるサービスです。

    この API を使って、SNS アカウントの連携管理、メディアのアップロード、投稿の作成・管理を行えます。


    ## 対応プラットフォーム


    YouTube / TikTok / Instagram / Threads / X (Twitter) / Facebook


    ## 認証


    すべての API エンドポイントには、`Authorization` ヘッダーに Bearer トークン(API キー)が必要です。


    ```

    Authorization: Bearer YOUR_API_KEY

    ```


    API キーはポストメッシュダッシュボードから発行できます。


    ## 共通仕様


    - リクエスト・レスポンスのフィールド名はすべて **snake_case** です。

    - タイムスタンプはすべて **ISO 8601** 形式(例: `2026-02-17T10:00:00.000Z`)です。

    - 投稿一覧エンドポイントはページネーション付きで結果を返します。'
  version: 1.0.0
servers:
- url: https://post-mesh.com/api/v1
  description: 本番環境
security:
- apiKey: []
tags:
- name: Analytics
  description: 投稿の指標と取得状況
paths:
  /analytics/posts:
    get:
      tags:
      - Analytics
      summary: 連携したSNSアカウントの投稿と指標を取得
      description: 'プロプランで使えます。スタータープランでは403(ANALYTICS_NOT_AVAILABLE)を返します。

        初回はcursorを省略。続きはpagination.next_cursorを同じ連携・件数のcursorに指定します。

        page指定はできません。順序は取得開始時に固定し、末尾はnext_cursorがnullになります。

        更新対象の古い指標だけを同期更新し、新投稿の探索は独立して判定します。

        Threadsは1投稿目のみ。部分失敗でも成功分と保存済みの値を返します。'
      operationId: listAnalyticsPosts
      parameters:
      - name: connection_id
        in: query
        required: true
        description: 連携一覧が返す連携のID
        schema:
          type: string
      - name: cursor
        in: query
        description: 直前の応答のnext_cursor。初回は省略
        schema:
          type: string
      - name: limit
        in: query
        description: 1回の件数。既定・最大20
        schema:
          type: integer
          default: 20
          minimum: 1
          maximum: 20
      responses:
        '200':
          description: 投稿と指標の一覧
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - pagination
                - failed_connections
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        connection_id:
                          type: string
                        platform:
                          type: string
                          enum:
                          - youtube
                          - tiktok
                          - instagram
                          - threads
                          - facebook
                        platform_post_id:
                          type: string
                        kind:
                          type:
                          - string
                          - 'null'
                        caption:
                          type:
                          - string
                          - 'null'
                        published_at:
                          type: string
                          format: date-time
                        url:
                          type:
                          - string
                          - 'null'
                        thumbnail_url:
                          type:
                          - string
                          - 'null'
                        metrics:
                          type: object
                          description: SNSごとの指標。取得できる指標の未取得・取得失敗はnull。取得できない指標と、その投稿で値が入ることのない指標(Instagramのリールだけ・フィード投稿だけの指標など)はキーを含めない。Instagramのaverage_watch_time_msはミリ秒、skip_rateは%の数値
                          additionalProperties:
                            type:
                            - number
                            - 'null'
                        fetched_at:
                          type:
                          - string
                          - 'null'
                          format: date-time
                        metrics_failure:
                          type:
                          - string
                          - 'null'
                  pagination:
                    type: object
                    required:
                    - total
                    - limit
                    - cursor
                    - next_cursor
                    properties:
                      total:
                        type: integer
                      limit:
                        type: integer
                      cursor:
                        type: string
                      next_cursor:
                        type:
                        - string
                        - 'null'
                  failed_connections:
                    type: array
                    items:
                      type: object
                      properties:
                        connection_id:
                          type: string
                        platform:
                          type: string
                        reason:
                          type: string
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: プロプランでない組織からの呼び出し(ANALYTICS_NOT_AVAILABLE)
        '404':
          description: 指定した連携が見つからない
components:
  schemas:
    Error:
      type: object
      description: エラーレスポンス
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: 'エラーコード。


                - `VALIDATION_ERROR`(400)— リクエストのバリデーションに失敗

                - `TIKTOK_PRIVACY_LEVEL_UNAVAILABLE`(400)— `POST /posts`で、そのTikTokアカウントでは選べない`tiktok_privacy_level`を指定した

                - `UNAUTHORIZED`(401)— API キーが未指定・無効・失効済み

                - `SUBSCRIPTION_REQUIRED`(403)— 有効なサブスクリプションが必要

                - `NOT_FOUND`(404)— リソースが見つからない

                - `INSIGHTS_NOT_AVAILABLE`(403)— アナリティクス機能の利用資格が無い

                - `ANALYTICS_NOT_AVAILABLE`(403)— `GET /analytics/posts`で、プロプランでない組織から呼び出した

                - `POSTING_READINESS_RECONNECT_REQUIRED`(409)— `POST /posts`で、投稿先のSNS連携が切れており再連携が必要

                - `POSTING_READINESS_UNAVAILABLE`(409)— `POST /posts`で、SNS側の一時的なエラーにより投稿準備を確認できなかった

                - `X_MONTHLY_POST_LIMIT_REACHED`(409)— `POST /posts`で、投稿予定月のXへの投稿がプランの月間上限(スタータープラン月30件、プロプラン月300件)か、プロプランのリンク付き投稿の上限(月50件)を超える(1件はXへの1ポスト。Xアカウントごと、スレッドはポストごとに数え、日本時間の月で区切る)

                - `CONFLICT`(409)— `DELETE /posts/{id}`で、処理中・キャンセル済みなどでキャンセルできない

                - `INTERNAL_ERROR`(500)— 内部サーバーエラー

                '
              enum:
              - VALIDATION_ERROR
              - TIKTOK_PRIVACY_LEVEL_UNAVAILABLE
              - UNAUTHORIZED
              - SUBSCRIPTION_REQUIRED
              - NOT_FOUND
              - INSIGHTS_NOT_AVAILABLE
              - ANALYTICS_NOT_AVAILABLE
              - POSTING_READINESS_RECONNECT_REQUIRED
              - POSTING_READINESS_UNAVAILABLE
              - X_MONTHLY_POST_LIMIT_REACHED
              - CONFLICT
              - INTERNAL_ERROR
            message:
              type: string
              description: エラーの詳細メッセージ
          required:
          - code
          - message
      required:
      - error
  responses:
    ValidationError:
      description: リクエストのバリデーションに失敗しました
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: VALIDATION_ERROR
              message: targets must be a non-empty array
    Unauthorized:
      description: API キーが未指定または無効です
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: UNAUTHORIZED
              message: Missing or invalid Authorization header
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'API キーを Bearer トークンとして送ります。API キーはポストメッシュダッシュボードの「API キー」画面から発行できます。


        ```

        Authorization: Bearer YOUR_API_KEY

        ```

        '