Spiral gives your agent every tool with one account. Browse the tools →

opencode · Social Media

How to Use X community tweets in opencode

Fetch posts from an X Community with text, timestamps, views, likes, replies, reposts, bookmarks, and quote counts. Use it to compare discussions and engagement within a community.

Prompts to try with X community tweets in opencode

Copy an example into opencode, or ask in your own words.

Use X community tweets for https://x.com/i/communities/1926186499399139650 and add a table to this project showing returned post text, publication time, likes, replies, and bookmarks.

X community tweetsopencode
Try asking
  • Fetch X community tweets for https://x.com/i/communities/1926186499399139650 and create a CSV export of post IDs, text, timestamps, and all six engagement counts.

  • Use X community tweets for https://x.com/i/communities/1926186499399139650 to build a report of posts mentioning OpenAI, ChatGPT, or Claude. Show the matching text and reply counts.

  • Use X community tweets for https://x.com/i/communities/1926186499399139650 and add separate rankings by bookmarks, replies, and reposts to the project's report.

  • Fetch X community tweets for https://x.com/i/communities/1926186499399139650 and compare the results with the project's previous saved response by post ID. Report newly observed posts and engagement changes.

How to set up X community tweets in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run X community tweets

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "scrapecreators",
        "model": "scrapecreators/twitter-community-tweets",
        "input": {
          "url": "https://x.com/i/communities/1926186499399139650"
        }
      }'

Then paste one of the prompts above: opencode finds X community tweets on Spiral, shows the price and runs it.

X community tweets providers and prices

Spiral runs X community tweets through ScrapeCreators. Open a card for today's price, with every fee included.

ScrapeCreatorsSocial Media
X (Twitter) · Community Tweets
scrapecreators/twitter-community-tweets

What can you do with X community tweets in opencode?

Build a community discussion report from X post text, timestamps, and engagement counts. Coding agents can add topic filters, sortable tables, and comparisons between saved responses to your project.

Community discussion briefs

Summarize topics in the returned posts, with post IDs and publication times supporting each finding.

Content research

Compare the wording and subjects of posts with the most bookmarks, likes, or reposts to develop editorial ideas.

Product feedback review

Find mentions of a public product in returned community posts and separate feature requests, complaints, and praise.

Engagement comparisons

Rank returned posts separately by replies, bookmarks, and reposts to distinguish discussion from saving and sharing.

Repeated discussion checks

Compare successive responses by post ID to identify newly observed posts and changes in engagement on posts present in both.

Brand mention briefs

Collect returned posts mentioning a public business, then summarize the claims and accompanying engagement counts for review.

Questions about X community tweets in opencode

Can opencode use X community tweets?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run X community tweets like any built-in tool.

How much does X community tweets cost in opencode?

Up to $0.0013 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need a ScrapeCreators account to use X community tweets in opencode?

No. Spiral runs X community tweets on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.

How long does it take to set up X community tweets in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while X community tweets runs?

X community tweets runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Are X Community posts private?

X says Community posts are shared with followers and other X users outside the Community. Community discussions should not be treated as private conversations.

How fresh are the returned posts and counts?

ScrapeCreators says it fetches the latest available Community Tweets information when you make a request. That describes retrieval freshness, rather than a guarantee that every newly published post will appear.

Which engagement measurements come back?

The documented response includes seven counts: views, likes, reposts, replies, bookmarks, and quotes, plus the post's publication timestamp. There are six engagement counts; the timestamp identifies when the post was published.

Does ScrapeCreators guarantee accurate X data?

No. Its terms explicitly decline guarantees of both data availability and accuracy, including for the engagement counts returned with posts.

Can the returned data be used commercially?

ScrapeCreators permits commercial use, resale, redistribution, repackaging, and white-labeling of API output. Those permissions describe ScrapeCreators' own terms.

Get started

Start using X community tweets in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options