Twitter API v2

Number of APIs: 73

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. User Lookup - Authenticated User Lookup GET https://api.twitter.com/2/me

  2. Follows - Follow a user ID POST https://api.twitter.com/2/users/:id/following

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

  4. Manage Direct Messages - Add DM to conversation POST https://api.twitter.com/2/dm_conversations/:dm_conversation_id/messages

  5. Follows - Followers of user ID GET https://api.twitter.com/2/users/:id/followers

  6. Tweet Lookup - Single Tweet Usercontext GET https://api.twitter.com/2/tweets/:id

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

  8. Tweet Lookup - Multiple Tweets GET https://api.twitter.com/2/tweets?ids=

  9. Direct Messages Lookup - DM events by 1-1 conversation GET https://api.twitter.com/2/dm_conversations/with/:participant_id/dm_events?dm_event.fields=id,text,event_type,dm_conversation_id,created_at,sender_id,attachments,participant_ids,referenced_tweets

  10. User Lookup - User by Username GET https://api.twitter.com/2/users/by/username/:username