API List/Twitter/X API

Twitter/X API

online

Access tweets, users, trends, and social media data from the X platform.

💬 SocialAuth: oauthPopularity: 92/100Latency: 140ms
Run in Explorer →

Base URL

https://api.twitter.com

Authentication

Requires OAuth 2.0 authentication flow.

View Documentation →

Endpoints

GET/2/tweets/{id}
Try it →

Get a tweet

GET/2/users/{id}
Try it →

Get a user

GET/2/tweets/search/recent
Try it →

Search recent tweets

Example Request

GET https://api.twitter.com/2/tweets/1

Example Response

{
  "data": {"id": "1", "text": "just setting up my twttr"}
}

Tags

social-mediatweetstrendsx