MCP
X APIMCPサーバー
Xは短文投稿やライブ実況、動画、速報の会話を通じて月約6億人にリーチし、リアルタイムのコミュニケーションやメディア露出、評判管理に不可欠です。
MCP バージョン: 1.0.0 38 MCPツール 認証
ベース URL
https://mcp.pressmonitor.com/mcp 認証
MCP呼び出しは、JSON-RPC 2.0リクエストを介してBearerトークンを使用します。
Authorization: Bearer YOUR_TOKEN autocomplete
オートコンプリート
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| value | string | いいえ | 値 |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "autocomplete",
"arguments": {}
},
"id": 1
}' communityTopics
コミュニティトピック
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "communityTopics",
"arguments": {}
},
"id": 1
}' CommunityTweets
コミュニティツイート
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| communityId | string | いいえ | コミュニティID |
| count | integer | いいえ | 返す結果数 |
| cursor | integer | いいえ | 次ページ用ページネーションカーソル |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "CommunityTweets",
"arguments": {}
},
"id": 1
}' fetchPopularCommunities
人気コミュニティを取得
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| topicId | string | いいえ | トピックID |
| count | integer | いいえ | 返す結果数 |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "fetchPopularCommunities",
"arguments": {}
},
"id": 1
}' followers
フォロワー
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| user | string | いいえ | ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用 |
| count | integer | いいえ | 返す結果数 |
| cursor | integer | いいえ | 次ページ用ページネーションカーソル |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "followers",
"arguments": {}
},
"id": 1
}' followersIDs
フォロワーID
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| username | string | いいえ | ユーザー名(@記号なしのスクリーン名、例:'elonmusk') |
| count | integer | いいえ | 返す結果数 |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "followersIDs",
"arguments": {}
},
"id": 1
}' followings
フォロー中
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| user | string | いいえ | ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用 |
| count | integer | いいえ | 返す結果数 |
| cursor | integer | いいえ | 次ページ用ページネーションカーソル |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "followings",
"arguments": {}
},
"id": 1
}' followingsIDs
フォロー中のID
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| username | string | いいえ | ユーザー名(@記号なしのスクリーン名、例:'elonmusk') |
| count | integer | いいえ | 返す結果数 |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "followingsIDs",
"arguments": {}
},
"id": 1
}' getUsers
ユーザー取得
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| users | string | いいえ | ユーザー |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "getUsers",
"arguments": {}
},
"id": 1
}' groupTweets
グループツイート
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| communityId | string | いいえ | コミュニティID |
| rankingMode | string | いいえ | ランキングモード |
| searchType | string | いいえ | 検索タイプ |
| count | integer | いいえ | 返す結果数 |
| cursor | integer | いいえ | 次ページ用ページネーションカーソル |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "groupTweets",
"arguments": {}
},
"id": 1
}' highlights
ハイライト
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| user | string | いいえ | ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用 |
| count | integer | いいえ | 返す結果数 |
| cursor | integer | いいえ | 次ページ用ページネーションカーソル |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "highlights",
"arguments": {}
},
"id": 1
}' jobsDetails
求人詳細
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| jobId | string | いいえ | 求人ID |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "jobsDetails",
"arguments": {}
},
"id": 1
}' jobsLocationsSuggest
求人場所の提案
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| query | string | いいえ | 検索クエリ |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "jobsLocationsSuggest",
"arguments": {}
},
"id": 1
}' jobsSearch
求人検索
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| employment_type | string | いいえ | 雇用形態 |
| job_location_id | string | いいえ | 求人場所ID |
| job_location_type | string | いいえ | 求人場所タイプ |
| keyword | string | いいえ | キーワード |
| seniority_level | string | いいえ | シニアリティレベル |
| count | integer | いいえ | 返す結果数 |
| cursor | integer | いいえ | 次ページ用ページネーションカーソル |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "jobsSearch",
"arguments": {}
},
"id": 1
}' likes
いいね
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| pid | string | いいえ | Pid |
| count | integer | いいえ | 返す結果数 |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "likes",
"arguments": {}
},
"id": 1
}' listDetails
リスト詳細
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| listId | string | いいえ | リストID |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "listDetails",
"arguments": {}
},
"id": 1
}' listTimeline
リストタイムライン
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| listId | string | いいえ | リストID |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "listTimeline",
"arguments": {}
},
"id": 1
}' listTweets
リストツイート
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| listId | string | いいえ | リストID |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "listTweets",
"arguments": {}
},
"id": 1
}' orgAffiliates
組織関連
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| user | string | いいえ | ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用 |
| count | integer | いいえ | 返す結果数 |
| cursor | integer | いいえ | 次ページ用ページネーションカーソル |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "orgAffiliates",
"arguments": {}
},
"id": 1
}' quotes
引用ツイート
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| pid | string | いいえ | Pid |
| count | integer | いいえ | 返す結果数 |
| cursor | integer | いいえ | 次ページ用ページネーションカーソル |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "quotes",
"arguments": {}
},
"id": 1
}' retweets
リツイート
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| pid | string | いいえ | Pid |
| count | integer | いいえ | 返す結果数 |
| cursor | integer | いいえ | 次ページ用ページネーションカーソル |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "retweets",
"arguments": {}
},
"id": 1
}' search
検索
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| query | string | いいえ | 検索クエリ |
| type | string | いいえ | タイプ |
| count | integer | いいえ | 返す結果数 |
| cursor | string | いいえ | 次ページ用ページネーションカーソル |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "search",
"arguments": {}
},
"id": 1
}' searchCommunity
コミュニティ検索
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| query | string | いいえ | 検索クエリ |
| count | integer | いいえ | 返す結果数 |
| cursor | integer | いいえ | 次ページ用ページネーションカーソル |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "searchCommunity",
"arguments": {}
},
"id": 1
}' searchLists
リスト検索
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| query | string | いいえ | 検索クエリ |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "searchLists",
"arguments": {}
},
"id": 1
}' searchold
旧検索
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| query | string | いいえ | 検索クエリ |
| type | string | いいえ | タイプ |
| count | integer | いいえ | 返す結果数 |
| cursor | integer | いいえ | 次ページ用ページネーションカーソル |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "searchold",
"arguments": {}
},
"id": 1
}' spaces
スペース
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| id | string | いいえ | ID |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "spaces",
"arguments": {}
},
"id": 1
}' trends
トレンド
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| woeid | string | いいえ | Woeid |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "trends",
"arguments": {}
},
"id": 1
}' trendsLocations
トレンド場所
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "trendsLocations",
"arguments": {}
},
"id": 1
}' tweet
ツイート
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| pid | string | いいえ | Pid |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "tweet",
"arguments": {}
},
"id": 1
}' tweetByIds
IDによるツイート取得
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tweetIDs | string | いいえ | ツイートID |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "tweetByIds",
"arguments": {}
},
"id": 1
}' user
ユーザー名でプロファイルを検索。数値ユーザーID(rest_id)などのユーザー詳細を返す
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| username | string | いいえ | ユーザー名(@記号なしのスクリーン名、例:'elonmusk') |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "user",
"arguments": {}
},
"id": 1
}' userLikes
ユーザーのいいね
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| user | string | いいえ | ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用 |
| count | integer | いいえ | 返す結果数 |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "userLikes",
"arguments": {}
},
"id": 1
}' userMedia
ユーザーメディア
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| user | string | いいえ | ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用 |
| count | integer | いいえ | 返す結果数 |
| cursor | integer | いいえ | 次ページ用ページネーションカーソル |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "userMedia",
"arguments": {}
},
"id": 1
}' userReplies
ユーザー返信
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| user | string | いいえ | ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用 |
| count | integer | いいえ | 返す結果数 |
| cursor | integer | いいえ | 次ページ用ページネーションカーソル |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "userReplies",
"arguments": {}
},
"id": 1
}' userRepliesV2
ユーザー返信 V2
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| user | string | いいえ | ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用 |
| count | integer | いいえ | 返す結果数 |
| cursor | integer | いいえ | 次ページ用ページネーションカーソル |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "userRepliesV2",
"arguments": {}
},
"id": 1
}' userTweets
数値ユーザーIDでユーザーのツイートを取得。ユーザー名でツイートを得るには先に'user'エンドポイントでIDを調べること
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| user | string | いいえ | ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用 |
| count | integer | いいえ | 返す結果数 |
| cursor | integer | いいえ | 次ページ用ページネーションカーソル |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "userTweets",
"arguments": {}
},
"id": 1
}' verifiedFollowers
認証済みフォロワー
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| user | string | いいえ | ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用 |
| count | integer | いいえ | 返す結果数 |
| cursor | integer | いいえ | 次ページ用ページネーションカーソル |
コード例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "verifiedFollowers",
"arguments": {}
},
"id": 1
}'
comments
コメント
引数
stringstringintegerintegerコード例