Twitter API v2

Number of APIs: 74

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.

Installation

Quick install

Go to the Collection and click Run in Qodex.

Manual install

You can also download this Collection from a GitHub repo here: https://github.com/twitterdev/Qodex-twitter-api

Environment

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):

NameDescription
consumer_keyYour consumer key
consumer_secretYour consumer secret
access_tokenYour access token
token_secretYour access token secret
bearer_tokenYour bearer token
  1. Manage Direct Messages - New group DM and conversation POST https://api.twitter.com/2/dm_conversations/

  2. List-List members - Add a member POST https://api.twitter.com/2/lists/:id/members

  3. List-List members - User memberships GET https://api.twitter.com/2/users/:id/list_memberships

  4. User Lookup - User by ID GET https://api.twitter.com/2/users/:id

  5. Manage Tweets - Delete a Tweet DELETE https://api.twitter.com/2/tweets/:id

  6. User Lookup - Users by ID GET https://api.twitter.com/2/users?ids=

  7. Search Tweets - Full-archive search GET https://api.twitter.com/2/tweets/search/all?query=

  8. Usage Tweets - Get Tweets Usage GET https://api.twitter.com/2/usage/tweets

  9. Likes - Unlike a Tweet DELETE https://api.twitter.com/2/users/:id/likes/:tweet_id

  10. Retweets - Undo a Retweet DELETE https://api.twitter.com/2/users/:id/retweets/:source_tweet_id