X Scraper API: Extract Tweet Data Without Blocks

X Scraper API efficiently allows you to extract views, retweets, likes, bookmarks, X handle, and many more data points by passing the URL of the Tweets.

GET / twitter
{
    "views": "76M",
    "retweets": "41.2K",
    "quotes": "17k",
    "likes": "409.7k",
    "bookmarks": "3,528",
    "tweet": "We're purging accounts that have had no activity at all for several years...",
    "name": "Elon Musk",
    "profile_handle": "@elonmusk",
    "profile_url": "https://www.twitter.com/elonmusk",
    "tweet_timing": "4:21 PM",
    "tweet_date": "May 8, 2023",
    "tweet_id": "1655608985058267139",
    "tweet_url": "https://www.twitter.com/elonmusk/status/1655608985058267139"
}

How It Works Behind the API

</> Get
import requests

api_key = "5eaa61a6e562fc52fe763tr516e4653"
url = "https://api.scrapingdog.com/twitter/"

params = {
    "api_key": api_key,
    "parsed": "true",
    "url": "https://twitter.com/elonmusk/status/1655608985058267139"
}

response = requests.get(url, params=params)

if response.status_code == 200:
    data = response.json()
    print(data)
else:
    print(f"Request failed with status code: {response.status_code}")

X Scraper API Response (Structured JSON Data)

Try Scrapingdog for Free
  • Tweet Content

    tweettweet_idtweet_urltweet_datetweet_timing
  • Engagement Metrics

    viewslikesretweetsquotesbookmarks
  • Author Profile

    nameprofile_handleprofile_url
  • Identifiers & Links

    tweet_idtweet_urlprofile_url
  • Replies & Threads

    replytweetprofile_handle
  • Request Parameters

    api_keyurlparsed

Scrapingdog vs Manual X Scraping

Without an X Scraper API

Scraping X by hand means fighting rate limits, login walls, and a feed that hides data behind GraphQL endpoints.

  • Aggressive Rate Limits & Throttling

    X caps how many tweets you can read per account, then silently throttles or suspends scrapers tracking high-volume conversations.

  • Login Walls on Public Tweets

    Most tweet and profile pages now demand a session, forcing you to farm and rotate accounts just to read public posts.

  • Brittle GraphQL & Bearer Tokens

    Engagement counts load from internal GraphQL calls with rotating bearer tokens and feature flags that break parsers without warning.

  • Noisy Counts & Abbreviated Metrics

    Views and likes arrive as "76M" or "409.7k" strings buried in dynamic DOM, so manual pipelines stay unreliable.

With Scrapingdog X Scraper API

One request with a tweet URL returns parsed engagement and author data, with no accounts or rate-limit juggling.

  • No Login or Account Farming

    Read public tweets and profiles without supplying X credentials. Scrapingdog handles sessions and the login wall for you.

  • Rate Limits Handled at Scale

    Built-in rotation absorbs X throttling so social-listening and brand-monitoring jobs keep running across thousands of tweets.

  • Clean Engagement Metrics in JSON

    Get views, likes, retweets, quotes, and bookmarks as ready-to-use fields, with no GraphQL parsing or count cleanup.

  • Stable Through X UI Changes

    We track X frontend and GraphQL changes so your sentiment and market-intelligence pipelines do not break when the site shifts.

X Scraper API Features That Make Scraping Easy

  • Rotating Proxy Network

    Our API includes a built-in rotating proxy system that automatically changes IP addresses for every request.

  • Automatic CAPTCHA

    Scrapingdog automatically bypasses CAPTCHA and anti-bot protection on X, so you can send requests without blocks.

  • Comprehensive Tweet Extraction

    Extract views, retweets, likes, bookmarks, quotes, and tweet text as ready-to-use structured JSON.

  • Real-Time Data Retrieval

    Extract live data directly from X, ensuring you always have the most current engagement information.

  • User Profile Information

    Retrieve the author name, profile handle, and profile URL alongside every tweet you scrape.

  • Fast Response Time

    Receive parsed tweet data in just a few seconds with our high-performance X scraping API.

What you can build with an X Scraper API

  • Competitor Analysis

    Track how competitor brands and accounts perform on X by scraping their tweet engagement and reach.

  • Customer Sentiment Tracking

    Analyze likes, retweets, and replies to gauge how audiences feel about products, campaigns, or topics.

  • Influencer Marketing

    Measure the reach and engagement of influencer tweets to identify the right partners for your campaigns.

  • Trend Analysis

    Detect emerging trends and viral topics by monitoring tweet views, retweets, and engagement over time.

  • Event Monitoring

    Follow live conversations around events by tracking tweet activity and engagement metrics in real time.

  • Market Research

    Gather structured tweet data for research into audience behavior, public opinion, and market dynamics.

Built for teams of every size and background

  • Social Listening Teams
  • Brand Monitoring Teams
  • Journalists & Newsrooms
  • Sentiment Analysts
  • Market Intelligence Teams
  • PR & Comms Teams
  • Data Scientists
  • Quant & Trading Desks
  • Crisis & Reputation Managers
  • Influencer Marketing Teams
  • Researchers & Academics
  • Growth Marketers

Get Started with Our X Scraper API in Minutes

  1. 1

    Create free account

    Sign up and get free credits to start testing the X Scraper API.

  2. 2

    Get Your API Key

    Access your unique API key from the dashboard and use it to scrape the data.

  3. 3

    Send a Tweet URL

    Pass a tweet URL with parsed=true to fetch its live engagement data.

  4. 4

    Receive Parsed Tweet JSON

    Get tweet objects with views, likes, retweets, quotes, bookmarks, and the author handle.

Transparent & Simple Pricing

Start your web scraping journey with 200 free credits. Test our service and upgrade to one of the plans below. Cancel anytime.

2 months Extra
  • FREE

    $0 forever
    • 200 Requests Credits
    • 1 Concurrency
    • Access To All APIs
    • No Credit Card Required
    • Community Support
    • Team Support
    Start for Free
  • LITE

    $40 /month
    • 200,000 Requests Credits
    • 5 Concurrency
    • Access To All APIs
    • Geotargeting
    • Email Support
    • No Team Support
    Start Trial
  • STANDARD

    $90 /month
    • 1,000,000 Requests Credits
    • 50 Concurrency
    • Access To All APIs
    • Geotargeting
    • Priority Email Support
    • No Team Support
    Start Trial
  • Popular

    PRO

    $200 /month
    • 3,000,000 Requests Credits
    • 100 Concurrency
    • Access To All APIs
    • Geotargeting
    • Priority Email Support
    • Team Support
    Start Trial
  • PREMIUM

    $350 /month
    • 6,000,000 Requests Credits
    • 150 Concurrency
    • Access To All APIs
    • Geotargeting
    • Priority Email Support
    • Team Support
    Start Trial

Trusted by Developers worldwide

4.8 TrustScore on Trustpilot
  • ScrapingDog on my first test try knocked out a complex scrape that I'd been unable to do with various other methods.

    Jay Smith

    United States

  • The API is one of the best in the market for me. The API is simple to grasp and powerful to use.

    Abdul-Rahman Chamma

    United Arab Emirates

  • A lifesaver service. Allowed us to solve the last piece of the puzzle.

    Kristers Gelass

    Latvia

  • Reliable, and simple to use! It’s also inexpensive and has packaged solutions for every need (Google, LinkedIn). Highly recommend.

    John Tyler

    France

Frequently Asked Questions

  • Each API request consumes a certain number of credits based on the dedicated API you're using.

  • Scraping publicly available data like views, retweets, and profile handle is considered legal.

Try Scrapingdog for Free!

Get 200 free credits to spin the API. No credit card required!