Twitter Explorer 🦜 avatar
Twitter Explorer 🦜

Pricing

$30.00/month + usage

Go to Store
Twitter Explorer 🦜

Twitter Explorer 🦜

Developed by

cat

cat

Maintained by Community

💫 All-in-one Twitter X.com Scraper 🐦🐦‍⬛🐤

5.0 (1)

Pricing

$30.00/month + usage

5

Total users

573

Monthly users

21

Runs succeeded

96%

Last modified

9 days ago

Welcome to Twitter X-Plorer

description

🦜 About Twitter.com

Twitter is an online social media and social networking service owned and operated by American company X Corp., the legal successor of Twitter, Inc. Twitter users outside the United States are legally served by the Ireland-based Twitter International Unlimited Company, which makes these users subject to Irish and European Union data protection laws[9][10]

🦜 About This Actor

💫 All-In-One solution for Twitter Data Extraction

  • ⭐Scrape User timeline, followers, following, media, likes, lists, topics, highlights, etc.
  • ⭐Scrape List timeline, members, followers
  • ⭐Scrape Specific Topic
  • ⭐Scrape Status & Threads
  • ⭐Scrape Media: Photo / Video / Gif, etc.
  • ⭐Advanced Search
  • ⭐Content Formatting: HTML or Plain TEXT
  • ⭐Low Memory Cost
  • ⭐A.S.A.P

DISCLAIMER:

  • This Twitter scraper only collects data that’s publicly available. This means data that’s accessible without logging in to Twitter and without accepting Twitter’s terms of use. Please note that if you accepted Twitter’s terms of use, your ability to scrape Twitter data may be limited. If that is the case, please review the terms and make an informed decision yourself.
  • By providing your personal auth_token, you agree to obey twitter TOS, especially regarding rate-limit policy 50 request per 15 minutes enforced by elonmusk

🦜 Tutorial

👉 Parameters

ParameterTypeOptionsDescription
querystringList of Query, Keywords or URL
filtersobjectAdvanced search filters
limitintegernumericNumber of results (per-query)
contentstringtext, htmlFormat of results content
tokenstringcookieValue of auth_token cookie

💫 NOTES :

If a multiline Query is provided (Queries separated by line breaks), each line will be processed separately.

Example :

👉 Basic Usage

Scrape user profiles

{ "query": "@elonmusk @apify" }

Scrape user posts

{ "query": "@elonmusk/posts" }

Searching for posts (Cookies required)

{ "query": "what is happening", "limit": 10 }

Scrape an URL

{ "query": "https://x.com/elonmusk/media", "limit": 10 }

👉 Advanced Usage

Twitter Query Language (TQL)

[ <COMMAND:> | # | @ ] [ <NAME> | <ID> | <KEYWORD> | <URL> ] [ /<SECTION> ]

QUERIES Overview

FormatExamplesDescription
<KEYWORD>web scrapingSearch Anything
jobs:<KEYWORD>jobs:python engineerSearch Jobs
#<HASHTAG>#AISearch Hashtag
@<USER>
/info /replies /media /articles
/likes /affiliates /followers
/following /lists /topics
/highlights /subscriptions
@elonmusk
@elonmusk/info
@elonmusk/replies
@elonmusk/followers
Scrape User Data
<STATUS_ID>
/info /quotes /reposts /likes
1562015197543497728Scrape Posting (Tweet)
topic:<TOPIC_ID>topic:1280550787207147521Scrape Topic
list:<LIST_ID>
/info /posts
/members /followers
list:1334803406523953152
list:1334803406523953152/posts
list:1334803406523953152/members
Scrape List
comm:<COMM_ID>Scrape Community
https:<URL>https://x.com/...Start URL

❓ Possible QUERY Values :

FormatExampleDescription
<KEYWORD>web scrapingSearch Anything
#<HASHTAG>#AISearch Hashtag
@<USER>@elonmuskScrape User Data
/info@elonmusk/infoUser info
/replies@elonmusk/replies
/highlights@elonmusk/highlights
/media@elonmusk/media
/articles@elonmusk/articles
/likes@elonmusk/likes
/lists@elonmusk/lists
/topics@elonmusk/topics
/affiliates@elonmusk/affiliates
/followers@elonmusk/followers
/verified_followers@elonmusk/verified_followers
/followers_you_know@elonmusk/followers_you_know
/following@elonmusk/following
/subscriptions@elonmusk/subscriptions
<STATUS_ID>1562015197543497728Scrape Posting (Tweet)
/info1562015197543497728/infoPost content
/replies1562015197543497728/replies
/quotes1562015197543497728/quotes
/reposts1562015197543497728/reposts
/likes1562015197543497728/likes
/analytics1562015197543497728/analytics
topic:<TOPIC_ID>topic:1280550787207147521Scrape Topic Timeline
list:<KEYWORD>list:java scriptSearch List
list:<LIST_ID>list:1334803406523953152List Data
/infolist:1334803406523953152/infoList info
/postslist:1334803406523953152/postsList posts
/memberslist:1334803406523953152/membersList members
/followerslist:1334803406523953152/followersList followers
com:<KEYWORD>com:pythonSearch Community
com:<COM_ID>com:1672458762852921344Community Data
/infocom:1672458762852921344/infoCommunity info
/topcom:1672458762852921344/topTop posts
/latestcom:1672458762852921344/latestLatest posts
/mediacom:1672458762852921344/mediaMedia posts
/memberscom:1672458762852921344/membersMembers list
/moderatorscom:1672458762852921344/moderatorsModerators list
job:<KEYWORD>job:python engineerSearch Jobs
job:<JOB_ID>job:1723106649395671391Job Data
https:<URL>https://x.com/...Start URL

Some function need auth_token to work properly (required sign-in to Twitter.com). When you receive log error something like below, then probably you need to supply parameters with auth_token value.

❌ Authorization: Denied by access control: unspecified reason
❌ HTTP error 404: Not Found

Important Notes :

  • This is NOT your APIFY Token, instead a value from your browser cookie, named auth_token.
  • Use this only if necessary, as it have risk your account getting blocked by @elonmusk.
  • Your cookies is your SECRET. Please don't share it with someone else.
  • The auth_token value will always valid until you logged out from Twitter.com

To get auth_token cookie value :

  1. Login to Twitter.com
  2. Open Chrome Developer Tools (Ctrl + Shift + I)
  3. Open Application Tab
  4. On left panel, go to: Storage -> Cookies -> https://twitter.com
  5. Find cookie named auth_token (40 characters string value).
  6. Copy & Paste Here :
{
"query": "@elonmusk/followers",
"token": "YOUR_TWITTER_AUTH_TOKEN"
}

enter image description here

🦜 Input Examples

Example #1 : Searching

Search for Posts by Keyword

{"query": "Web Scraping"}

Search for Posts by #Hashtag

{"query": "#AI"}

Example #2 : User Info

User profile @USERNAME

{"query": "@apify"}

User media @USERNAME/media

{"query": "@apify/media"}

User following Lists: @USERNAME/lists

{"query": "@elonmusk/lists"}

Example #3 : Topic

Topic latest Posts : topic/<TOPIC_ID>

{"query": "topic/1280550787207147521/posts"} # Arts & Culture

List lates Posts :list/<LIST_ID>

{"query": "list/1334803406523953152/posts"} # Web scraping + automation

Example #4 : filters parameters

{
"filters.from" : "@apify", # (@ symbol is optional)
"filters.hashtag" : "#scraper", # (# symbol is optional)
"filters.type" : "videos",
"filters.phrase" : "Space The Final Frontier",
"filters.replies" : 250,
"filters.since" : "2022-01-20"
}

Example #5 : Content Formatting

In case you want content format in HTML use content parameter :

{ "query": "@apify", "limit": 10, "content": "html" }

🦜 Advanced Search Filters

ParameterTypeExampleSummaryDescription
filters.rawstringAnimals +cat -dog lang:enSearching raw query
filters.typestringOne of: latest, top, photos, videos, peoplePost type
filters.wordstringwhat’s happeningboth “what’s” and “happening”All of these words
filters.phrasestringhappy hourthe exact phrase “happy hour”This exact phrase
filters.anystringcats dogseither “cats” or “dogs” (or both)Any of these words
filters.excludestringcats dogsdoes not contain “cats” and does not contain “dogs”None of these words
filters.hashtagstring#ThrowbackThursdaythe hashtag #ThrowbackThursdayThese hashtags
filters.fromstring@Twittersent from @TwitterFrom these accounts
filters.tostring@Twittersent in reply to @TwitterTo these accounts
filters.mentionstring@SFBART @Caltrainmentions @SFBART or mentions @CaltrainMentioning these accounts
filters.repliesinteger250Minimum replies
filters.favesinteger200Minimum likes
filters.retweetsinteger100Minimum retweets
filters.sincedate2022-01-20Since date YYYY-MM-DD
filters.untildate2022-02-30Until date YYYY-MM-DD

🦜 Did You Know ?

Twitter internally detect faces on images.

...
"media": [
{
"id": "1695968940185534464",
"image": "https://pbs.twimg.com/media/F4lKw_XawAAT-xn.jpg",
"url": "https://t.co/Lk3VtAaKQ7",
"features": {
"orig": {
"faces": [{"x": 315, "y": 130, "h": 232,"w": 232}]
}
},
"__type": "photo",
"key": "3_1695968940185534464"
}
]

🦜 To-Do List

  • Constructing status URL: https://twitter.com/_/status/<status_id> or https://twitter.com/<screen-name>/status/<status-id>
  • Resize and format images URL: https://pbs.twimg.com/media/xxxxxxxxxx.jpg?format=[jpg|png|webp]&name=[orig|normal|large|medium|thumb]

🦜 Support

⚡️ Feel free to reach out to the developer for any issues or suggestions for improvement.