[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [Threads top post search](https://spiral.ai/integrations/muse-code/threads-top-post-search)

# How to Use Threads top post search in Muse Code

This endpoint previously searched popular Threads content, 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.

|  |  |
| --- | --- |
| Model | Threads top post search |
| Available through | TikHub |
| Category | Social Media |
| Price | $0.0026 per request. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Threads top post search in Muse Code

- Use Threads top 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 top post search and tell me what changed since last week.
- Check Threads top post search and summarize what you find in three bullet points.
- Pull the newest data from Threads top post search and give me the result as a table.
- Check Threads top post search every morning and tell me only when something changed.

## How to set up Threads top post search in Muse Code

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

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse Code 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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Threads top post search**: One request; the result comes back by polling or a webhook.

```bash
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-top",
    "input": {
      "query": "bitcoin"
    }
  }'
```

Then paste one of the prompts above: Muse Code finds Threads top post search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## Threads top post search tools and prices

- [Threads Web · \[Deprecated\] Search top content, use search_posts](https://spiral.ai/tools/tikhub/tikhub/threads-web-search-top) (TikHub): $0.0026 per request.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| end_cursor |  | — | Pagination cursor (no pagination, has no effect) |

## What can you do with Threads top post search in Muse Code?

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.

## Overview

- [TikHub](https://spiral.ai/providers/tikhub)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## Threads top post search in other agents

- [Amp](https://spiral.ai/integrations/amp/threads-top-post-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/threads-top-post-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/threads-top-post-search)
- [Claude Code](https://spiral.ai/integrations/claude-code/threads-top-post-search)
- [Cline](https://spiral.ai/integrations/cline/threads-top-post-search)
- [Codex](https://spiral.ai/integrations/codex/threads-top-post-search)
- [Cursor](https://spiral.ai/integrations/cursor/threads-top-post-search)
- [Devin](https://spiral.ai/integrations/devin/threads-top-post-search)
- [dots](https://spiral.ai/integrations/dots/threads-top-post-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/threads-top-post-search)
- [Gemini](https://spiral.ai/integrations/gemini/threads-top-post-search)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/threads-top-post-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/threads-top-post-search)
- [goose](https://spiral.ai/integrations/goose/threads-top-post-search)
- [Grok](https://spiral.ai/integrations/grok/threads-top-post-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/threads-top-post-search)
- [Hermes](https://spiral.ai/integrations/hermes/threads-top-post-search)
- [Instinct](https://spiral.ai/integrations/instinct/threads-top-post-search)
- [Manus](https://spiral.ai/integrations/manus/threads-top-post-search)
- [Muse](https://spiral.ai/integrations/muse/threads-top-post-search)
- [n8n](https://spiral.ai/integrations/n8n/threads-top-post-search)
- [Notion](https://spiral.ai/integrations/notion/threads-top-post-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/threads-top-post-search)
- [opencode](https://spiral.ai/integrations/opencode/threads-top-post-search)
- [Perplexity](https://spiral.ai/integrations/perplexity/threads-top-post-search)
- [Raycast](https://spiral.ai/integrations/raycast/threads-top-post-search)
- [VS Code](https://spiral.ai/integrations/vscode/threads-top-post-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/threads-top-post-search)
- [Zapier](https://spiral.ai/integrations/zapier/threads-top-post-search)

## More Muse Code guides

- [Threads recent post search](https://spiral.ai/integrations/muse-code/threads-recent-post-search)
- [Threads user posts](https://spiral.ai/integrations/muse-code/threads-user-posts)
- [Threads public profile by ID](https://spiral.ai/integrations/muse-code/threads-public-profile-by-id)
- [TikTok Ad Library Ad Library Ad](https://spiral.ai/integrations/muse-code/tiktok-ad-library-ad-library-ad)
- [Threads public profile](https://spiral.ai/integrations/muse-code/threads-public-profile)
- [TikTok Ad Library search](https://spiral.ai/integrations/muse-code/tiktok-ad-library-search)

## Questions about Threads top post search in Muse Code

**Can Muse Code use Threads top post search?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Threads top post search like any built-in tool.

**How much does Threads top post search cost in Muse Code?**

$0.0026 per request. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse Code plan is separate.

**Do I need a TikHub account to use Threads top post search in Muse Code?**

No. Spiral runs Threads top 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 top post search in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while Threads top post search runs?**

Threads top post search runs in the background. Muse Code 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.

