← API Catalog
Apify·Async

Twitter (X) Scraper - Advanced Search & Tweets

Social$0.0004 / Result

What it does

Scrape X (Twitter) Advanced Search without login — filter by keyword, hashtag, user, engagement, media, language & date range, and batch many searches at once. Export 55 fields including media, author stats & more. Fast API, pay per result.

Returns: Scrape X (Twitter) Advanced Search without login — filter by keyword, hashtag, user, engagement, media, language & date range, and batch many searches at once. Export 55 fields including media, author stats & more. Fast API, pay per result.

Parameters

ParameterTypeRequiredDescription
sortByselectNo'Top' returns the tweets X ranks as most relevant (default — its results are stable, so they're easy to verify against the website). 'Latest' returns the full chronological timeline (more complete, but the newest-first order keeps changing). For Search URLs, the tab in the URL (f=top/f=live) is used instead.
endDatetextNoOptional end date (inclusive), format YYYY-MM-DD. Leave empty to search up to now.
geoNeartextNoOnly tweets sent near this place. Example: London or "New York". Leave empty to disable.
languageselectNoOnly tweets in this language. Use 'any' to disable. Applies to Search terms and the Advanced search (not to Search URLs).
maxItemsnumberNoMaximum number of tweets to collect for EACH search (each Search term, each URL, or the Advanced search). 0 means unlimited.
geoWithintextNoRadius around 'Near this place', e.g. 15mi or 10km. Only used together with 'Near this place'.
mediaTypeselectNoOnly tweets containing this media type. 'images' = photos only, 'videos' = videos only, 'media' = any image or video, 'any' = no media filter.
splitModeselectNoHow to split the date range into segments. 'day' is the most thorough (recommended for complete collection); 'week'/'month' are faster for large ranges.
startDatetextNoOptional start date (inclusive), format YYYY-MM-DD. Leave empty to search all time. Applies to Search terms and the Advanced search, not to Search URLs.
searchUrlsarrayNoPaste search URLs from x.com (e.g. https://x.com/search?q=...). Each is scraped exactly as-is — including any operators, since/until dates and Top/Latest tab already in the URL. The Advanced fields, Filters, date range and sort below do NOT apply to URLs; only Max items does. A profile URL (x.com/handle) is auto-converted to from:handle. List and single-tweet URLs are not supported.
searchTermsarrayNoBatch search — put one keyword or phrase per line. Each line runs as its own search and is automatically combined with the Advanced search fields below. You do NOT need operators like from: or min_faves: here — use the Advanced fields for that. Use Bulk edit to paste many at once. Max items applies to each search.
onlyVerifiedbooleanNoOnly include tweets from verified accounts.
Minimum_likesnumberNoOnly include tweets with at least this many likes.
These_hashtagstextNoHashtags without #, space-separated. Example: nasa spacex
excludeRepliesbooleanNoExclude reply tweets, keeping only standalone posts.
Minimum_repliesnumberNoOnly include tweets with at least this many replies.
Minimum_repostsnumberNoOnly include tweets with at least this many reposts (retweets + quotes).
This_exact_phrasetextNoTweets must contain this exact phrase.
To_these_accountstextNoOnly tweets sent as a reply to these accounts. Space-separated handles without @.
All_of_these_wordstextNoTweets must contain all of these words (space-separated).
Any_of_these_wordstextNoTweets containing any one of these words (space-separated) will match.
From_these_accountstextNoOnly tweets sent from these accounts. Space-separated handles without @. Example: elonmusk NASA
None_of_these_wordstextNoExclude tweets containing any of these words (space-separated).
Mentioning_these_accountstextNoOnly tweets mentioning these accounts. Space-separated handles without @.

Endpoints

GET/v1/agents/resources/inspect/apify.delicious_zebu.ultimate-x-twitter-advanced-search-scraperPublic
POST/v1/agents/resources/estimate/apify.delicious_zebu.ultimate-x-twitter-advanced-search-scraperPublic
POST/v1/agents/resources/run/apify.delicious_zebu.ultimate-x-twitter-advanced-search-scraperAgent key
GET/v1/agents/resources/runs/{run_id}Agent key

Quick start

Run it with one Agent One Key over the OpenAI-compatible resource rail.

curl -X POST https://api.deva.me/v1/agents/resources/run/apify.delicious_zebu.ultimate-x-twitter-advanced-search-scraper \
  -H "Authorization: Bearer deva_your_key_here" \
  -H "Content-Type: application/json" \
  --data '{
    "params": {}
  }'

Related in Social

Instagram Scraper
Extract Instagram posts, reels, profiles, places, hashtags, carousels, and comments. Get data from Instagram using one or more Instagram URLs or search queries: content, context, metrics, metadata. Export scraped data, run the scraper via API, schedule and monitor runs or integrate with other tools.
Tweet Scraper V2 - X Scraper / Twitter Scraper / X.com Scraper
Lightning-fast search, URL, list, and profile scraping, with customizable filters. At $0.40 per 1000 tweets, and 30-80 tweets per second, it is ideal for researchers, entrepreneurs, and businesses! Get comprehensive insights from Twitter (X) now!
TikTok Scraper
Extract data from TikTok videos, hashtags, and users. Use URLs or search queries to scrape TikTok profiles, hashtags, posts, URLs, shares, followers, hearts, names, video, and music-related data. Export scraped data, run the scraper via API, schedule and monitor runs or integrate with other tools.
Instagram Profile Scraper
Scrape all Instagram profile info. Just add Instagram usernames, IDs or URLs and extract name, join date, number of followers, location, bio, website, related profiles, video&post count, latest posts. Export scraped data, schedule scraper via API, and integrate with other tools or AI workflows.
Instagram Post Scraper
Scrape Instagram posts. Just add one or more Instagram usernames and get your data in seconds including caption, metrics, images, mentions, coauthors, recent comments, sponsored status, video duration, views. Export scraped data, schedule scraper via API, integrate with other tools or AI workflows.
Facebook Posts Scraper
Extract posts, videos, and engagement metrics from Facebook pages. Get text captions, reactions, video transcripts, images, external links, collaborators, and more from Facebook pages and profiles. Export ad data, schedule runs via API, and integrate with other tools or AI workflows.