How to Use a Twitter Scraper to Build a Post Table
Collect public X posts into a reviewable table, with dates, engagement counts, and a repeatable search.

Build a table of public posts and engagement counts. Paste this into your agent:
Set up https://monid.ai/SKILL.md, then use Monid to collect a small sample of public posts from a Twitter search and make a table of post time, repost status, likes, reposts, replies, and views.
One prompt starts a repeatable post table.
A social media manager using a Twitter scraper usually wants a spreadsheet, not another feed to scroll. Even a sample of three posts means copying three dates, checking which items are reposts, and recording counts that change over time.
Copying by hand makes it hard to repeat the same search and keep the columns consistent. A screenshot preserves a moment, but it does not give your team a sortable table or an identifier to compare with a later collection.
This guide builds that table with Monid, the tool layer for AI agents. We'll choose a small search, collect public post records, and turn the returned fields into a review queue. The scraper supplies the records; you or your agent must select the columns, export the table, interpret the posts, and decide whether the sample covers your question.
Here is the preview from a real three-record search of NASA's public account on December 1, 2026. Times are UTC and counts are a snapshot, not current totals.
| Post time UTC | Repost | Likes | Reposts | Replies | Views |
|---|---|---|---|---|---|
| 15:10:04 | No | 426 | 77 | 27 | 126,860 |
| 09:52:14 | Yes | 0 | 21 | 0 | 46,650 |
| 07:17:38 | Yes | 0 | 78 | 0 | 49,662 |
How to use a Twitter scraper to build a post table
Start with one public account or one precise search, set a small maximum, and inspect the resulting rows before asking for a larger collection. Monid gives your agent a shared key and balance for discovering and calling tools; the Twitter tools page lists the available choices.
Step 1. Set up your agent or CLI
For an agent, get a key at app.monid.ai and give it the following instruction. Keep the key private and provide it through your agent's normal secret handling.
set up https://monid.ai/SKILL.md
For a person using a terminal, install the CLI and add the key. The CLI quickstart explains the setup.
npm install -g @monid-ai/cli
monid keys add -k <your-api-key> -l main
Step 2. Give your agent a narrow search
Ask for a small, identifiable set first. Our test used from:NASA, a maximum of three items, and the Latest sort. Those choices make the request easy to review: one organization, a bounded sample, and an order suited to a recent-post check.
Tell your agent which columns to retain and whether reposts belong in the table. A useful instruction is: "Collect up to three recent posts from NASA's public account, keep the post date and engagement counts, and label reposts separately." The maximum is a cap on output, not a promise that the search will find that many items.
The inspected input also accepts searchTerms, twitterHandles, and startUrls. Use search terms when the subject is a phrase, a handle when the account is the subject, or a URL when you already have a specific starting page. These inputs answer different questions: a topic search can include many authors, while an account search focuses on one source.
The schema also offers sort values Latest, Top, and Latest + Top. The combined option can return duplicates, so choose one order for a first pass and keep the post ID for deduplication. A language filter changes the population you collect; use it only when the research question calls for a language restriction.
Step 3. Collect the posts
The agent can discover and inspect the Apify scraper before calling it. An endpoint is the named tool your agent calls; the provider's scraper documentation describes the underlying tool. Discover and inspect are free; the collection step uses the shared balance.
Run the request and wait for completion. The tested call returned three records, with three billed result units, in approximately 6.4 seconds from creation to completion. That is one observation, not a delivery-time guarantee.
Step 4. Read and export the table
Ask your agent to select createdAt, isRetweet, likeCount, retweetCount, replyCount, and viewCount from each record. Keep id and url in your working file so that reviewers can return to a source and recognize a post collected again later.
Save the selected columns as CSV or a spreadsheet using your agent or your own script. The scraper returns records; it does not perform this table export for you. Add the search term, collection time, and sort order alongside the table so a future reader can tell how the rows were selected.
For a related task focused on searching rather than building an ongoing dataset, see how to search Twitter without an account. Here the useful distinction is that a saved table also preserves the measurement time and gives each row a role in the review process.
How do you read the results?
Read each row as a snapshot of one returned post, not as a complete account history. In this sample the first row is an original post and the other two are reposts. The latter rows show zero likes in their outer records; that does not mean the underlying original posts received no likes.
Separate originals from reposts
Use isRetweet to label reposts before ranking engagement. A repost record and its nested original can have different counts, so choose which object represents the question you are answering. If you want to assess what an account shared, keep the outer record; if you want to assess the original post, inspect the nested record and its context.
This distinction affects the sample's interpretation. Sorting only by the outer like count puts the original first, while sorting by outer repost count puts the last row first. Neither order alone establishes which subject performed best: the posts have different ages and the sample is limited to three rows.
Treat counts as observations
createdAt is the post time, whereas your collection time is when the counts were observed. Store both. A post collected soon after publication has had less time to accumulate engagement than an older post, so compare like with like before presenting a ranking.
The response also contained text, a URL, a language code, and nested author data. Use only the fields your task needs. For a team report, a link and a short editorial label are often more useful than copying a full profile into every row; review the source before making a claim about its meaning.
Record what the sample cannot show
A maximum of three records is a test of the request and table shape. It does not establish all posts from the account, all posts on a topic, audience sentiment, unique people reached, or a causal relationship between a post and its counts. A view count is a returned metric, not a count of distinct readers established by this run.
For a recurring report, preserve the raw result separately from the cleaned table. Then label every transformation, such as removing reposts or grouping posts by topic, so another reviewer can reconstruct the decision.
How much does it cost?
The Twitter scraper on Monid is priced per returned result at $0.00038 per result, Verified 2026-12-01. Discover and inspect are free; the run is the paid step. The three-row test recorded three billed units and a total charge calculated from those three units.
Set a useful limit
maxItems is the maximum number of output items. Start with a small value and examine relevance before raising it, because a larger result set can create more billed units and more work for a human reviewer. If you collect repeatedly, include both the number of searches and the maximum for each search in your budget.
The test returned exactly three items for a maximum of three. It does not establish how an empty result or a failed request is billed. Inspect the current price and review the run record for the actual charge, rather than treating the maximum as an invoice.
Keep the unit and the job distinct
One returned item is a billing unit here. One research job can involve several searches, and the same post can appear in more than one search. Deduplicating after collection helps the analysis, but it does not turn separate returned items into a single billed unit retroactively.
A recurring collection also requires somewhere to store the output and a separate way to trigger future requests. Those tasks are outside this tested scraper call, so include them in the project plan instead of treating a single result as an automated monitoring system.
How do you use the scraper in your own code?
Use the CLI to discover the Apify scraper on Monid, inspect its current input and billing, and submit the same bounded request. The input is JSON in -i; -w waits for the run to complete.
monid discover -q "twitter scraper"
monid inspect -p apify -e /apidojo/tweet-scraper
monid run -p apify -e /apidojo/tweet-scraper -w \
-i '{"searchTerms":["from:NASA"],"maxItems":3,"sort":"Latest"}'
Save the run identifier
The completed run has an ID, status, result count, billed units, and cost in its run record. Save the ID with your report so you can retrieve the result later and distinguish a completed collection from a request that has not finished.
monid runs get -r <run-id> -j
Read the output array from the returned JSON and map each item into your own table. Keep the original ID as a string: post identifiers are long, and treating them as ordinary spreadsheet numbers can change their digits. If you need a CSV, write the selected values with a CSV library so commas and line breaks in post text are escaped correctly.
Design a repeatable comparison
Store the exact query, sort, maximum, collection timestamp, and run ID with each batch. Deduplicate on the post ID within a batch, but keep separate snapshots when you want to compare engagement over time. Replacing an older row with the latest counts would erase the history you need for that comparison.
A scheduled script needs an external scheduler and a storage destination. Decide what should happen if a run returns fewer rows than requested: mark the batch for review instead of silently treating it as a complete census. That rule keeps a short sample from becoming an unsupported trend report.
Which tool should you use for each job?
The same tested scraper supports several input shapes; choose the starting point that matches the question. Monid's Twitter tools show the current catalog and pricing. The examples below describe inputs accepted by the inspected schema; only the search-term example was run for this guide.
| Use case | Best endpoint | Why? |
|---|---|---|
| Sample posts matching a query | apify /apidojo/tweet-scraper | Tested with a search term and three returned records. $0.00038 per result, Verified 2026-12-01. |
| Start from an account or post URL | apify /apidojo/tweet-scraper | The inspected schema accepts startUrls; this input was not run here. $0.00038 per result, Verified 2026-12-01. |
Choose the object before the tool
A post table answers a different question from a profile inventory or a comment thread. Specify the object, date range, and output columns before selecting a scraper. For a deeper query-based example, see the keyword to tweets scraper tutorial, which follows a search term into a dataset.
When should you use something else?
Use Apify directly if you prefer working in the provider's own interface and managing the scraper there. Use X's official developer tools if your project requires an official integration. This is the Monid blog, and Monid offers access to the Apify tool through its own shared tool layer.
Match the route to the deliverable
The tested call produces a bounded set of records. It does not independently verify completeness, generate a finished analysis, or set up a schedule. If your deliverable is a continuously updated dashboard, plan the storage, scheduler, review process, and reporting layer as separate work.
If you only need to read a handful of posts once, a manual search can be enough. The scraper becomes useful when the same columns and selection rules need to be applied again, and the saved run record matters as much as the table itself.
Conclusion
You now have a repeatable way to collect a small public post sample, label reposts, and turn returned engagement fields into a table. Keep the query, collection time, and run ID with the data, then expand the sample only after reviewing its relevance. A consistent record gives your team a clearer basis for deciding which posts deserve closer attention.
FAQ
Is a Twitter scraper free?
Discovery and inspection on Monid are free; the tested scraper charges per returned result. Its current price is on the Twitter tools page.
Do I need to write code to collect posts?
No. Give an agent the search, limit, and desired columns; it can use the tool and prepare a table for you.
How many posts can I collect at once?
Set maxItems to the desired maximum in the request. A maximum is not a guarantee of the number returned, so start small and review the result count.
Can I collect posts from a particular account?
Yes. The tested search used from:NASA; the inspected schema also accepts account handles and starting URLs.
Will a repeated search return the same posts?
A repeated search is a new snapshot. Save the query and timestamp and compare post IDs before treating changes in the returned rows as a trend.
Can I schedule the scraper?
A separate scheduler can trigger a script that runs the request. The tested call itself did not set up a recurring schedule or a storage destination.
Is scraping Twitter legal?
Rules differ by location and use; check the rules that apply to your project.
Published December 2026.


