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

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

Try for free

Pay $0.40 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.40 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.

You can access the 🏯 Twitter (X) User Scraper (Pay Per Result) programmatically from your own JavaScript applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4// Replace the '<YOUR_API_TOKEN>' with your token
5const client = new ApifyClient({
6    token: '<YOUR_API_TOKEN>',
7});
8
9// Prepare Actor input
10const input = {
11    "startUrls": [
12        "https://twitter.com/apify",
13        "https://twitter.com/BillGates",
14        "https://twitter.com/SpaceX/status/1725852544587727145",
15        "https://twitter.com/search?q=elon&src=typed_query"
16    ],
17    "searchTerms": [
18        "elonmusk",
19        "taylorswift13"
20    ],
21    "maxItems": 1000,
22    "twitterHandles": [
23        "elonmusk",
24        "taylorswift13"
25    ],
26    "twitterUserIds": [
27        "44196397",
28        "17919972"
29    ],
30    "customMapFunction": (object) => { return {...object} }
31};
32
33// Run the Actor and wait for it to finish
34const run = await client.actor("apidojo/twitter-user-scraper").call(input);
35
36// Fetch and print Actor results from the run's dataset (if any)
37console.log('Results from dataset');
38console.log(`πŸ’Ύ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
39const { items } = await client.dataset(run.defaultDatasetId).listItems();
40items.forEach((item) => {
41    console.dir(item);
42});
43
44// πŸ“š Want to learn more πŸ“–? Go to β†’ https://docs.apify.com/api/client/js/docs

🏯 Twitter (X) User Scraper (Pay Per Result) API in JavaScript

The Apify API client for JavaScript is the official library that allows you to use 🏯 Twitter (X) User Scraper (Pay Per Result) API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.

Install the apify-client

npm install apify-client

Other API clients include:

Developer
Maintained by Community

Actor Metrics

  • 195 monthly users

  • 30 stars

  • >99% runs succeeded

  • 2.8 hours response time

  • Created in Nov 2023

  • Modified 21 hours ago