VOOZH about

URL: https://apify.com/barefoot_year/x-profile-scraper

โ‡ฑ X Profile Scraper ยท Apify


Pricing

from $1.50 / 1,000 results

Go to Apify Store

Fetch public X/Twitter profile details by username or profile URL using Guest GraphQL API. No login cookies required.

Pricing

from $1.50 / 1,000 results

Rating

0.0

(0)

Developer

๐Ÿ‘ Ghost Rider

Ghost Rider

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

10 days ago

Last modified

Categories

Share

X Profile Scraper (Apify Actor)

Fetch public X/Twitter profile data by username or profile URL โ€” no login cookies required.

Uses X's internal Guest Token + GraphQL API (UserByScreenName).

Features

  • Input: usernames (@handle or handle) and/or profileUrls (x.com/..., twitter.com/...)
  • Auto-discovers rotating GraphQL queryId from X's JS bundle
  • Guest token refresh on expiry, 401/403, and 429
  • Apify Proxy support (recommended)

Input example

{
"usernames":["elonmusk","NASA"],
"profileUrls":["https://x.com/OpenAI"],
"delayMs":1500,
"maxRetries":2,
"tokenRefreshAfter":50,
"proxyConfiguration":{"useApifyProxy":true}
}

Output example

{
"id":"44196397",
"screen_name":"elonmusk",
"name":"Elon Musk",
"bio":"...",
"followers_count":237726440,
"following_count":1305,
"tweet_count":100356,
"is_blue_verified":true,
"profile_image_url":"https://pbs.twimg.com/profile_images/.../photo_400x400.jpg",
"profile_url":"https://x.com/elonmusk",
"scrape_method":"guest_graphql",
"scraped_at":"2026-06-08T12:00:00.000Z"
}

Local development

npminstall
apify run

Or with a local input file at storage/key_value_stores/default/INPUT.json.

Limitations

  • Profiles only โ€” no tweets, followers, or search
  • Public data โ€” protected accounts return limited info
  • X rotates GraphQL query IDs every few weeks; this actor discovers them at runtime
  • Datacenter IPs are often blocked โ€” use Apify Proxy

Project structure

.actor/ Actor metadata and input schema
src/main.js Entry point and orchestration
src/guestToken.js Guest token acquisition
src/graphql.js GraphQL profile fetch
src/queryIds.js Dynamic queryId discovery
src/parseProfile.js Response parsing
src/normalizeInput.js Username /URL normalization

You might also like

X Profile Scraper

devwithbobby/x-profile-scraper

X Profile scraper

๐Ÿ‘ User avatar

Dev with Bobby

4

Twitter / X Tweet & Profile Scraper

morph_coder/twitter-search-scraper

Scrape **X (Twitter) posts by ID** and **public profile metrics** without the official Twitter API. No login cookies required.

11

5.0

Twitter (X) Profile Details Scraper

lead.gen.labs/twitter-x-profile-details-scraper

With ease, extract public bio, follower count, and profile URLs from any Twitter(X) profile. Ideal for social media insights, influencer discovery, or lead generation.

58

Twitter/X Profile Scraper ยท No Cookies

data-slayer/twitter-user

Extract detailed Twitter/X user profiles by username without login. Get bio, follower/following counts, tweet count, verification status, profile images, location, website, account creation date, and business labels. No cookies, no API key. JSON/CSV/Excel export.

Twitter Email Scraper - X Profile & Lead Extractor

logiover/x-profile-email-scraper

X / Twitter profile scraper & unofficial API: extract bio emails, follower counts and websites, export profiles to CSV/JSON. No login or API key.

Twitter/X Profile Keyword Scraper

lead.gen.labs/twitter-x-profile-keyword-scraper

Extract keyword-matched Tweets from any Twitter/X profile.

18

Tiktok Profile Scraper by username or url

iskander/tiktok-profile-scraper

Scrapes full profile details and top posts from Tiktok username or profile url

๐Ÿ‘ User avatar

Iskandar Souissi

3

5.0