How to Use Threads account posts in opencode
Returns an account's available posts with text, author information, media information, and like counts. Use it to review publishing themes within roughly 25 returned items; pagination cannot extend the history.
Prompts to try with Threads account posts in opencode
Copy an example into opencode, or ask in your own words.
Use Threads account posts for @duolingo, resolving its public account ID first, and create a table of returned post text and like counts. Label the roughly 25-item coverage limit.
Use Threads account posts to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Threads account posts and tell me what changed since last week.
Check Threads account posts and summarize what you find in three bullet points.
Pull the newest data from Threads account posts and give me the result as a table.
How to set up Threads account posts in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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
- 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
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Threads account posts
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": "tikhub", "model": "tikhub/threads-web-fetch-user-posts", "input": { "user_id": "63625256886" } }'
Then paste one of the prompts above: opencode finds Threads account posts on Spiral, shows the price and runs it.
Threads account posts providers and prices
Spiral runs Threads account posts through TikHub. Open a card for today's price, with every fee included.
What can you do with Threads account posts in opencode?
Build an internal Threads research view that connects public account context with post content and conversations. Preserve the distinction between posts, account replies, reposts, and comments when mapping responses into your project's data structures.
Product launch review
Build an internal launch brief from brand profiles, account posts, replies, reposts, keyword matches, post details, engagement counts, and sampled comments. Separate the brand's messages from the questions appearing beneath them.
Brand voice comparison
Compare how public brands describe themselves, write posts, answer conversations, and select content to repost. Use post details and comment samples to connect writing choices with the reactions returned.
Editorial research brief
Research a public organization's announcement using its profile, original posts, replies, reposts, and topic search results. Add individual post content, conversation context, engagement counts, and sampled comments to support an editor's review.
Owned brand account review
Review a brand's profile presentation, publishing themes, public replies, and repost choices. Combine topic searches and post-level evidence to identify messages worth explaining more clearly in the next content plan.
Announcement media inventory
List the images and videos attached to returned brand posts and keyword matches. Inspect individual posts to distinguish text-only announcements from posts supported by media.
More on Threads account posts and opencode
Overview
Threads account posts in other agents
Questions about Threads account posts in opencode
Can opencode use Threads account posts?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Threads account posts like any built-in tool.
How much does Threads account posts cost in opencode?
$0.0026 per request. 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 TikHub account to use Threads account posts in opencode?
No. Spiral runs Threads account posts on its own TikHub account. You sign in to Spiral once and never paste a key.
How long does it take to set up Threads account posts in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Threads account posts runs?
Threads account posts runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Can I retrieve a complete Threads posting or comment history?
The documented account post and reply lists return roughly 25 available items without pagination. Post comments have the same approximate limit, so these results cannot establish a complete history.
How many comments can I inspect on one Threads post?
TikHub documents roughly 25 available comments per call and no way to retrieve more through pagination.
Does a Threads post detail response include every reply?
The conversation detail response includes only a small first-screen subset of replies. The dedicated comment retrieval is also bounded at roughly 25 available items.
Which Threads engagement counts are available?
The compact post response documents five counts: likes, replies, reposts, quotes, and views. It also includes the post text and publication timestamp.
Start using Threads account posts in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


