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

# How to Use TikTok account videos in opencode

Returns videos posted on a TikTok account's homepage. Use it to review a brand's own publishing separately from videos it likes or reposts.

|  |  |
| --- | --- |
| Model | TikTok account videos |
| 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 account videos in opencode

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

## How to set up TikTok account videos 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 account videos**: 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-user-post-videos",
    "input": {
      "count": 20
    }
  }'
```

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

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

## TikTok account videos tools and prices

- [TikTok App · Get user homepage video data V1](https://spiral.ai/tools/tikhub/tikhub/tiktok-app-v3-fetch-user-post-videos) (TikHub): $0.0013 per request.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| count |  | 20 | Number per page |
| region |  |  |  |
| sort_type |  | 0 | Sort type |
| unique_id |  |  | User unique_id |
| max_cursor |  | 0 | Maximum cursor |
| sec_user_id |  |  | User sec_user_id |

## What can you do with TikTok account videos in opencode?

Build a brand research view that keeps TikTok country, content, and public account connections in separate sections. A coding agent can turn retrieved records into project data and add pagination for longer lists.

### Prepare a brand account brief

Build a brief for a public brand such as Duolingo: find candidate accounts, add account country, inventory posts and music, and separate reposts from visible likes. Review only public business and creator accounts in follower and following results.

### Compare public brand activity

Compare Red Bull and GoPro using the same research scope: account discovery, country, published videos, music lists, reposts, visible likes, and connections to public organizations. Keep each activity separate so the comparison shows what each brand publishes and selects.

### Research a potential content collaboration

Prepare questions for a collaboration with a public artist or business. Review account country, published work, music, reposts, visible likes, and public creator or business connections; use account search to investigate additional candidates.

### Maintain a weekly brand research digest

Compare scheduled retrievals for a fixed list of public brands. Report changes in account discovery, country, published videos, music, reposts, visible likes, and connections to public organizations, with separate sections for each type of evidence.

### Separate published and selected content

Create an editorial review of a brand's own videos alongside its reposts, visible liked videos, and music list. Give each record its source category so the review preserves the difference between publishing and selecting content.

## Overview

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

## TikTok account videos in other agents

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

## More opencode guides

- [TikTok account secUid](https://spiral.ai/integrations/opencode/tiktok-account-secuid)
- [TikTok ad details](https://spiral.ai/integrations/opencode/tiktok-ad-details)
- [TikTok account search](https://spiral.ai/integrations/opencode/tiktok-account-search)
- [TikTok ad engagement timeline](https://spiral.ai/integrations/opencode/tiktok-ad-engagement-timeline)
- [TikTok account reposts](https://spiral.ai/integrations/opencode/tiktok-account-reposts)
- [TikTok ad keyframe analysis](https://spiral.ai/integrations/opencode/tiktok-ad-keyframe-analysis)

## Questions about TikTok account videos in opencode

**Can opencode use TikTok account videos?**

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

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

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

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

**Does opencode wait while TikTok account videos runs?**

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

**How fresh is the TikTok data?**

TikHub describes each API request as fetching fresh, real-time data, including repeated requests with identical inputs.

**Can deleted or private TikTok content be retrieved?**

TikHub says TikTok content that has been deleted or made private returns a 400 response.

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

The follower list documentation caps the requested page size at 20 and says to keep it fixed while paging.

**Does data access include ownership or unrestricted reuse?**

TikHub says it does not own the underlying data. Users remain responsible for how retrieved data is used, stored, and processed.

