Twitter Get FollowingsIds

Twitter Get FollowingsIds

by twitterapi

Fetch the numeric IDs of every account a Twitter user follows using the official v1.1 API. Perfect for developers building analysis tools or data pipelines.

602 runs
16 users
Try This Actor

Opens on Apify.com

About Twitter Get FollowingsIds

Need to pull the IDs of everyone a Twitter account follows? This actor taps directly into Twitter's own v1.1 API (via twitter.utools.me) to do exactly that. It's a straightforward, no-fuss tool for developers who need reliable following ID data. I've used it for building audience analysis scripts and seeding follower graphs, and it just works. You give it a target username, and it fetches the list of numeric user IDs for all accounts they follow. This raw ID data is perfect for further processing, analysis, or integration into larger data pipelines where you need to map connections or understand network structures. It's especially handy for research, social listening tools, or any project where you need to move beyond basic profile info and get into the actual relationship data. The output is clean and ready to use, saving you the headache of building and maintaining your own API wrapper for this specific endpoint.

What does this actor do?

Twitter Get FollowingsIds 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 FollowingsIds

Scrapes the user IDs of accounts a specific Twitter user follows. This Actor takes a Twitter username as input, navigates to their following page, and extracts the unique IDs of each followed account. It's built on Apify's platform for reliable, scalable data extraction.

Key Features

  • Targeted Data Extraction: Fetches the Twitter user IDs from a user's "Following" list.
  • Built on Apify SDK: Utilizes the Apify SDK for robust Actor development, scheduling, and result storage.
  • Structured Output: Stores the scraped user ID data in an Apify Dataset for easy access and integration.
  • Core Tech Stack:
    • Axios Client: For making HTTP requests to fetch the Twitter page.
    • Cheerio: For parsing and extracting data from the page HTML.
  • Input Schema: Uses a defined input schema to validate configuration, such as the target Twitter username.

How to Use

  1. Configure Input: Provide the target Twitter username via the Actor's input settings.
  2. Run the Actor: Start the Actor run from the Apify Console, via API, or through an integrated platform like Zapier.
  3. Retrieve Results: Access the scraped list of following IDs from the Actor's output Dataset. Each record contains a user ID.

The process flow is:
1. The Actor receives the input (Twitter username).
2. It constructs the URL for the user's "Following" page and fetches the HTML using Axios.
3. Cheerio parses the page to locate and extract the account IDs.
4. Extracted IDs are pushed to the Dataset as structured data.

Input/Output

Input
The primary required input is:
- username: The Twitter handle (without the '@') of the user whose followings you want to scrape.

Output
The Actor outputs data to an Apify Dataset. Each item typically contains:
- userId: The unique identifier for a followed account.

You can access the results via the Apify Console, or by using the Apify API to fetch data from the Dataset.

Resources & Development

For Local Development:
You can pull this Actor for local development using the Apify CLI:

# Install the CLI
npm -g install apify-cli

# Pull the Actor using its unique name or ID
apify pull <ActorId>

Find the Actor's unique name or ID on its page in the Apify Console.

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 FollowingsIds now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
twitterapi
Pricing
Paid
Total Runs
602
Active Users
16
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