← すべての API を見る

Telegram comments API

REST 呼び出し1回で Telegram の comments データを取得——全プラットフォーム共通の安定した JSON スキーマに正規化。

  • 公開エンドポイント 1 件
  • GET /v1/telegram/channels/{username}/posts/{id}/comments

契約サマリー(英語): List Telegram message comments (capability telegram.comments)

正規化されたレスポンスエンティティ
telegram/comments
capability
telegram.comments

すべてのレスポンスには新鮮度(cache / default / live)と課金メタデータも含まれます。

活用シーン

  • 構造化された {{platform}} 投稿(本文・指標・タイムスタンプ・メディア参照)でコンテンツ分析パイプラインを稼働。
  • 原文とエンゲージメント数が必要なモデレーション・調査・モニタリングのワークフローを支えます。
  • 脆い画面スクレイピングではなく、安定した正規化 JSON で {{platform}} コンテンツをアーカイブ。

レスポンスフィールド

Telegram telegram.comments response (normalized envelope)

Response envelope of the /v1/telegram telegram.comments capability. Cursor is opaque and platform-independent; page size follows the request's `limit` parameter (1..100, default 20).

フィールド型必須説明
datacomment[]必須—
next_cursorstring | null必須Opaque pagination cursor; null when the list is exhausted.
meta.request_idstring必須—
meta.freshness.modecache | default | live必須—
meta.freshness.age_secondsinteger | null任意—
meta.freshness.source_layercache | db | upstream必須—
meta.freshness.staleboolean任意—
meta.billing.cache_hitboolean必須—
meta.billing.amount_creditsinteger必須Credits actually charged for this request (the settlement unit; 1 credit = $0.0001, permanent).

フィールドの注記は契約英語の原文のまま表示されます。

レスポンスメタデータ

フィールド型必須説明
modecache | default | live必須Effective mode after merging param > max_age > source policy (D-004).
age_secondsinteger | null任意Age of served data; null when unknown.
source_layercache | db | upstream必須Which layer served the response (PRD §10).
staleboolean任意True when stale data was served under stale_if_error / SWR (D-004).
billing.amount_creditsinteger必須Micro-USD (1e-6 USD) actually charged for this request.
billing.cache_hitboolean必須—

フィールドの注記は契約英語の原文のまま表示されます。

リクエストとレスポンスの例

GET/v1/telegram/channels/{username}/posts/{id}/comments
curl -H "Authorization: Bearer $MESHDATA_API_KEY" \
  "https://api.fetchpi.com/v1/telegram/channels/newdev/posts/1842951234567890123/comments"
{
  "data": [
    {
      "id": "8358000000002001",
      "platform": "telegram",
      "type": "comment",
      "post_id": "8359000000001002",
      "author": {
        "id": "8355000200",
        "username": "tg_fan",
        "display_name": "TG 网友",
        "verified": false
      },
      "text": "讲得清楚,赞。",
      "created_at": "2026-09-16T12:01:22Z",
      "metrics": {
        "likes": 8,
        "replies": 0
      },
      "fetched_at": "2026-09-21T09:00:00Z"
    }
  ],
  "next_cursor": null,
  "meta": {
    "request_id": "req_01HTXQ8Z9HTQ",
    "freshness": {
      "mode": "default",
      "age_seconds": 0,
      "source_layer": "upstream",
      "stale": false
    },
    "billing": {
      "amount_credits": 200,
      "cache_hit": false
    }
  }
}

無料デモ

無料アカウントを作成して API キーを取得すれば、ブラウザ版 Playground からこのエンドポイントを呼び出せます。

Playground で試す

このエンドポイントのパラメータ表・エラーコード・レスポンスの詳細は API ドキュメントにあります。

エンドポイントリファレンスを開く

よくある質問

レスポンスにはどんなコンテンツ項目が含まれますか?

正規化されたコンテンツエンティティ(本文・投稿者・タイムスタンプ・エンゲージメント指標・メディア参照)を下記フィールド表の定義どおりに返し、新鮮度と課金メタデータも付きます。

このエンドポイントを無料で試せますか?

はい——アカウント登録後に API キーを取得すれば、コンソールの Playground から呼び出せます。

comments ケイパビリティの課金は?

Data API はリクエスト単位のクレジット課金で、cache/live の新鮮度により倍率が変わります。最新のケイパビリティ別価格は料金ページをご確認ください。

料金

リクエスト単位のクレジット課金、cache/live の新鮮度オプション対応——最新価格は料金ページをご確認ください。