Twitter Get UserByRestId V2

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.

541 runs
7 users
Try This Actor

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

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. 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

  1. Configure Input: In the Apify Console, set the userId in the Actor's input to the target Twitter rest_id.
  2. Run the Actor: Start the run. The Actor will fetch the profile page, parse it, and store the results.
  3. 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:

  1. Install the Apify CLI:
    bash npm -g install apify-cli
  2. 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

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 Trial

Actor Information

Developer
twitterapi
Pricing
Paid
Total Runs
541
Active Users
7
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support