-
Notifications
You must be signed in to change notification settings - Fork 3
Info: Available Twitter API V2 Endpoints
Matthew R. DeVerna edited this page Aug 27, 2021
·
7 revisions
Below is a list of the available Twitter endpoints. What is supported by osometweet
is checked off.
Note: Twitter releases new endpoints on a rolling basis. As a result, the below list may not include all of Twitter's endpoints, however, all methods available within the
osometweet
packages are checked off.
If there is an endpoint that is not supported by osometweet
that you would like us to support, please open an issue to let us know (or submit a pull request!).
- Retrieve multiple Tweets with a list of IDs:
/2/tweets
(reference)
- Retrieve a single Tweet with an ID:
/2/tweets/:id
(reference)- No reason to support this endpoint
- Recent Search: Return Tweets from the last 7 days that match a search query:
/2/tweets/search/recent
(reference) - Full Archive Search: Return Tweets from any period of time match a search query:
/2/tweets/search/all
(reference)
- Recent Counts: Returns the count of Tweets from the last seven days that match a search query:
/2/tweets/counts/recent
(reference) - Full Archive Counts: Returns the count of the complete history of public Tweets matching a search query; since the first Tweet was created March 26, 2006:
/2/tweets/counts/all
(reference)
- Return most recent Tweets composed by a specified user ID:
/2/users/:id/tweets
(reference) - Returns most recent Tweets mentioning a specified user ID:
/2/users/:id/mentions
(reference)
- Add or delete rules from your stream:
/2/tweets/search/stream/rules
(reference) - Retrieve your stream's rules:
/2/tweets/search/stream/rules
(reference) - Connect to the stream:
/2/tweets/search/stream
(reference)
- Stream about 1% of all Tweets in real-time:
/2/tweets/sample/stream
(reference)
- Get information about who has Retweeted a Tweet
/2/tweets/:id/retweeted_by
(reference) - Causes the user ID identified in the path parameter to Retweet the target Tweet:
/2/users/:id/retweets
(POST) (reference) - Allows a user or authenticated user ID to remove a Retweet of a Tweet:
/2/users/:id/retweets/:source_tweet_id
(DELETE) (reference)
- Get information about a Tweet’s liking users:
/2/tweets/:id/liking_users
(reference) - Get information about a user’s liked Tweets:
/2/users/:id/liked_tweets
(reference) - Causes the user ID identified in the path parameter to Like the target Tweet:
/2/users/:id/likes
(POST) (reference) - Allows a user or authenticated user ID to unlike a Tweet:
/2/users/:id/likes/:tweet_id
(reference)
- Retrieve multiple users with IDs:
/2/users
(reference)
- Retrieve a single user with an ID:
/2/users/:id
(reference)- No reason to support this endpoint
- Retrieve multiple users with usernames:
/2/users/by
(reference)
- Retrieve a single user with a usernames:
/2/users/by/username/:username
(reference)- No reason to support this endpoint
- Lookup who a user is following with their user ID:
/2/users/:id/following
(reference) - Lookup the followers of a user with their user ID:
/2/users/:id/followers
(reference) - Allows a user ID to follow another user:
/2/users/:source_user_id/following
(POST) (reference) - Allows a user ID to unfollow another user:
2/users/:source_user_id/following/:target_user_id
(DELETE) (reference)
- Hide Replies
/2/tweets/:id/hidden
(reference)- Doesn't seem like we would need this, but I will include it to be comprehensive