[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [TikTok creator playlists](https://spiral.ai/integrations/opencode/tiktok-creator-playlists)

# How to Use TikTok creator playlists in opencode

Returns a TikTok account's playlist list. Use it to review how an account organizes its content before examining a selected collection.

|  |  |
| --- | --- |
| Model | TikTok creator playlists |
| 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 creator playlists in opencode

- Use TikTok creator playlists to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from TikTok creator playlists and tell me what changed since last week.
- Check TikTok creator playlists and summarize what you find in three bullet points.
- Pull the newest data from TikTok creator playlists and give me the result as a table.
- Check TikTok creator playlists every morning and tell me only when something changed.

## How to set up TikTok creator playlists 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 creator playlists**: 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-web-fetch-user-play-list",
    "input": {
      "secUid": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM"
    }
  }'
```

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

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

## TikTok creator playlists tools and prices

- [TikTok Web · Get user play list](https://spiral.ai/tools/tikhub/tikhub/tiktok-web-fetch-user-play-list) (TikHub): $0.0013 per request.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| count |  | 30 | Number per page |
| cursor |  | 0 | Page cursor |

## What can you do with TikTok creator playlists in opencode?

Build a TikTok research importer that handles content lists and identifier responses correctly. A coding agent can inspect actual responses, adapt your project's parsers, and keep account, video, collection, and LIVE room records distinct.

### Prepare a brand content review

Review a public brand's profile, published posts, playlist organization, selected collections, and reposts before drafting an editorial brief.

### Compare public creator content

Compare the returned profiles and content lists of public creators being considered for a campaign. Examine published work, organized collections, and reposts separately.

### Build an internal editorial inventory

Organize a brand's returned profile, posts, playlists, collection contents, and reposts into an internal reference for content planning.

### Review changes to a brand's TikTok presence

Compare successive retrievals of a public brand's profile and content lists. Report observed additions or differences in posts, playlists, collections, and reposts.

### Create TikTok response fixtures

Collect actual responses for an internal parser test suite: account profiles, content lists, extracted identifiers, generated email hashes, and web device ID responses.

### Debug a TikTok data importer

Inspect the actual response at each failing stage: link resolution, hash generation, web device ID generation, profile retrieval, or content-list retrieval. Use those responses to locate the parser or identifier mismatch.

## Overview

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

## TikTok creator playlists in other agents

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

## More opencode guides

- [TikTok creator milestones](https://spiral.ai/integrations/opencode/tiktok-creator-milestones)
- [TikTok creator posts](https://spiral.ai/integrations/opencode/tiktok-creator-posts)
- [TikTok content translation](https://spiral.ai/integrations/opencode/tiktok-content-translation)
- [TikTok creator profile](https://spiral.ai/integrations/opencode/tiktok-creator-profile)
- [TikTok connected accounts](https://spiral.ai/integrations/opencode/tiktok-connected-accounts)
- [TikTok creator reposts](https://spiral.ai/integrations/opencode/tiktok-creator-reposts)

## Questions about TikTok creator playlists in opencode

**Can opencode use TikTok creator playlists?**

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

**How much does TikTok creator playlists 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 creator playlists in opencode?**

No. Spiral runs TikTok creator playlists 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 creator playlists in opencode?**

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

**Does opencode wait while TikTok creator playlists runs?**

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

**Can TikHub retrieve private TikTok content?**

TikHub states that it accesses only publicly available data. Its documented scope excludes private, restricted, and password-protected content.

**Does TikHub guarantee that TikTok data is complete and current?**

TikHub disclaims guarantees of data accuracy, completeness, reliability, and timeliness. A returned content list therefore carries no guarantee of complete historical coverage or immediate updates.

**How many TikTok posts can one page contain?**

TikTok creator posts returns up to 15 posts per page, ordered newest first. The deprecated sorting setting does not change that order.

**Can I request larger pages of TikTok reposts?**

TikTok creator reposts uses a fixed page size of 20. TikHub explicitly says that this size cannot be changed.

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

TikHub's service license specifies lawful internal business purposes. TikTok's U.S. terms separately prohibit automated scripts that collect information from or interact with its services.

