馃彲 Tweet Scraper V2 (Pay Per Result) - X / Twitter Scraper avatar
馃彲 Tweet Scraper V2 (Pay Per Result) - X / Twitter Scraper
Try for free

Pay $0.30 for 1,000 tweets

View all Actors
馃彲 Tweet Scraper V2 (Pay Per Result) - X / Twitter Scraper

馃彲 Tweet Scraper V2 (Pay Per Result) - X / Twitter Scraper

apidojo/tweet-scraper
Try for free

Pay $0.30 for 1,000 tweets

鈿★笍 Lightning-fast search, URL, list, and profile scraping, with customizable filters. At $0.30 per 1000 tweets, and 30-80 tweets per second, it is ideal for researchers, entrepreneurs, and businesses! Get comprehensive insights from Twitter (X) now!

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/status/1727706472623091883",
9    "https://twitter.com/apify",
10    "https://twitter.com/search?q=apify%20&src=typed_query",
11    "https://twitter.com/i/lists/78783491",
12    "https://twitter.com/elonmusk/likes",
13    "https://twitter.com/elonmusk/with_replies"
14  ],
15  "searchTerms": [
16    "web scraping",
17    "scraping from:apify"
18  ],
19  "twitterHandles": [
20    "elonmusk",
21    "taylorswift13"
22  ],
23  "conversationIds": [
24    "1754067365707563045",
25    "1732037140111102460"
26  ],
27  "maxItems": 1000,
28  "sort": "Top",
29  "tweetLanguage": "en",
30  "author": "apify",
31  "inReplyTo": "webexpo",
32  "mentioning": "elonmusk",
33  "geotaggedNear": "Los Angeles",
34  "withinRadius": "15km",
35  "geocode": "37.7764685,-122.4172004,10km",
36  "placeObjectId": "96683cc9126741d1",
37  "minimumRetweets": 5,
38  "minimumFavorites": 5,
39  "minimumReplies": 5,
40  "start": "2021-07-01",
41  "end": "2021-07-02",
42  "customMapFunction": "(object) => { return {...object} }"
43}
44EOF
45
46# Run the Actor using an HTTP API
47# See the full API reference at https://docs.apify.com/api/v2
48curl "https://api.apify.com/v2/acts/apidojo~tweet-scraper/runs?token=$API_TOKEN" \
49  -X POST \
50  -d @input.json \
51  -H 'Content-Type: application/json'
Developer
Maintained by Community
Actor metrics
  • 1k monthly users
  • 86.6% runs succeeded
  • 0.3 days response time
  • Created in Nov 2023
  • Modified about 1 hour ago