Go to example tasks

Scrape Tweets by Keyword & Boolean Query

Runs a precise X (Twitter) advanced search without login. Combine All_of_these_words, Any_of_these_words, None_of_these_words and This_exact_phrase into one AND/OR/NOT query — here climate tweets that must include net zero, may mention policy/summit/emissions, and exclude giveaways. Returns 55 fields per tweet: fullText, engagement, media, author stats and links. Export to CSV or JSON.

Try for free
Twitter Advanced Search Scraper - Export X Tweets & Media
Twitter Advanced Search Scraper - Export X Tweets & Mediadelicious_zebu/ultimate-x-twitter-advanced-search-scraper
Tweet URL
Created At
Author Handle
Author Name
+51 fields
Text
Number
Boolean
List
Object

Input

All of these words:climate change
This exact phrase:net zero
Any of these words:policy summit emissions
None of these words:giveaway
Sort by (Top / Latest):Top
Split mode:week
Language:en
Max items (per search):80

Output fields

Tweet URL
Created At
Author Handle
Author Name
Author Followers
Verified
Verified Type
Text
Likes
Reposts (RT+Quote)
Retweets
Quotes
Replies
Views
Bookmarks
Hashtags
Mentions
Image URLs
Video URLs
External URLs
Cashtags
Language
Is Reply
Is Retweet
Is Quote
Is Ad
Possibly Sensitive
Conversation ID
Tweet ID
In-Reply-To Handle
In-Reply-To Name
In-Reply-To URL
In-Reply-To Tweet ID
Quoted Tweet URL
Quoted Tweet ID
Quoted Text
Quoted Author Handle
Card Title
Card Description
Card Domain
Source App
Author ID
Author URL
Author Website
Author Bio
Author Location
Author Following
Author Tweet Count
Author Likes Given
Author Listed Count
Author Media Count
Author Created At
Author Profile Image
Query String
Search URL

How it works

Sign up on Apify or log in

The Twitter Advanced Search Scraper - Export X Tweets & Media Actor is ready to run with the inputs already set for "Scrape Tweets by Keyword & Boolean Query". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Scrape Tweets by Keyword & Boolean Query" task

The Twitter Advanced Search Scraper - Export X Tweets & Media Actor will start running based on the input automatically. You can also change all the input fields, like all of these words, this exact phrase, and more, to match your specific use case.

Receive the "Scrape Tweets by Keyword & Boolean Query" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as tweet url, created at, author handle, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Scrape Tweets by Keyword & Boolean Query" task via API.

Image

Integrate "Scrape Tweets by Keyword & Boolean Query" into your workflow

Connect "Scrape Tweets by Keyword & Boolean Query" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay