Skip to main content
以下の表は、どの v2 エンドポイントがどの認証方式に対応するかを示しています。
エンドポイントOAuth 1.0a User ContextOAuth 2.0 App Only
OAuth 2.0
Authorization Code with PKCE
Tweet lookup

ID のリストで複数の Tweet を取得

GET /2/tweets

ID で単一の Tweet を取得

GET /2/tweets/:id


Scopes:

tweet.read

users.read
Manage Tweets

Tweet を投稿

POST /2/tweets

Tweet を削除

DELETE /2/tweets/:id


Scopes:

tweet.read

tweet.write

users.read
Timelines

ユーザーの Tweet タイムライン

GET /2/users/:id/tweets

ユーザーのメンションタイムライン

GET /2/users/:id/mentions

逆時系列のホームタイムライン

GET /2/users/:id/timelines/reverse_cronological




Scopes:

tweet.read

users.read



Scopes:

tweet.read

users.read
Recent search

過去 7 日間に公開された Tweet を検索

GET /2/tweets/search/recent


Scopes:

tweet.read

users.read
Full-archive search

Academic Research アクセスを持つユーザーのみ利用可能

Tweet の全アーカイブを検索

GET /2/tweets/search/all
Filtered stream

ストリームにルールを追加または削除

POST /2/tweets/search/stream/rules

ストリームのルールを取得

GET /2/tweets/search/stream/rules

ストリームに接続

GET /2/tweets/search/stream
Volume streams

すべての Tweet の約 1% をリアルタイムでストリーミング。

GET /2/tweets/sample/stream
Manage Retweets

Tweet を Retweet

POST /2/users/:id/retweets

Retweet を取り消し

DELETE /2/users/:id/retweets/:source_tweet_id


Scopes:

tweet.read

tweet.write

users.read
Retweets lookup

Tweet を Retweet したユーザー

GET /2/tweets/:id/retweeted_by


Scopes:

tweet.read

users.read
Bookmarks lookup

ブックマーク済みの Tweet を取得

GET /2/tweets/:id/bookmarks


Scopes:

tweet.read

users.read

bookmark.read
Manage Bookmarks

Tweet をブックマーク

POST /2/tweets/:id/bookmarks

Tweet のブックマークを解除

DELETE /2/users/:id/bookmarks:tweet_id


Scopes:

tweet.read

users.read

bookmark.write
Manage Likes

Tweet にいいね

POST /2/users/:id/likes

Tweet のいいねを取り消し

DELETE /2/users/:id/likes/:tweet_id


Scopes:

tweet.read

users.read

like.write
Likes lookup

Tweet にいいねしたユーザー

GET /2/tweets/:id/liking_users

ユーザーがいいねした Tweet

GET /2/users/:id/liked_tweets


Scopes:

tweet.read

users.read

like.read
Hide replies

Tweet への返信を非表示または非表示解除します。

PUT /2/tweets/:id/hidden


Scopes:

tweet.read

users.read

tweet.moderate.write
Users lookup

ID で複数のユーザーを取得

GET /2/users

ID で単一のユーザーを取得

GET /2/users/:id

ユーザー名で複数のユーザーを取得

GET /2/users/by

ユーザー名で単一のユーザーを取得

GET /2/users/by/username/:username

認証済みユーザーの情報を取得

GET /2/users/me


Scopes:

tweet.read

users.read
Manage follows

ユーザー ID が別のユーザーをフォロー

POST /2/users/:id/following

ユーザー ID が別のユーザーのフォローを解除

DELETE /2/users/:source_user_id/following/:target_user_id


Scopes:

tweet.read

users.read

follows.write
Follows lookup

ID でユーザーのフォロー中を取得

GET /2/users/:id/following

ID でユーザーのフォロワーを取得

GET /2/users/:id/followers


Scopes:

tweet.read

users.read

follows.read
Blocks lookup

指定されたユーザー ID がブロックしているユーザーのリストを返す

GET /2/users/:id/blocking


Scopes:

tweet.read

users.read

block.read
Manage Mutes

ユーザー ID が別のユーザーをミュート

POST /2/users/:id/muting

ユーザー ID が別のユーザーのミュートを解除

DELETE /2/users/:source_user_id/muting/:target_user_id


Scopes:

tweet.read

users.read

mute.write
Mutes lookup

指定されたユーザー ID がミュートしているユーザーのリストを返す

GET /2/users/:id/muting


Scopes:

tweet.read

users.read

mute.read
Spaces lookup

ID で Space を取得

GET /2/spaces/:id

複数の Spaces を取得

GET /2/spaces

ユーザー ID で作成された Spaces を検索

GET /2/spaces/by/creator_ids


Scopes:

tweet.read

users.read

space.read
Spaces lookup

Space のチケットを購入したユーザーを取得

GET /2/spaces/:id/buyers


Scopes:

tweet.read

users.read

space.read
Spaces search

指定した検索語に一致するライブまたは予約済みの Spaces を返します。

GET /2/spaces/search


Scopes:

tweet.read

users.read

space.read
List lookup

ID で特定のリストを取得

GET /2/lists/:id

ユーザーが所有する List を取得

GET /2/users/:id/owned_lists


Scopes:

tweet.read

users.read

list.read
Manage Lists

認証済みユーザーに代わって新しい List を作成

POST /2/lists


Scopes:

tweet.read

users.read

list.read

list.write
Manage Lists

認証済みユーザーが所有する List を削除

DELETE /2/lists/:id

認証済みユーザーが所有する List のメタデータを更新

PUT /2/lists/:id


Scopes:

tweet.read

users.read

list.write
List Tweets lookup

指定した List からの Tweet を取得

GET /2/lists/:id/tweets


Scopes:

tweet.read

users.read

list.read
List members lookup

指定した List のメンバーのリストを返す

GET /2/lists/:id/members

指定したユーザーがメンバーになっているすべての List を返す

GET /2/users/:id/list_memberships


Scopes:

tweet.read

users.read

list.read
Manage List members

認証済みユーザーが所有する List にメンバーを追加

POST /2/lists/:id/members

認証済みユーザーが所有する List からメンバーを削除

DELETE /2/lists/:id/members/:user_id


Scopes:

tweet.read

users.read

list.write
List follows lookup

指定した List のすべてのフォロワーを返す

GET /2/lists/:id/followers

指定したユーザーがフォローしているすべての List を返す

GET /2/users/:id/followed_lists


Scope