Go to example tasks

Scrape tweets by hashtag

Collects the latest tweets for one or more hashtags with full text, view count, likes, retweets, replies and author profile. Use it to measure campaign reach, follow an event or build a dataset for sentiment analysis.

Try for free
X.com Twitter API Scraper
X.com Twitter API Scraperxtdata/twitter-x-scraper
Tweet URL
Text
Author
Author name
+10 fields
Text
Number
Boolean
List
Object

Input

Search terms:#AI
Sort By:Latest
Maximum number of items per query:200
Tweet language:en

Output fields

Tweet URL
Text
Author
Author name
Author followers
Views
Likes
Retweets
Replies
Quotes
Bookmarks
Language
Posted at
Matched query

How it works

Sign up on Apify or log in

The X.com Twitter API Scraper Actor is ready to run with the inputs already set for "Scrape tweets by hashtag". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Scrape tweets by hashtag" task

The X.com Twitter API Scraper Actor will start running based on the input automatically. You can also change all the input fields, like search terms, sort by, and more, to match your specific use case.

Receive the "Scrape tweets by hashtag" 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, text, author, 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 hashtag" task via API.

Image

Integrate "Scrape tweets by hashtag" into your workflow

Connect "Scrape tweets by hashtag" 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

Frequently asked questions

Yes. Add each hashtag as a separate search term. This task returns up to maxItems tweets per hashtag.

Yes. Set start and end dates in the full input of this task, or use since: and until: operators in the search term.

This task saves results to a dataset you can download as JSON, CSV, Excel or XML, or read through the Apify API.