How to Use Threads recent post search in Gemini CLI
This endpoint previously searched recent Threads posts, but TikHub now documents HTTP 400 responses and no returned data. Use its documentation to identify obsolete searches and migrate them to TikHub's search_posts endpoint.
Prompts to try with Threads recent post search in Gemini CLI
Copy an example into Gemini CLI, or ask in your own words.
Use Threads recent post search to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Threads recent post search and tell me what changed since last week.
Check Threads recent post search and summarize what you find in three bullet points.
Pull the newest data from Threads recent post search and give me the result as a table.
Check Threads recent post search every morning and tell me only when something changed.
How to set up Threads recent post search in Gemini CLI
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Or add it to ~/.gemini/settings.json yourself:
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start gemini and run:
/mcp auth spiral
- Check it
In Gemini CLI, run /mcp. From your shell:
gemini mcp list
Use the Spiral skill
- Send Gemini CLI 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 recent post search
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-search-recent", "input": { "query": "bitcoin" } }'
Then paste one of the prompts above: Gemini CLI finds Threads recent post search on Spiral, shows the price and runs it.
Threads recent post search providers and prices
Spiral runs Threads recent post search through TikHub. Open a card for today's price, with every fee included.
What can you do with Threads recent post search in Gemini CLI?
Build a Threads account reference table for public brands and publishers using returned IDs, usernames, and follower counts. Your coding agent can also inspect existing post-search code for the retired endpoints that TikHub documents as returning HTTP 400.
Replace obsolete brand searches
Identify retired Nike post searches and move their keyword queries to the documented search_posts replacement.
Explain a stopped discussion report
Check whether a Threads report stopped collecting posts because its search now returns the documented HTTP 400.
Correct historical coverage claims
Review existing campaign reports against the older approximately 25-result limit before describing their samples as complete.
Prevent false zero-mention reports
Make existing brand reports flag the retired search's documented failure instead of interpreting it as zero matching posts.
More on Threads recent post search and Gemini CLI
Overview
Threads recent post search in other agents
Questions about Threads recent post search in Gemini CLI
Can Gemini CLI use Threads recent post search?
Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Threads recent post search like any built-in tool.
How much does Threads recent post search cost in Gemini CLI?
$0.0026 per request. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.
Do I need a TikHub account to use Threads recent post search in Gemini CLI?
No. Spiral runs Threads recent post search 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 recent post search in Gemini CLI?
About two minutes: add the server, then sign in, then check it.
Does Gemini CLI wait while Threads recent post search runs?
Threads recent post search runs in the background. Gemini CLI starts the run, checks on it and gives you the json when it's ready.
Does this include private Threads content?
TikHub describes its Threads coverage as publicly available content that anyone can see without logging in. That coverage boundary does not include private messages or restricted posts.
What can a Threads profile search tell me?
The documented profile results include usernames, full names, user IDs, profile pictures, verification status, and follower counts. These are useful for comparing public brand, publisher, and creator accounts.
Why does an older Threads post search return no data?
TikHub says Threads recent post search and Threads top post search are no longer maintained and respond with HTTP 400. Its documentation directs users to search_posts.
Does TikHub guarantee that Threads data is current and accurate?
TikHub's terms explicitly disclaim warranties for accuracy, completeness, reliability, and timeliness. They do not establish a guaranteed freshness interval for these search results.
Does public availability give me unrestricted reuse rights?
TikHub's terms require compliance with applicable laws and the originating platform's terms. Public visibility alone does not establish unrestricted reuse permission.
Start using Threads recent post search in Gemini CLI
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Gemini CLI:
set up https://spiral.ai/SKILL.md


