X User Profile Scraper avatar

X User Profile Scraper

Pricing

$10.00/month + usage

Go to Apify Store
X User Profile Scraper

X User Profile Scraper

Get complete X profiles in seconds—fast, simple, and login-free. Unlock rich user insights from X with zero setup required. Powerful profile extraction built for speed and reliability.

Pricing

$10.00/month + usage

Rating

0.0

(0)

Developer

Jamshaid Arif

Jamshaid Arif

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Share

X User Profile Scraper (Guest GraphQL)

Fetch X/Twitter user profiles using Guest Token + internal GraphQL API. No login, no API key, no cookies.

⚠️ Experimental: X rotates GraphQL endpoints and blocks datacenter IPs every 2-4 weeks. This actor includes auto-retry and token refresh logic, but may stop working after a platform update.

What it does

Extracts comprehensive user profile data:

  • Name, handle, bio, location, website
  • Followers, following, tweet count, likes count
  • Media count, listed count
  • Account creation date
  • Verification status (legacy + blue)
  • Protected (private) account detection
  • Profile image (full-size 400x400) and banner URL
  • Pinned tweet IDs
  • Professional category (if set)

Input

FieldTypeDescription
usernamesstring[]X handles to scrape (with or without @)
profileUrlsstring[]Profile URLs (usernames extracted automatically)
delayMsintegerDelay between requests in ms (default: 1500)
maxRetriesintegerRetries per failed profile (default: 2)
tokenRefreshAfterintegerRefresh guest token proactively after N requests (default: 50)

Example input

{
"usernames": ["jack", "elonmusk", "NASA"],
"delayMs": 1500
}

Output

{
"id": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"bio": "...",
"location": "",
"followers_count": 237726440,
"following_count": 1305,
"tweet_count": 100356,
"likes_count": 58432,
"created_at": "Tue Jun 02 20:12:29 +0000 2009",
"verified": false,
"is_blue_verified": true,
"is_private": false,
"profile_image_url": "https://pbs.twimg.com/profile_images/.../photo_400x400.jpg",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/...",
"profile_url": "https://x.com/elonmusk",
"scrape_method": "guest_graphql"
}

Error Handling

The actor handles these cases gracefully:

  • Guest token failure: Retries acquisition automatically
  • Token expiry mid-run: Detects 401/403 and refreshes
  • Rate limiting (429): Invalidates token and retries
  • Suspended/unavailable users: Returns error field with reason
  • Not found users: Returns user_not_found error

Limitations

  • Profiles only (no tweet timelines or followers lists)
  • Public data only (protected accounts show limited info)
  • Guest tokens may be blocked from datacenter IPs
  • GraphQL endpoint IDs rotate — may need updating