[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [TikTok live audience rankings](https://spiral.ai/integrations/opencode/tiktok-live-audience-rankings)

# How to Use TikTok live audience rankings in opencode

Returns the audience ranking list inside a TikTok live room. Use it to summarize ranked participation in a public business broadcast without identifying individual viewers.

|  |  |
| --- | --- |
| Model | TikTok live audience rankings |
| Available through | TikHub |
| Category | Social Media |
| Price | $0.0013 per request. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with TikTok live audience rankings in opencode

- Use TikTok live audience rankings for Sephora's public broadcast while it is live, then add only an aggregate count of ranked entries to our report.
- Use TikTok live audience rankings to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from TikTok live audience rankings and tell me what changed since last week.
- Check TikTok live audience rankings and summarize what you find in three bullet points.
- Pull the newest data from TikTok live audience rankings and give me the result as a table.

## How to set up TikTok live audience rankings 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.

```bash
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.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
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.

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

### Call the Spiral API

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

2. **Run TikTok live audience rankings**: 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/tiktok-app-v3-fetch-live-ranking-list",
    "input": {
      "room_id": "7358603858249009962",
      "anchor_id": "7222941468722758702"
    }
  }'
```

Then paste one of the prompts above: opencode finds TikTok live audience rankings on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## TikTok live audience rankings tools and prices

- [TikTok App · Get live room ranking list](https://spiral.ai/tools/tikhub/tikhub/tiktok-app-v3-fetch-live-ranking-list) (TikHub): $0.0013 per request.

## What can you do with TikTok live audience rankings in opencode?

Build a TikTok research report in your project from retrieved discovery or broadcast data. Give recommended videos, places, sounds, live rankings, and merchandise their own views so reviewers can inspect the evidence behind each finding.

### Document a public business broadcast

During a broadcast, collect room details, leaderboard results, and available merchandise lists. Summarize audience rankings as aggregate counts, and use live search to place the broadcast alongside other results for its topic.

### Assemble an agency research digest

Create a daily internal digest covering recommended videos, matching places, music discoveries, public business broadcasts, leaderboard results, and available merchandise. Keep audience rankings aggregated and label legacy product results as potentially incomplete or stale.

### Compare public retail broadcasts

Build a comparison sheet from active business room details, live leaderboard results, aggregate audience ranking counts, and returned merchandise lists. Use it to identify differences worth checking directly in the broadcasts.

### Build a live commerce reporting view

Display topic-matched broadcasts beside active room details, leaderboard observations, aggregate ranking counts, and available merchandise. Make empty room results and potentially stale product lists visible to the person reviewing the report.

### Research an event sponsorship concept

Look up the event venue, collect recommended video references, and investigate chart sounds. Review relevant public business broadcasts and leaderboard observations, using only aggregate audience ranking counts in the sponsorship brief.

## Overview

- [TikHub](https://spiral.ai/providers/tikhub)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## TikTok live audience rankings in other agents

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

## More opencode guides

- [TikTok liked videos](https://spiral.ai/integrations/opencode/tiktok-liked-videos)
- [TikTok live daily rankings](https://spiral.ai/integrations/opencode/tiktok-live-daily-rankings)
- [TikTok keyword videos](https://spiral.ai/integrations/opencode/tiktok-keyword-videos)
- [TikTok live product list](https://spiral.ai/integrations/opencode/tiktok-live-product-list)
- [TikTok keyword search link](https://spiral.ai/integrations/opencode/tiktok-keyword-search-link)
- [TikTok live room details](https://spiral.ai/integrations/opencode/tiktok-live-room-details)

## Questions about TikTok live audience rankings in opencode

**Can opencode use TikTok live audience rankings?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run TikTok live audience rankings like any built-in tool.

**How much does TikTok live audience rankings cost in opencode?**

$0.0013 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 TikTok live audience rankings in opencode?**

No. Spiral runs TikTok live audience rankings on its own TikHub account. You sign in to Spiral once and never paste a key.

**How long does it take to set up TikTok live audience rankings in opencode?**

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

**Does opencode wait while TikTok live audience rankings runs?**

TikTok live audience rankings runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Can this retrieve private TikTok content?**

TikHub describes its TikTok data as publicly available content. It excludes private accounts, direct messages, and non-public analytics.

**How fresh is the TikTok data?**

TikHub says requests retrieve fresh data. Its guidance makes an exception for legacy commerce routes under the app API, which may return incomplete or stale results.

**Does a short page mean there are no more results?**

No. TikHub says paginated endpoints frequently return fewer items than requested, so a short page alone does not establish that every matching result was retrieved.

**Does TikHub guarantee accurate and complete TikTok data?**

No. TikHub's terms explicitly decline to warrant that returned data is accurate, complete, or current.

**What use does TikHub's service license permit?**

TikHub licenses its service for lawful internal business purposes, subject to its terms.

