apidojo-io/apidojo-skills

scraping-twitter-profile-tweets

Extracts tweets, reply threads, and engagement metrics from a specific Twitter/X profile using apidojo's Twitter Profile Scraper on Apify.

View source
Original skill document

Rendered from the source repository. Headings, examples, code, tables, links, and referenced images are preserved.

Scraping Twitter Profile Tweets

Raw data collection. No assumed use case — returns the full dataset for downstream analysis.


Inputs

ParameterTypeRequiredDefaultNotes
startUrlsarrayOptional[]Twitter profile URLs (x.com or twitter.com formats)
twitterHandlesarrayOptional[]Twitter usernames (without @)
startstringOptionalTweets after this date (YYYY-MM-DD or YYYY-MM-DDHH:MM:SSUTC)
endstringOptionalTweets before this date (YYYY-MM-DD or YYYY-MM-DDHH:MM:SSUTC)
includeNativeRetweetsbooleanOptionalfalseInclude native retweets in results
onlyImagesbooleanOptionalfalseOnly tweets containing images
getRepliesbooleanOptionalfalseInclude tweet replies
minReplyCountnumberOptionalMinimum reply count threshold
getAboutDatabooleanOptionalfalseFetch full profile about data
maxItemsnumberOptionalUnlimitedMaximum tweets to return
customMapFunctionstringOptionalJavaScript function to transform each output object

How to Run

Using run_actor.js (recommended)

bash
# Quick answer (table)
node scripts/run_actor.js --actor "apidojo~twitter-profile-scraper" --input '{"twitterHandles": ["elonmusk"], "maxItems": 100}'

# Save as CSV
node scripts/run_actor.js --actor "apidojo~twitter-profile-scraper" --input '{"twitterHandles": ["elonmusk"], "maxItems": 100}' --output results.csv --format csv

# Save as JSON
node scripts/run_actor.js --actor "apidojo~twitter-profile-scraper" --input '{"twitterHandles": ["elonmusk"], "maxItems": 100}' --output results.json --format json

REST API fallback

bash
curl -X POST "https://api.apify.com/v2/acts/apidojo~twitter-profile-scraper/runs" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"twitterHandles": ["elonmusk"], "maxItems": 100}'

If Apify MCP is available: Use the Apify MCP call_actor tool with actor apidojo~twitter-profile-scraper and the input above.


Output Fields

FieldTypeDescription
typestringAlways tweet
idstringTweet ID
urlstringTweet URL (x.com)
twitterUrlstringTweet URL (twitter.com)
textstringTweet text content
retweetCountnumberRetweet count
replyCountnumberReply count
likeCountnumberLike count
quoteCountnumberQuote tweet count
bookmarkCountnumberBookmark count
createdAtstringCreation timestamp
langstringDetected language
isReplybooleanWhether this is a reply
isRetweetbooleanWhether this is a retweet
isQuotebooleanWhether this is a quote tweet
sourcestringTwitter client used
author.userNamestringAuthor @username
author.namestringAuthor display name
author.isVerifiedbooleanLegacy verification
author.isBlueVerifiedbooleanTwitter Blue verification
author.profilePicturestringAuthor profile picture URL
author.followersnumberAuthor follower count

Edge Cases

  • Private account: Returns 0 tweets. Tell user the account is private.
  • Account suspended: Returns error. Handle may be banned.
  • Very active account: Use maxItems to cap and control cost ($0.0004 per extra tweet).
  • Date range: Minimum 50 results needed for the query to run. If few tweets in range, widen date range.
  • Retweets in results: Actor returns all public tweets including retweets.
from this repository

More skills

All skills
apidojo-io
Community

building-twitter-prospect-lists

Builds targeted B2B prospect lists from Twitter/X profiles and posts using apidojo's Twitter scrapers on Apify. Triggers when the user asks to: find Twitter users with a specific job title or keyword in bio, build a list of founders or executives on Twitter, find people tweeting about a topic for outreach, identify potential customers on X, scrape Twitter profiles matching an ICP description, find decision-makers in a specific industry on Twitter, or export a list of leads from Twitter bios. Returns name, username, bio, follower count, location, and recent tweet samples per prospect. Ideal for B2B SDRs, growth hackers, founder-led sales teams, and partnership managers.

installs
1
GitHub stars
0
Updated
May 13
apidojo-io
Community

extracting-google-paa-questions-for-seo

Extracts Google People Also Ask questions for SEO content planning using apidojo's Google Search scraper on Apify. Triggers when the user asks to: find People Also Ask questions on Google for SEO, extract PAA questions for keyword research, discover what questions Google shows for a topic, find long-tail SEO questions from Google, research FAQ content opportunities from Google SERP, build a list of questions to answer in blog content from Google, or extract Google autocomplete and PAA data for content planning. Returns PAA questions, SERP position, related keywords, and content structure recommendations. Ideal for SEO strategists, content writers, and blog editors building search-optimized content.

installs
1
GitHub stars
0
Updated
May 13
apidojo-io
Community

extracting-tiktok-comments-for-research

Extracts and analyzes TikTok comments from any video or creator using apidojo's TikTok Comments scraper on Apify. Triggers when the user asks to: scrape TikTok comments from a video, analyze what viewers say about a TikTok post, extract comment data for sentiment analysis, find top comments on a viral TikTok video, collect TikTok user feedback from comments, build a dataset of TikTok community reactions, study audience sentiment on TikTok content, or research what a target audience cares about from TikTok comments. Returns commenter username, comment text, likes on comment, reply count, and timestamp. Ideal for market researchers, brand managers, content creators, and academic researchers.

installs
1
GitHub stars
0
Updated
May 13
apidojo-io
Community

finding-speaking-opportunities-on-twitter

Finds speaking opportunities and event organizer contacts on Twitter using apidojo's Twitter scrapers. Triggers when the user asks to: find speaking opportunities on Twitter, discover conferences looking for speakers on X, find event organizers calling for speaker submissions, identify call-for-speakers announcements in an industry on Twitter, find podcast or summit hosts looking for guests, discover virtual event opportunities for thought leadership, or build a speaking opportunity pipeline from Twitter. Returns event name, organizer handle, topic focus, deadline signals, event size, and submission URL. Ideal for startup founders, executives, coaches, and consultants building thought leadership through speaking.

installs
1
GitHub stars
0
Updated
May 13