🏯 Twitter (X) User Scraper (Pay Per Result) avatar
🏯 Twitter (X) User Scraper (Pay Per Result)
Try for free

Pay $0.10 for 1,000 users

View all Actors
🏯 Twitter (X) User Scraper (Pay Per Result)

🏯 Twitter (X) User Scraper (Pay Per Result)

apidojo/twitter-user-scraper
Try for free

Pay $0.10 for 1,000 users

Introducing Twitter (X) User Scraper, the ultimate solution for direct user extraction from Twitter (X). It offers blazing speed and comprehensiveness, delivering lightning-fast user extraction features.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4client = ApifyClient("<YOUR_API_TOKEN>")
5
6# Prepare the Actor input
7run_input = {
8    "startUrls": [
9        "https://twitter.com/apify",
10        "https://twitter.com/BillGates",
11        "https://twitter.com/SpaceX/status/1725852544587727145",
12    ],
13    "maxItems": 1000,
14    "twitterHandles": [
15        "elonmusk",
16        "taylorswift13",
17    ],
18    "twitterUserIds": [
19        "44196397",
20        "17919972",
21    ],
22    "customMapFunction": "(object) => { return {...object} }",
23}
24
25# Run the Actor and wait for it to finish
26run = client.actor("apidojo/twitter-user-scraper").call(run_input=run_input)
27
28# Fetch and print Actor results from the run's dataset (if there are any)
29for item in client.dataset(run["defaultDatasetId"]).iterate_items():
30    print(item)
Developer
Community logoMaintained by Community
Actor metrics
  • 105 monthly users
  • 96.5% runs succeeded
  • 1.6 days response time
  • Created in Nov 2023
  • Modified about 7 hours ago

You might also like these Actors