How to list recent tweets in an X community
Get the recent tweets, authors, timestamps and engagement counts from an X community URL, then turn five community scans into a dated worksheet for response and amplification decisions
On this page
You have five X community URLs for a product launch and need a dated table of recent posts from each one to compare authors, timestamps and engagement before deciding which community needs a response or amplification. Call anyapi.twitter.community_tweets once per community URL, then fill one worksheet from the returned tweet fields
No run has been executed for this guide. The worksheet below is a design, and the values are placeholders showing the shape
Build the input list and worksheet
Example input, with a placeholder community URL:
| url |
|---|
| (community URL) |
Replace that placeholder with the real community page address before running. The required field is url, copied from the X community page address. The contract example shows the expected URL format
The deliverable is one row per tweet. Keep the input URL in url so a merged table still shows which community a post came from
| url | authorHandle | authorName | authorVerified | createdUtc | text | favoriteCount | replyCount | retweetCount | quoteCount | views | lang | id |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| (from input) | (handle) | (display name) | (true or false) | (epoch seconds) | (post text) | (count) | (count) | (count) | (count) | (count) | (code) | (post id) |
Values here are placeholders showing the shape. createdUtc is a UTC epoch timestamp in seconds; multiply by 1000 for a JS Date in milliseconds
Run the tool once per community
Call anyapi.twitter.community_tweets through POST /v1/runs with toolId anyapi.twitter.community_tweets. The contract describes it as "List recent tweets posted in a Twitter/X community by URL." Pass the community URL in url
Read found first. When found is true, data is an object with tweets, an array. When found is false, data can be null and reason is present. The contract lists not_found as the reason value: the source states the target does not exist, or returned nothing for it
A found: false answer is a successful call, not an error. It is not a failed request, and costUsd is what it actually cost. Put this next to the scan step because a not_found community should not stop the five-community sweep. Keep a scan log beside the tweet worksheet: one row per community with url, found and reason. That log keeps a not_found community visible without inventing a tweet row
Read the fields that drive the decision
Each entry in data.tweets carries the fields for the worksheet. Use authorHandle and authorName to compare who posted. authorVerified is a boolean for whether the posting account carries an X blue verification badge. Use createdUtc for the dated column and text for the post content
The engagement fields are favoriteCount, replyCount, retweetCount, quoteCount and views. Use replyCount and quoteCount as the response signals in your review, and use retweetCount, favoriteCount and views as the amplification signals. lang is the two-letter language code X detected for the post. id identifies the post, and url from the input identifies the community
Set your own threshold before you compare the five communities. A high reply count may call for a reply, while a high retweet or view count may call for amplification. Write the threshold into the worksheet before the review pass. Sort the merged worksheet by url and createdUtc, keep text for the review pass, and use id as the post key in your notes
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to list recent tweets
for the five X community URLs below. Check the current inputs and price of
anyapi.twitter.community_tweets before running anything. Call the tool once
per URL. Return a tweet table with url, authorHandle, authorName,
authorVerified, createdUtc, text, favoriteCount, replyCount, retweetCount,
quoteCount, views, lang and id. Also return a scan log with url,
found and reason. If found is false, put not_found in the scan log and leave
the tweet table without rows for that community. Do not treat found: false
as an error.
Example community URLs, replace with your own five:
(insert community URL 1)
(insert community URL 2)
(insert community URL 3)
(insert community URL 4)
(insert community URL 5)The example placeholders are generic. Use the five community URLs from your launch list. Keep the first run to those five rows so the sweep stays at five calls
Estimated tool cost
Prices from the Purrkey catalog, read November 12, 2026. The listing for anyapi.twitter.community_tweets uses the max_call unit: "Maximum per call. Successful runs settle at the actual AnyAPI charge." The table below is a ceiling, not a settled charge
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| Single community scan | calls x max price | $0.0036 per call | 1 | $0.0036 |
| Five-community sweep | calls x max price | $0.0036 per call | 5 | $0.018 |
Agent model fees are not counted. A found: false response is still a call, and the contract says costUsd is what it actually cost
Next action
Open the tool page to run the five-community sweep: anyapi.twitter.community_tweets
Get started by giving this to your agent
- Claude Code
- Codex
- Gemini CLI
- Cursor
- GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with X (Twitter).FAQ
How do I list recent tweets in an X community by URL?
Call the Twitter Community Tweets tool with the community URL. It returns found and data, and data.tweets holds the posts the provider has for the community.
What input does the Twitter Community Tweets tool require?
The required field is url, copied from the X community page address. The contract example shows the expected X community URL format.
What fields does each tweet include?
Each tweet includes id, text, createdUtc, favoriteCount, replyCount, retweetCount, quoteCount and authorHandle. The contract also lists authorName, authorVerified, views and lang.
What does found false mean for a community scan?
A found false answer is a successful call, not an error. The reason field is present when found is false and can be the reason value for a missing target, which the contract defines as the source stating the target does not exist or returning nothing for it.
How much does a five-community sweep cost?
At the catalog price of up to $0.0036 per call, five calls are at most $0.018. A single community scan is at most $0.0036.
What should the worksheet include for each community?
Use authorHandle, authorName, authorVerified, createdUtc, text, favoriteCount, replyCount, retweetCount, quoteCount, views, lang, id and the input url. The values are for comparing authors, timestamps and engagement.
Next step
Try this with X (Twitter)
The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.