Twitter (X) Scraper API

Look up user IDs, pull profiles, tweets, comments, follower lists, media and trending topics from X (Twitter) as clean JSON — one REST API, no official API pricing pain, no scraping infrastructure.

Get free API credits

Get a Twitter user ID from a username

Many X endpoints require the numeric user ID (rest_id) instead of the @handle. The user profile endpoint accepts either one: pass a screen_name and get back the rest_id plus the full profile — follower counts, bio, verification status and account metadata — in a single call.

  • Username (screen_name) → numeric user ID (rest_id) lookup
  • Full profile: followers, following, bio, verification, join date
  • Works in both directions — query by handle or by ID

Scrape tweet comments and replies

Pull the full comment thread under any tweet — top-level comments, nested replies and author info — or fetch the latest comments as they arrive. Useful for sentiment analysis, community monitoring and reply-guy research.

  • Comments under a specific tweet, with pagination
  • Latest comments stream for fresh reactions
  • Replies a specific user has posted across threads
  • Users who retweeted a given tweet

Follower lists, media and trending topics

Map who an account follows, collect every image and video an account has posted, or fetch the current trending topics for any country — the building blocks for influencer research, competitive analysis and trend monitoring.

  • Followings list — accounts a user follows
  • User media — all image and video tweets from an account
  • Trending topics by country / region
  • User post timeline as structured JSON

Why not the official X API?

The official X API starts at $200/month for meaningful read access and cuts off historical depth at every tier. SpiderHubs is pay-per-request on top of free signup credits: test with real data today, then pay only for the calls you make. Same clean JSON, REST semantics and example requests in cURL, Python and Node.js.

Platforms we cover

X / TwitterRedNote (Xiaohongshu)TikTokDouyinInstagramYouTube

Start pulling X (Twitter) data in minutes

Free credits to start. No credit card, no $200/month platform fee.

Start free