Scrapingdog

X Post Scraper API

The X Post Scraper API lets you extract detailed data for any X (Twitter) post including engagement metrics (views, retweets, quotes, likes, bookmarks), full post content, timestamp, and complete author profile information. Each successful request costs 5 API credits.

Endpoint: https://api.scrapingdog.com/x/post

API Parameters

🔑

Scrapingdog Parameters

  • api_key Required
    Your personal API key. Available on your dashboard.

    Type: String
🐦

Post

  • tweetId Required
    This is the tweet ID of the X post you want to scrape. You can find it in the post URL (e.g., for twitter.com/i/web/status/1655608985058267139, the ID is 1655608985058267139).

    Type: String

API Examples

Code to Integrate
curl "https://api.scrapingdog.com/x/post?api_key=APIKEY&tweetId=1655608985058267139"
API Response
{
  "tweet_id": "1655608985058267139",
  "post_url": "https://twitter.com/i/web/status/1655608985058267139",
  "tweet": "Excited to announce that we have launched our new X Scraper API!",
  "created_at": "Mon May 08 12:34:56 +0000 2023",
  "views": 1284950,
  "retweets": 3241,
  "quotes": 512,
  "likes": 28475,
  "bookmarks": 4123,
  "profile_name": "Scrapingdog",
  "profile_handle": "scrapingdog",
  "profile_url": "https://twitter.com/scrapingdog",
  "profile_picture": "https://pbs.twimg.com/profile_images/...",
  "description": "Web Scraping API for developers",
  "location": "India",
  "followers_count": 5420,
  "following_count": 312,
  "likes_count": 1840,
  "statuses_count": 2310,
  "is_blue_verified": false
}