プラットフォームインテリジェンス API

X(旧Twitter) API

Xは短文投稿やライブ実況、動画、速報の会話を通じて月約6億人にリーチし、リアルタイムのコミュニケーションやメディア露出、評判管理に不可欠です。

APIリファレンス バージョン: 1.0.0 38 エンドポイント 認証
X API

ベース URL

https://api.pressmonitor.com/x/v1

認証

すべてのリクエストはベアラートークン認証を使用します。すべての呼び出しにAuthorizationヘッダーを追加してください。

Authorization: Bearer YOUR_TOKEN
GET /autocomplete

オートコンプリート

Autocomplete

パラメータ

名前 タイプ 場所 必須 説明
value string query はい
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/autocomplete?value=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /comments

コメント

Comments

パラメータ

名前 タイプ 場所 必須 説明
pid string query はい Pid
ranking_mode string query はい ランキングモード
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/comments?pid=SOME_STRING_VALUE&ranking_mode=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /community-topics

コミュニティトピック

Community Topics

パラメータ

名前 タイプ 場所 必須 説明
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/community-topics?count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /community-tweets

コミュニティツイート

Community Tweets

パラメータ

名前 タイプ 場所 必須 説明
communityId string query はい コミュニティID
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/community-tweets?communityId=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /fetch-popular-communities

人気コミュニティを取得

Fetch Popular Communities

パラメータ

名前 タイプ 場所 必須 説明
topicId string query はい トピックID
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/fetch-popular-communities?topicId=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /followers

フォロワー

Followers

パラメータ

名前 タイプ 場所 必須 説明
user string query はい ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/followers?user=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /followers-ids

フォロワーID

Followers I Ds

パラメータ

名前 タイプ 場所 必須 説明
username string query はい ユーザー名(@記号なしのスクリーン名、例:'elonmusk')
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/followers-ids?username=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /followings

フォロー中

Followings

パラメータ

名前 タイプ 場所 必須 説明
user string query はい ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/followings?user=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /followings-ids

フォロー中のID

Followings I Ds

パラメータ

名前 タイプ 場所 必須 説明
username string query はい ユーザー名(@記号なしのスクリーン名、例:'elonmusk')
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/followings-ids?username=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /get-users

ユーザー取得

Get Users

パラメータ

名前 タイプ 場所 必須 説明
users string query はい ユーザー
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/get-users?users=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /group-tweets

グループツイート

Group Tweets

パラメータ

名前 タイプ 場所 必須 説明
communityId string query はい コミュニティID
rankingMode string query はい ランキングモード
searchType string query はい 検索タイプ
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/group-tweets?communityId=SOME_STRING_VALUE&rankingMode=SOME_STRING_VALUE&searchType=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /highlights

ハイライト

Highlights

パラメータ

名前 タイプ 場所 必須 説明
user string query はい ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/highlights?user=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /jobs-details

求人詳細

Jobs Details

パラメータ

名前 タイプ 場所 必須 説明
jobId string query はい 求人ID
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/jobs-details?jobId=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /jobs-locations-suggest

求人場所の提案

Jobs Locations Suggest

パラメータ

名前 タイプ 場所 必須 説明
query string query はい 検索クエリ
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/jobs-locations-suggest?query=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /jobs-search

求人検索

Jobs Search

パラメータ

名前 タイプ 場所 必須 説明
employment_type string query はい 雇用形態
job_location_id string query はい 求人場所ID
job_location_type string query はい 求人場所タイプ
keyword string query はい キーワード
seniority_level string query はい シニアリティレベル
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/jobs-search?employment_type=SOME_STRING_VALUE&job_location_id=SOME_STRING_VALUE&job_location_type=SOME_STRING_VALUE&keyword=SOME_STRING_VALUE&seniority_level=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /likes

いいね

Likes

パラメータ

名前 タイプ 場所 必須 説明
pid string query はい Pid
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/likes?pid=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /list-details

リスト詳細

List Details

パラメータ

名前 タイプ 場所 必須 説明
listId string query はい リストID
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/list-details?listId=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /list-timeline

リストタイムライン

List Timeline

パラメータ

名前 タイプ 場所 必須 説明
listId string query はい リストID
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/list-timeline?listId=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /list-tweets

リストツイート

List Tweets

パラメータ

名前 タイプ 場所 必須 説明
list_id string query はい リストID
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/list-tweets?list_id=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /org-affiliates

組織関連

Org Affiliates

パラメータ

名前 タイプ 場所 必須 説明
user string query はい ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/org-affiliates?user=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /quotes

引用ツイート

Quotes

パラメータ

名前 タイプ 場所 必須 説明
pid string query はい Pid
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/quotes?pid=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /retweets

リツイート

Retweets

パラメータ

名前 タイプ 場所 必須 説明
pid string query はい Pid
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/retweets?pid=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /search-community

コミュニティ検索

Search Community

パラメータ

名前 タイプ 場所 必須 説明
query string query はい 検索クエリ
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/search-community?query=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /search-lists

リスト検索

Search Lists

パラメータ

名前 タイプ 場所 必須 説明
query string query はい 検索クエリ
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/search-lists?query=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /searchold

旧検索

Searchold

パラメータ

名前 タイプ 場所 必須 説明
query string query はい 検索クエリ
type string query はい タイプ
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/searchold?query=SOME_STRING_VALUE&type=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /spaces

スペース

Spaces

パラメータ

名前 タイプ 場所 必須 説明
id string query はい ID
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/spaces?id=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /trends-locations

トレンド場所

Trends Locations

パラメータ

名前 タイプ 場所 必須 説明
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/trends-locations?count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /tweet

ツイート

Tweet

パラメータ

名前 タイプ 場所 必須 説明
pid string query はい Pid
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/tweet?pid=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /tweet-by-ids

IDによるツイート取得

Tweet By Ids

パラメータ

名前 タイプ 場所 必須 説明
tweetIDs string query はい ツイートID
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/tweet-by-ids?tweetIDs=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /user

ユーザー

User

パラメータ

名前 タイプ 場所 必須 説明
username string query はい ユーザー名(@記号なしのスクリーン名、例:'elonmusk')
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/user?username=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /user-likes

ユーザーのいいね

User Likes

パラメータ

名前 タイプ 場所 必須 説明
user string query はい ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/user-likes?user=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /user-media

ユーザーメディア

User Media

パラメータ

名前 タイプ 場所 必須 説明
cusor string query はい カーソル
user string query はい ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/user-media?cusor=SOME_STRING_VALUE&user=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /user-replies

ユーザー返信

User Replies

パラメータ

名前 タイプ 場所 必須 説明
user string query はい ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/user-replies?user=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /user-replies-v2

ユーザー返信 V2

User Replies V2

パラメータ

名前 タイプ 場所 必須 説明
user string query はい ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/user-replies-v2?user=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /user-tweets

ユーザーツイート

User Tweets

パラメータ

名前 タイプ 場所 必須 説明
user string query はい ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/user-tweets?user=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功
GET /verified-followers

認証済みフォロワー

Verified Followers

パラメータ

名前 タイプ 場所 必須 説明
user string query はい ユーザー名ではなく数値ユーザーID。ユーザー名からIDを調べるには'user'エンドポイントを使用
count integer query いいえ 返す結果数
cursor integer query いいえ 次ページ用ページネーションカーソル

コード例

curl --request GET \ --url 'https://api.pressmonitor.com/x/v1/verified-followers?user=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&cursor=SOME_INTEGER_VALUE'

レスポンス

200 成功