Skip to main content

Documentation Index

Fetch the complete documentation index at: https://nango.dev/docs/llms.txt

Use this file to discover all available pages before exploring further.

πŸš€ Quickstart

Connect to Twitter v2 with Nango and see data flow in 2 minutes.
1

Create the integration

In Nango (free signup), go to Integrations -> Configure New Integration -> Twitter v2.
2

Authorize Twitter v2

Go to Connections -> Add Test Connection -> Authorize, then log in to Twitter. Later, you’ll let your users do the same directly from your app.
3

Call the Twitter v2 API

Let’s make your first request to the Twitter v2 API. Replace the placeholders below with your secret key, integration ID, and connection ID:
curl "https://api.nango.dev/proxy/2/users/me" \
  -H "Authorization: Bearer <NANGO-SECRET-KEY>" \
  -H "Provider-Config-Key: <INTEGRATION-ID>" \
  -H "Connection-Id: <CONNECTION-ID>"
Or fetch credentials with the Node SDK or API.βœ… You’re connected! Check the Logs tab in Nango to inspect requests.
4

Implement Nango in your app

Follow our Auth implementation guide to integrate Nango in your app.To obtain your own production credentials, follow the setup guide linked below.

πŸ“š Twitter v2 Integration Guides

Nango maintained guides for common use cases. Official docs: Twitter v2 API docs

🧩 Pre-built syncs & actions for Twitter v2

Enable them in your dashboard. Extend and customize to fit your needs.

Bookmarks

Function nameDescriptionTypeSource code
bookmark-tweetBookmark a tweet for an authenticated user.ActionπŸ”— Github
remove-bookmarkRemove a tweet bookmarkActionπŸ”— Github

Follows

Function nameDescriptionTypeSource code
unfollow-userUnfollow a user from the authenticated accountActionπŸ”— Github

Likes

Function nameDescriptionTypeSource code
create-liked-tweetCreate a liked tweet in Twitter/XActionπŸ”— Github
delete-liked-tweetRemove a liked tweet (unlike) for the authenticated user.ActionπŸ”— Github
get-liked-tweetRetrieve a single liked tweet from Twitter/X by its ID.ActionπŸ”— Github
like-tweetLike a tweetActionπŸ”— Github
list-liked-tweetsList liked tweets from a specific Twitter/X userActionπŸ”— Github
unlike-tweetUnlike a TweetActionπŸ”— Github

Lists

Function nameDescriptionTypeSource code
create-listCreate a list in Twitter/XActionπŸ”— Github
delete-listDelete a List owned by the authenticated userActionπŸ”— Github
get-listRetrieve a single list from Twitter/XActionπŸ”— Github
list-listsList all Lists owned by a specified user from X APIActionπŸ”— Github
update-listUpdate a list in Twitter/X.ActionπŸ”— Github

Mentions

Function nameDescriptionTypeSource code
get-mentionRetrieve a single mention from Twitter/X.ActionπŸ”— Github
list-mentionsList mentions from Twitter/X for a specified user.ActionπŸ”— Github

Spaces

Function nameDescriptionTypeSource code
get-spaceRetrieve a single space from Twitter/XActionπŸ”— Github
list-spacesList Spaces from Twitter/X matching a search queryActionπŸ”— Github

Tweets

Function nameDescriptionTypeSource code
create-tweetCreate a tweet in Twitter/X.ActionπŸ”— Github
delete-tweetDelete or archive a tweet in Twitter/XActionπŸ”— Github
get-tweetRetrieve a single tweet from Twitter/X.ActionπŸ”— Github
list-tweetsList tweets from a specific Twitter/X user timeline.ActionπŸ”— Github

Users

Function nameDescriptionTypeSource code
follow-userFollow a user from the authenticated account.ActionπŸ”— Github
get-userRetrieve a single user from Twitter/XActionπŸ”— Github
list-usersList users from Twitter/X by IDs or usernamesActionπŸ”— Github

Others

Function nameDescriptionTypeSource code
liked-tweetsSync liked tweets from Twitter/XSyncπŸ”— Github
listsSync lists from Twitter/X.SyncπŸ”— Github
mentionsSync mentions from Twitter/XSyncπŸ”— Github
spacesSync spaces from Twitter/X using the search endpointSyncπŸ”— Github
tweetsSync tweets from Twitter/X user timelineSyncπŸ”— Github
usersSync users from Twitter/XSyncπŸ”— Github