← 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
| Parameter | Type | Required | Description |
|---|---|---|---|
sortBy | select | No | '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. |
endDate | text | No | Optional end date (inclusive), format YYYY-MM-DD. Leave empty to search up to now. |
geoNear | text | No | Only tweets sent near this place. Example: London or "New York". Leave empty to disable. |
language | select | No | Only tweets in this language. Use 'any' to disable. Applies to Search terms and the Advanced search (not to Search URLs). |
maxItems | number | No | Maximum number of tweets to collect for EACH search (each Search term, each URL, or the Advanced search). 0 means unlimited. |
geoWithin | text | No | Radius around 'Near this place', e.g. 15mi or 10km. Only used together with 'Near this place'. |
mediaType | select | No | Only tweets containing this media type. 'images' = photos only, 'videos' = videos only, 'media' = any image or video, 'any' = no media filter. |
splitMode | select | No | How to split the date range into segments. 'day' is the most thorough (recommended for complete collection); 'week'/'month' are faster for large ranges. |
startDate | text | No | Optional 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. |
searchUrls | array | No | Paste 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. |
searchTerms | array | No | Batch 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. |
onlyVerified | boolean | No | Only include tweets from verified accounts. |
Minimum_likes | number | No | Only include tweets with at least this many likes. |
These_hashtags | text | No | Hashtags without #, space-separated. Example: nasa spacex |
excludeReplies | boolean | No | Exclude reply tweets, keeping only standalone posts. |
Minimum_replies | number | No | Only include tweets with at least this many replies. |
Minimum_reposts | number | No | Only include tweets with at least this many reposts (retweets + quotes). |
This_exact_phrase | text | No | Tweets must contain this exact phrase. |
To_these_accounts | text | No | Only tweets sent as a reply to these accounts. Space-separated handles without @. |
All_of_these_words | text | No | Tweets must contain all of these words (space-separated). |
Any_of_these_words | text | No | Tweets containing any one of these words (space-separated) will match. |
From_these_accounts | text | No | Only tweets sent from these accounts. Space-separated handles without @. Example: elonmusk NASA |
None_of_these_words | text | No | Exclude tweets containing any of these words (space-separated). |
Mentioning_these_accounts | text | No | Only tweets mentioning these accounts. Space-separated handles without @. |
Endpoints
GET
/v1/agents/resources/inspect/apify.delicious_zebu.ultimate-x-twitter-advanced-search-scraperPublicPOST
/v1/agents/resources/estimate/apify.delicious_zebu.ultimate-x-twitter-advanced-search-scraperPublicPOST
/v1/agents/resources/run/apify.delicious_zebu.ultimate-x-twitter-advanced-search-scraperAgent keyGET
/v1/agents/resources/runs/{run_id}Agent keyQuick 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.