Number of APIs: 62
This is a Qodex Collection for the Twitter API v2 endpoints. Refer to the main Twitter API documentation for more details. If you have an API-related question, you can also discuss in the developer community forum. Go to the Collection and click You can also download this Collection from a GitHub repo here: https://github.com/twitterdev/Qodex-twitter-api This Collection includes a pre-configured Environment. You will need to set up the following variables in order to run each request (depending on the authentication type used by the request you are sending):Installation
Quick install
Run in Qodex
.Manual install
Environment
Name
Description
consumer_key
Your consumer key
consumer_secret
Your consumer secret
access_token
Your access token
token_secret
Your access token secret
bearer_token
Your bearer token
GET https://api.twitter.com/2/tweets/:id
This endpoint returns details about the Tweet specified by the requested ID.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/tweets?ids=
This endpoint returns details about up to 100 Tweets specified by the requested IDs.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/users/:id
This endpoint returns details about a user by ID.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/users?ids=
This endpoint returns details about up to 100 users by ID.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/users/by/username/:username
This endpoint returns details about a user by username.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/users/by?usernames=
This endpoint returns details about up to 100 users specified by username.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/me
This endpoint returns the information about an authorized user.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/users/:id/followers
Returns a list of users who are followers of the specified user ID.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/users/:id/following
Returns a list of users the specified user ID is following.
For full details, see the API reference for this endpoint.
POST https://api.twitter.com/2/users/:id/following
Allows a user ID to follow another user.
For full details, see the API reference for this endpoint.
DELETE https://api.twitter.com/2/users/:source_user_id/following/:target_user_id
Allows a user ID to unfollow another user.
For full details, see the API reference for this endpoint.
POST https://api.twitter.com/2/users/:id/blocking
Allows a user ID to block another user.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/users/:id/blocking
Returns a list of users who are blocked by the specified user ID.
For full details, see the API reference for this endpoint.
DELETE https://api.twitter.com/2/users/:source_user_id/blocking/:target_user_id
Allows a user ID to unblock another user.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/lists/:id
This endpoint returns details about the List specified by the requested ID
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/users/:id/owned_lists
This endpoint returns details on user owned Lists specified by the requested ID
For full details, see the API reference for this endpoint.
POST https://api.twitter.com/2/lists
Allows the authenticated user to create a new List.
For full details, see the API reference for this endpoint.
DELETE https://api.twitter.com/2/lists/:id
Allows the authenticated user to delete a list they own.
For full details, see the API reference for this endpoint.
PUT https://api.twitter.com/2/lists/:id
Allows the authenticated user to update a List they own.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/lists/:id/tweets
This endpoint returns all Tweets from a List specified by the requested ID
For full details, see the API reference for this endpoint.
POST https://api.twitter.com/2/lists/:id/members
Allows the authenticated user to add a member to a List they own.
For full details, see the API reference for this endpoint.
DELETE https://api.twitter.com/2/lists/:id/members/:user_id
Allows the authenticated user to remove a member from a List they own.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/lists/:id/members
This endpoint returns member details from the List specified by the requested ID
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/users/:id/list_memberships
This endpoint returns details on Lists a user is a member of specified by the requested ID
For full details, see the API reference for this endpoint.
POST https://api.twitter.com/2/users/:id/followed_lists
Allows the authenticated user to follow a specified List.
For full details, see the API reference for this endpoint.
DELETE https://api.twitter.com/2/users/:id/followed_lists/:list_id
Allows the authenticated user to unfollow a specified List.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/lists/:id/followers
This endpoint returns follower details from the List specified by the requested ID
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/users/:id/followed_lists
This endpoint returns details on Lists a user follows specified by the requested ID
For full details, see the API reference for this endpoint.
POST https://api.twitter.com/2/users/:id/pinned_lists
Allows the authenticated user to pin a specified List.
For full details, see the API reference for this endpoint.
DELETE https://api.twitter.com/2/lists/:id/pinned_lists/:list_id
Allows the authenticated user to unpin a specified List.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/users/:id/pinned_lists
This endpoint returns details on a user's pinned Lists specified by the requested ID
For full details, see the API reference for this endpoint.
POST https://api.twitter.com/2/tweets
Allows an authenticated user to create a Tweet.
You can add parameters to post polls, quote Tweets, Tweet with reply settings, and Tweet to Super Followers in addition to other features.
For full details, see the API reference for this endpoint.
DELETE https://api.twitter.com/2/tweets/:id
Allows an authenticated user to delete a Tweet.
For full details, see the API reference for this endpoint.
POST https://api.twitter.com/2/users/:id/muting
Allows a user ID to mute another user.
For full details, see the API reference for this endpoint.
DELETE https://api.twitter.com/2/users/:source_user_id/muting/:target_user_id
Allows a user ID to unmute another user.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/users/:id/muting
Returns a list of users who are muted by the specified user ID.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/users/:id/tweets
Returns the most recent Tweets composed by a single user specified by the requested user ID.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/users/:id/mentions
Returns the most recent Tweets mentioning a single user specified by the requested user ID.
For full details, see the API reference for this endpoint.
PUT https://api.twitter.com/2/tweets/:id/hidden
Provides the ability to unhide a reply to a Tweet.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/tweets/search/recent?query=
Search for public Tweets created in the last 7 days.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/tweets/search/all?query=
Search across the complete history of public Tweets matching a search query; since the first Tweet was created in March 2006.
For full details, see the API reference for this endpoint.
NOTE this endpoint requires access via the Academic Research product track
GET https://api.twitter.com/2/tweets/counts/recent?query=
Search for public Tweets created in the last 7 days.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/tweets/counts/all?query=
Search across the complete history of public Tweets matching a search query; since the first Tweet was created in March 2006.
For full details, see the API reference for this endpoint.
NOTE this endpoint requires access via the Academic Research product track
POST https://api.twitter.com/2/tweets/search/stream/rules
Delete filter rules. To delete one or more rules, submit a delete object payload with an array of rule values to delete.
GET https://api.twitter.com/2/tweets/search/stream/rules
Returns a list of filter rules currently active on the streaming endpoint.
GET https://api.twitter.com/2/tweets/search/stream
Streams Tweets in real-time based on a specific set of filter rules.
Please note streaming responses are currently not supported in Qodex. Use this to help form your request, then click on Code > cURL. Copy the cURL command and paste in terminal to view the response.
GET https://api.twitter.com/2/tweets/sample/stream
Stream, in real-time, roughly a 1% sample of all public Tweets.
Please note streaming responses are currently not supported in Qodex. Use this to help form your request, then click on Code > cURL. Copy the cURL command and paste in terminal to view the response.
GET https://api.twitter.com/2/spaces/:id?space.fields=&expansions=&user.fields=&topic.fields
This endpoint returns information about a single Space with the specified ID.
GET https://api.twitter.com/2/spaces?ids=&space.fields=&expansions=&user.fields=&topic.fields
This endpoint returns information about one or more Spaces with the specified comma-separated list of IDs. You can request up to 100 Spaces in a single request
GET https://api.twitter.com/2/spaces/by/creator_id?user_ids=&space.fields=&expansions=&user.fields=&topic.fields
This endpoint returns information about a user. Specify user by username.
GET https://api.twitter.com/2/spaces/:id/buyers
Returns a list of users who are blocked by the specified user ID.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/spaces/search?query=&state=&space.fields=&expansions=&user.fields&topic.fields
This endpoint returns Spaces matching the specified keyword query.
POST https://api.twitter.com/2/compliance/jobs
GET https://api.twitter.com/2/compliance/jobs?type=tweets
GET https://api.twitter.com/2/compliance/jobs/:id
POST https://api.twitter.com/2/users/:id/likes
Allows an authenticated user to like a Tweet.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/users/:id/liked_tweets
Returns a list of Tweets that have been liked by a specified user ID.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/tweets/:id/liking_users
Returns a list of users who have liked a specified Tweet ID.
For full details, see the API reference for this endpoint.
DELETE https://api.twitter.com/2/users/:id/likes/:tweet_id
Allows an authenticated user to unlike a Tweet.
For full details, see the API reference for this endpoint.
POST https://api.twitter.com/2/users/:id/retweets
Allows an authenticated user to Retweet a Tweet.
For full details, see the API reference for this endpoint.
GET https://api.twitter.com/2/tweets/:id/retweeted_by
Returns a list of users who have liked a specified Tweet ID.
For full details, see the API reference for this endpoint.
DELETE https://api.twitter.com/2/users/:id/retweets/:source_tweet_id
Allows an authenticated user to unlike a Tweet.
For full details, see the API reference for this endpoint.
ENDPOINTS