Tweet Scraper API (User Tweets)
Get the latest tweets from any X (Twitter) account with full engagement metrics. A tweet scraper at $0.01 per call.
Pull the tweet timeline of any public X (Twitter) account by username or user id. Each tweet includes text, timestamp, likes, retweets, replies, quotes, bookmarks, views, hashtags, mentions, links, media, quoted and retweeted tweets, and the author profile. Cursor pagination lets you walk back through the timeline.
Try it live
Fill in the fields and hit Run to see a real response.
{
"ok": true,
"data": {
"cursor": "DAAHCgABHV69Res___ALAAIAAAATMjExNDQ2MzAx…",
"tweets": [
{
"author": {
"avatar": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
"banner": "https://pbs.twimg.com/profile_banners/11348282/1788992290",
"created_at": "2007-12-19T20:20:32+00:00",
"description": "Making the seemingly impossible, possible. ✨",
"followers_count": 92298687,
"following_count": 115,
"id": "11348282",
"is_blue_verified": true,
"likes_count": 17049,
"listed_count": 96842,
"location": "Pale Blue Dot",
"media_count": 28221,
"name": "NASA",
"pinned_tweet_ids": [
"2116263878807998722"
],
"protected": false,
"tweet_count": 74477,
"url": "https://x.com/NASA",
"username": "NASA",
"verified": false,
"verified_type": "Government",
"website": "http://www.nasa.gov/"
},
"bookmarks": 29,
"conversation_id": "2116263878807998722",
"created_at": "2026-10-30T20:20:01+00:00",
"hashtags": [],
"id": "2116263878807998722",
"in_reply_to_tweet_id": null,
"in_reply_to_username": null,
"is_quote": false,
"is_retweet": false,
"lang": "en",
"likes": 681,
"media": [
{
"alt_text": "Three jet aircraft, each with a white nose and blue body, fly in a triangle formation against a clear blue sky. White trails follow each jet. ",
"duration_ms": null,
"height": 1280,
"type": "photo",
"url": "https://pbs.twimg.com/media/HV56yHnXcAAwYJ2.jpg",
"video_url": null,
"width": 1920
}
],
"mentions": [],
"possibly_sensitive": false,
"quoted_tweet": null,
"quotes": 4,
"replies": 38,
"retweeted_tweet": null,
"retweets": 86,
"text": "MAX POWER, America’s newest aerospace expo and air show, is just a week away!\n\nThis showcase will be packed with events—from aircraft flyovers to a chance to meet NASA astronauts and experts. Here's w…",
"url": "https://x.com/NASA/status/2116263878807998722",
"urls": [
"https://go.nasa.gov/4zjj9BD"
],
"views": 202236
}
]
}
}Features
Pass a username (NASA, @NASA, or a profile URL) or a numeric user_id.
likes, retweets, replies, quotes, bookmarks, and views on every tweet.
Photos and videos with URLs, dimensions, and alt text; expanded links; hashtags; mentions; and the full quoted or retweeted tweet.
count sets the page size (default 20, up to 100) and cursor walks back through older tweets.
Timelines are cached for 10 minutes and pacing is handled server-side.
Use cases
Competitor Tracking
Follow what competitors post and which tweets perform.
Content Analytics
Measure views and engagement across an account's recent tweets.
Archiving
Keep a structured copy of an account's public tweets.
Quick start
Copy this snippet and start making calls.
const res = await fetch('https://api.yepapi.com/v1/twitter/user-tweets', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"username": "NASA",
"count": 20
}),
});
const data = await res.json();
console.log(data);The Tweet Scraper API: a Twitter scraper for any account's timeline
The YepAPI Tweet Scraper API returns the tweets of any public X (Twitter) account. Send a username to /v1/twitter/user-tweets and get back tweets with text, timestamps, likes, retweets, replies, quotes, bookmarks, views, media, and links, plus a cursor for older tweets, at $0.01 per call.
It does what a Twitter scraper or tweet scraper does, without running a browser, managing logins, or rotating proxies.
What is a tweet scraper?
A tweet scraper collects the tweets an account has posted so you can analyze or store them. Scraping X yourself means headless browsers, logged-in sessions, and constant breakage. The Tweet Scraper API gives you the same timeline as clean JSON: normalized Tweet objects with every engagement metric, media item, link, and the author profile, one page per call.
Scrape tweets with Python
In Python, call requests.post("https://api.yepapi.com/v1/twitter/user-tweets", headers={"x-api-key": KEY}, json={"username": "NASA", "count": 20}), loop over data["tweets"], and repeat with data["cursor"] until you have enough. Store tweet ids to avoid duplicates and track views and likes over time.
Tweet Scraper API pricing: $0.01 per call
Every call costs a flat $0.01 and failed calls are free. There is no monthly tier to buy, no developer account to get approved, and no separate Twitter API key: one YepAPI key covers every endpoint. One page of tweets is one call, so 1,000 tweets costs about $0.50. Timelines are cached for 10 minutes.
Tweets, replies, and media timelines
This endpoint returns an account's tweets. Use the Twitter User Replies API for tweets plus replies, and the Twitter Media API for only tweets with photos or video. All three take the same username, user_id, count, and cursor fields.
Try the Tweet Scraper API free
Sign up and get $5 in free credit with no card required. That is 500 calls at $0.01 each to test the Tweet Scraper API on live X data before you spend anything. Search, profiles, followers, and trends are on the same key.
Start making API calls in 30 seconds
$5 free credit on signup. No credit card required. Pay per call.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
Pull the tweet timeline of any public X (Twitter) account by username or user id. Each tweet includes text, timestamp, likes, retweets, replies, quotes, bookmarks, views, hashtags, mentions, links, media, quoted and retweeted tweets, and the author profile. Cursor pagination lets you walk back through the timeline.
Each API call costs $0.01. No monthly minimums or subscriptions — you only pay for what you use.
Sign up for a free API key, then send a POST request to /v1/twitter/user-tweets. Check the code example above for a ready-to-use snippet in JavaScript, cURL, or Python.
YepAPI bundles SEO, AI, and web scraping APIs under one key with no monthly minimums. You get lower per-call pricing, a unified dashboard, and one billing account instead of managing multiple providers.
Ready to integrate?
Get your API key and start making calls in 30 seconds. $5 free credit on signup — no credit card required.
More Twitter / X API endpoints
Twitter User Replies API
$0.01Get an X (Twitter) account's tweets and replies timeline with full metrics. $0.01 per call.
Twitter Media API
$0.01Get the photos and videos an X (Twitter) account has posted, with media URLs. $0.01 per call.
Twitter Followers API
$0.01List the followers of any X (Twitter) account with full profiles. $0.01 per call.
Twitter Following API
$0.01List the accounts any X (Twitter) user follows, with full profiles. $0.01 per call.
Twitter User API (X Profile API)
$0.01Get any X (Twitter) profile by username: followers, following, tweets, bio, and verification. $0.01 per call.
X About This Account API
$0.01Get X's "About this account" data: country, username changes, verified-since date, and affiliation. $0.01 per call.