Twitter Get UserByRestId V2
by twitterapi
Fetch public Twitter profile data using a user's internal numeric ID. Get handles, bios, follower counts, and more for research, auditing, or data pipelines.
Opens on Apify.com
About Twitter Get UserByRestId V2
Need to pull Twitter user data by their numeric ID, but find the official API too restrictive or slow? I've been there. This actor is basically a workaround that lets you fetch public Twitter profiles using their internal rest_id—that unique number behind every handle. It's become my go-to for projects where I need consistent, reliable user data without jumping through all of Twitter's hooves. You feed it a list of these numeric IDs, and it returns the core profile details: the handle, display name, bio, follower and following counts, verification status, and the profile/header image URLs. It handles the quirks of Twitter's front-end, managing sessions and requests so you don't have to. I use it mostly for building datasets for social research, auditing follower networks, or populating user information in dashboards when I only have the ID from an older dataset. It runs on Apify's platform, so you can schedule it, pipe the clean JSON data into other tools, and scale it if you have a long list to process. It’s a straightforward, focused tool that does one job well.
What does this actor do?
Twitter Get UserByRestId V2 is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
Twitter Get UserByRestId V2
An Apify Actor that scrapes public profile data from a single Twitter/X user page using their unique rest_id. It's built for automation and social media data extraction.
Overview
This Actor takes a Twitter user's rest_id as input, fetches the corresponding profile page, and extracts key user information. It uses Axios for HTTP requests and Cheerio for HTML parsing, storing the structured results in an Apify dataset. It's a single-page scraper template adapted for Twitter user profiles.
Key Features
- Apify SDK: Built using the Apify SDK for Actor development.
- Input Schema: Validates input using a defined JSON schema.
- Structured Storage: Outputs data to an Apify Dataset.
- Axios & Cheerio: Uses Axios for reliable HTTP requests and Cheerio for fast HTML parsing.
- Local Development: Supports pulling the Actor code locally via the Apify CLI.
Input/Output
Input (provided via the Actor's input configuration):
{
"userId": "twitter_rest_id_here"
}
Output (stored in the dataset):
The Actor scrapes available profile data from the page. While the template example extracts page headings (h1-h6), this Actor is configured to parse Twitter user details. The exact output fields depend on the implemented parsing logic but typically include items like username, display name, bio, and follower counts.
How to Use
- Configure Input: In the Apify Console, set the
userIdin the Actor's input to the target Twitterrest_id. - Run the Actor: Start the run. The Actor will fetch the profile page, parse it, and store the results.
- Access Data: Retrieve the structured data from the Actor's dataset via the Apify Console, API, or integrations.
Local Development
To modify or run the Actor locally:
- Install the Apify CLI:
bash npm -g install apify-cli - Pull the Actor code using its unique name or ID:
bash apify pull <ActorId>
Find the<ActorId>(e.g.,apify/twitter-get-user) on the Actor's page in the Apify Console.
Resources
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try Twitter Get UserByRestId V2 now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- twitterapi
- Pricing
- Paid
- Total Runs
- 541
- Active Users
- 7
Related Actors
Video Transcript Scraper: Youtube, X, Facebook, Tiktok, etc.
by invideoiq
Linkedin Profile Details Scraper + EMAIL (No Cookies Required)
by apimaestro
Twitter (X.com) Scraper Unlimited: No Limits
by apidojo
Content Checker
by jakubbalada
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support