Twitter v2
Integrate your application with the Twitter v2 API
🚀 Quickstart
Connect to Twitter v2 with Tenklo and see data flow in 2 minutes.
In Tenklo (free signup), go to Integrations -> Configure New Integration -> 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.
Let's make your first request to the Twitter v2 API. Replace the placeholders below with your Environment API key, integration ID, and connection ID:
curl "https://api.tenklo.dev/proxy/2/users/me" \
-H "Authorization: Bearer <NANGO-API-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 Tenklo to inspect requests.
Follow our Auth implementation guide to integrate Tenklo in your app.
To obtain your own production credentials, follow the setup guide linked below.
📚 Twitter v2 Integration Guides
Tenklo maintained guides for common use cases.
- How to register your own Twitter v2 OAuth app
Register an OAuth app with Twitter and obtain credentials to connect it to Tenklo
Official docs: Twitter v2 API docs
🧩 Pre-built syncs & actions for Twitter v2
Explore Nango-provided actions in your dashboard. Extend and customize them to fit your needs.
Others
| Function name | Description | Type | Source code |
|---|---|---|---|
bookmark-tweet | Bookmark a tweet for an authenticated user. | Action | 🔗 Github |
create-liked-tweet | Create a liked tweet in Twitter/X | Action | 🔗 Github |
create-list | Create a list in Twitter/X | Action | 🔗 Github |
create-tweet | Create a tweet in Twitter/X. | Action | 🔗 Github |
delete-liked-tweet | Remove a liked tweet (unlike) for the authenticated user. | Action | 🔗 Github |
delete-list | Delete a List owned by the authenticated user | Action | 🔗 Github |
delete-tweet | Delete or archive a tweet in Twitter/X | Action | 🔗 Github |
follow-user | Follow a user from the authenticated account. | Action | 🔗 Github |
get-liked-tweet | Retrieve a single liked tweet from Twitter/X by its ID. | Action | 🔗 Github |
get-list | Retrieve a single list from Twitter/X | Action | 🔗 Github |
get-mention | Retrieve a single mention from Twitter/X. | Action | 🔗 Github |
get-space | Retrieve a single space from Twitter/X | Action | 🔗 Github |
get-tweet | Retrieve a single tweet from Twitter/X. | Action | 🔗 Github |
get-user | Retrieve a single user from Twitter/X | Action | 🔗 Github |
like-tweet | Like a tweet | Action | 🔗 Github |
list-liked-tweets | List liked tweets from a specific Twitter/X user | Action | 🔗 Github |
list-lists | List all Lists owned by a specified user from X API | Action | 🔗 Github |
list-mentions | List mentions from Twitter/X for a specified user. | Action | 🔗 Github |
list-spaces | List Spaces from Twitter/X matching a search query | Action | 🔗 Github |
list-tweets | List tweets from a specific Twitter/X user timeline. | Action | 🔗 Github |
list-users | List users from Twitter/X by IDs or usernames | Action | 🔗 Github |
remove-bookmark | Remove a tweet bookmark | Action | 🔗 Github |
unfollow-user | Unfollow a user from the authenticated account | Action | 🔗 Github |
unlike-tweet | Unlike a Tweet | Action | 🔗 Github |
update-list | Update a list in Twitter/X. | Action | 🔗 Github |
liked-tweets | Sync liked tweets from Twitter/X | Sync | 🔗 Github |
lists | Sync lists from Twitter/X. | Sync | 🔗 Github |
mentions | Sync mentions from Twitter/X | Sync | 🔗 Github |
spaces | Sync spaces from Twitter/X using the search endpoint | Sync | 🔗 Github |
tweets | Sync tweets from Twitter/X user timeline | Sync | 🔗 Github |
users | Sync users from Twitter/X | Sync | 🔗 Github |