GETtweets

Extract Any Tweet by ID with Full Metadata

Get complete tweet data including text, media, polls, engagement metrics, quoted tweets, and author info. One API call, all the data you need.

Average response time: 85ms

Code Examples

const response = await fetch(
  'https://scrapebadger.com/v1/twitter/tweets/tweet/1234567890',
  { headers: { 'x-api-key': 'YOUR_API_KEY' } }
);
const tweet = await response.json();
console.log(tweet.data.text, tweet.data.favorite_count);
Response
{
  "data": {
    "id": "1234567890",
    "text": "Just shipped a new feature!",
    "created_at": "2025-01-15T10:30:00Z",
    "author": { "id": "987654321", "username": "developer", "name": "Dev" },
    "favorite_count": 142,
    "retweet_count": 23,
    "reply_count": 8,
    "quote_count": 5,
    "media": [],
    "is_quote_status": false
  }
}

API Reference

GET/v1/twitter/tweets/tweet/{tweet_id}
ParameterTypeRequiredDescription
tweet_idstringRequiredThe numeric ID of the tweet to retrieve
cursorstringOptionalPagination cursor for threaded replies

Use Cases

Social Listening

Monitor brand mentions, keywords, and conversations across Twitter in real time to understand public sentiment and emerging topics.

Sentiment Analysis

Feed tweet text into NLP pipelines to classify sentiment, detect emotions, and measure public opinion on products, events, or topics.

Content Curation

Aggregate top-performing content by topic or industry to fuel newsletters, social feeds, and content marketing calendars.

Academic Research

Collect large-scale Twitter datasets for computational social science, NLP research, political analysis, and network studies.

Media Monitoring

Track how news stories propagate on Twitter, measure story amplification, and identify key distributors of information.

Bot Detection

Identify automated accounts and inauthentic behavior by analyzing posting patterns, account metadata, and network structures.

Frequently Asked Questions

No. The API returns data for publicly available tweets only. Deleted or suspended tweets return a 404 error.

Yes. The response includes full media arrays with image URLs, video variants, and alt text when available.

The embedded author object includes user ID, username, display name, profile image URL, verified status, and follower count.

Use the cursor parameter to paginate through threaded replies. The response includes a next_cursor when more replies are available.