API
Telegram API
テレグラムは、メッセージ、チャンネル、グループ、音声ノート、ボット、メディアを共有する10億以上の毎月のアクティブユーザーを持ち、直接配信、コミュニティ管理、迅速なニュースオーディエンスにとって重要です。
APIリファレンス バージョン: 1.0.0 7 エンドポイント 認証
ベース URL
https://api.pressmonitor.com 認証
すべてのリクエストはベアラートークン認証を使用します。すべての呼び出しにAuthorizationヘッダーを追加してください。
Authorization: Bearer YOUR_API_KEY
x-subscription-id: YOUR_SUB_ID GET
/bot-info Bot情報
パラメータ
| 名前 | タイプ | 場所 | 必須 | 説明 |
|---|---|---|---|---|
| username | string | query | はい | ユーザー名 |
コード例
curl -X GET "https://api.pressmonitor.com/bot-info?username=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功
GET
/channel-info チャンネル情報
パラメータ
| 名前 | タイプ | 場所 | 必須 | 説明 |
|---|---|---|---|---|
| username | string | query | はい | ユーザー名 |
コード例
curl -X GET "https://api.pressmonitor.com/channel-info?username=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功
GET
/get-messages メッセージ取得
パラメータ
| 名前 | タイプ | 場所 | 必須 | 説明 |
|---|---|---|---|---|
| username | string | query | はい | ユーザー名 |
| offset | string | query | いいえ | オフセット |
コード例
curl -X GET "https://api.pressmonitor.com/get-messages?username=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功
GET
/group-info グループ情報
パラメータ
| 名前 | タイプ | 場所 | 必須 | 説明 |
|---|---|---|---|---|
| username | string | query | はい | ユーザー名 |
コード例
curl -X GET "https://api.pressmonitor.com/group-info?username=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功
GET
/search 検索
パラメータ
| 名前 | タイプ | 場所 | 必須 | 説明 |
|---|---|---|---|---|
| keyword | string | query | はい | キーワード |
コード例
curl -X GET "https://api.pressmonitor.com/search?keyword=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功
GET
/search-hashtag ハッシュタグ検索
パラメータ
| 名前 | タイプ | 場所 | 必須 | 説明 |
|---|---|---|---|---|
| hashtag | string | query | はい | ハッシュタグ |
| offset | string | query | いいえ | オフセット |
コード例
curl -X GET "https://api.pressmonitor.com/search-hashtag?hashtag=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功
GET
/user-info ユーザー情報
パラメータ
| 名前 | タイプ | 場所 | 必須 | 説明 |
|---|---|---|---|---|
| username | string | query | はい | ユーザー名 |
コード例
curl -X GET "https://api.pressmonitor.com/user-info?username=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功