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

# How to Use TikTok home feed videos in opencode

Returns recommended video data from TikTok's home feed. Use it to review feed recommendations alongside a keyword search or a category-based Explore sample.

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

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

## How to set up TikTok home feed 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 home feed 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-web-fetch-home-feed",
    "input": {
      "count": 15
    }
  }'
```

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

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

## TikTok home feed videos tools and prices

- [TikTok Web · Home Feed](https://spiral.ai/tools/tikhub/tikhub/tiktok-web-fetch-home-feed) (TikHub): $0.0013 per request.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| count |  | 15 | Number per page |
| cookie |  | — | User's own cookie, optional parameter, used for personalized recommendations of interface return data. |
| region |  | US | Region code, optional, affects the region of recommended content, e.g. US/GB/JP/KR/SG, default US. |

## What can you do with TikTok home feed videos in opencode?

Build an internal TikTok research view using discovery results, public LIVE status, messaging parameters, or gift reference data. A coding agent can work with actual responses to implement pagination, batch limits, and empty-room handling.

### Prepare a brand's content brief

Search for LEGO, review Explore examples in the relevant category, and compare them with home feed recommendations. Use the returned video data to assemble examples for an internal creative brief.

### Compare discovery routes

Compare keyword results for espresso with food Explore results and a home feed sample. Identify which examples each route surfaces without treating their combined results as a complete TikTok inventory.

### Build a recurring editorial shortlist

Collect search results for Nintendo Switch, gaming Explore results, and home feed recommendations on a recurring schedule. Keep the returned examples organized by discovery route for an editor to review.

### Review a product category before a campaign

Gather running shoe search results, sports Explore examples, and a home feed sample. Give a campaign team a concrete set of TikTok examples to examine before choosing creative concepts.

## Overview

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

## TikTok home feed videos in other agents

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

## More opencode guides

- [TikTok hashtag videos](https://spiral.ai/integrations/opencode/tiktok-hashtag-videos)
- [TikTok keyword search](https://spiral.ai/integrations/opencode/tiktok-keyword-search)
- [TikTok hashtag search](https://spiral.ai/integrations/opencode/tiktok-hashtag-search)
- [TikTok keyword search link](https://spiral.ai/integrations/opencode/tiktok-keyword-search-link)
- [TikTok hashtag details](https://spiral.ai/integrations/opencode/tiktok-hashtag-details)
- [TikTok keyword videos](https://spiral.ai/integrations/opencode/tiktok-keyword-videos)

## Questions about TikTok home feed videos in opencode

**Can opencode use TikTok home feed videos?**

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

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

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

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

**Does opencode wait while TikTok home feed videos runs?**

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

**Can TikHub return private TikTok content?**

TikHub's privacy policy excludes private, restricted, and password-protected content from the platforms it supports.

**Is every TikTok response newly fetched?**

TikHub says it may cache and store publicly available data returned through its API. A response should therefore not be described as a guaranteed fresh read from TikTok.

**Does TikHub guarantee accurate, complete, or current TikTok data?**

No. TikHub's terms expressly disclaim a guarantee that delivered data is accurate, complete, or current.

**Does access include permission to reuse TikTok content?**

TikHub's terms require users to respect content creators' intellectual property rights. Retrieving content does not remove that requirement.

**Do TikTok discovery results represent all eligible content?**

TikTok describes its recommendation systems as selecting and ranking content from a larger eligible collection. Recommendation results are a selected view, so they should not be presented as a complete inventory.

