Use Twitter Scraper Python
Maxime Dupré
Twitter (X) Scraper
Find up to 25 public English X posts about Python from Latest and Top results. Save each post once with text, links, author details, media, and engagement counts in the dataset.
Input
Output fields
Sign up on Apify or log in
The Twitter (X) Scraper Actor is ready to run with the inputs already set for "Use Twitter Scraper Python". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "Use Twitter Scraper Python" task
The Twitter (X) Scraper Actor will start running based on the input automatically. You can also change all the input fields, like result type, search query: queries, and more, to match your specific use case.
Receive the "Use Twitter Scraper Python" 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 result type, post text, post link, 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 "Use Twitter Scraper Python" task via API.

The Use Twitter Scraper Python task runs the Twitter (X) Scraper Actor on Apify. You run it from Apify Console or the Apify API, so you do not host or maintain any scraper code.
The Use Twitter Scraper Python task is an X scraper. It returns up to 25 public X posts for the query "python" as rows in a dataset.
The Use Twitter Scraper Python task gives you public X data without the official Twitter/X API. It is not the official API, so use the official API when you need its own contract.
The Use Twitter Scraper Python task does not need an API key, cookies, a session, or your Twitter/X login. You only need an Apify account.
The Use Twitter Scraper Python task returns post text, links, time, language, author details, media, and engagement counts. Some fields can be null when X does not show them.
The Use Twitter Scraper Python task lets you change searchQuery to your own words or advanced X search syntax, and set maxNbItemsToScrape to the number of posts you want.
The Use Twitter Scraper Python task uses pay-per-event pricing. Each saved row is one event at $0.0001, so 1,000 rows cost about $0.10. Extra data switches add their own small charges.
The Use Twitter Scraper Python task can run from the Apify API, the Apify clients, integrations, or an Apify schedule. Each run saves its rows to a new dataset.
The Use Twitter Scraper Python task saves rows to an Apify dataset. You can export them as JSON, CSV, Excel, XML, or HTML, or read them with the Apify API.
The Use Twitter Scraper Python task reads both Latest and Top results and saves each post once. Without startDate, a search covers the last 30 days. Set searchMode to latest, top, or latestAndTop to change it.