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

Pay $0.30 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.30 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

1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7  "startUrls": [
8    "https://twitter.com/apify",
9    "https://twitter.com/BillGates",
10    "https://twitter.com/SpaceX/status/1725852544587727145",
11    "https://twitter.com/search?q=elon&src=typed_query"
12  ],
13  "searchTerms": [
14    "elonmusk",
15    "taylorswift13"
16  ],
17  "maxItems": 1000,
18  "twitterHandles": [
19    "elonmusk",
20    "taylorswift13"
21  ],
22  "twitterUserIds": [
23    "44196397",
24    "17919972"
25  ],
26  "customMapFunction": "(object) => { return {...object} }"
27}
28EOF
29
30# Run the Actor using an HTTP API
31# See the full API reference at https://docs.apify.com/api/v2
32curl "https://api.apify.com/v2/acts/apidojo~twitter-user-scraper/runs?token=$API_TOKEN" \
33  -X POST \
34  -d @input.json \
35  -H 'Content-Type: application/json'
Developer
Maintained by Community
Actor metrics
  • 122 monthly users
  • 98.9% runs succeeded
  • 1.0 days response time
  • Created in Nov 2023
  • Modified about 13 hours ago