[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [TikTok video data by ID](https://spiral.ai/integrations/opencode/tiktok-video-data-by-id)

# How to Use TikTok video data by ID in opencode

Returns data for a single TikTok video identified by its ID. Use it to populate or refresh an individual post record in a content library.

|  |  |
| --- | --- |
| Model | TikTok video data by ID |
| 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 video data by ID in opencode

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

## How to set up TikTok video data by ID 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 video data by ID**: 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-one-video-v2",
    "input": {
      "aweme_id": "7350810998023949599"
    }
  }'
```

Then paste one of the prompts above: opencode finds TikTok video data by ID on Spiral, shows the price and runs it.

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

## TikTok video data by ID tools and prices

- [TikTok App · Get single video data V2](https://spiral.ai/tools/tikhub/tikhub/tiktok-app-v3-fetch-one-video-v2) (TikHub): $0.0013 per request.

## What can you do with TikTok video data by ID in opencode?

Build a TikTok reference library containing public post records, sound examples, creator suggestions, and sharing assets. A coding agent can map retrieved responses into the project's data model and display the documented outputs.

### Campaign research brief

Find candidate sounds, collect videos using them, and inspect reference posts by ID or shared link. Add similar public creator suggestions, returned video regions where available, profile QR codes, and short links for the review meeting.

### Public creator showcase kit

Prepare an event program with public creator recommendations, selected post data, and sound examples for discussion. Retrieve posts from IDs or sharing links, check country-specific availability, and prepare profile QR codes and compact links for attendees.

### Agency campaign handoff

Package researched sounds, example videos, and suggested public collaborators for a client's next production cycle. Refresh reference posts from saved IDs or links, include regional retrieval results, and supply profile QR images and short links alongside the brief.

### TikTok reference library

Build a searchable collection of sound discoveries, sound-linked video samples, individual post records, and public creator suggestions. Accept post IDs or sharing links, retain returned regions where available, and attach profile QR codes and short links for browsing.

### Brand post audit

Refresh selected public brand posts from their IDs or sharing links. Compare the returned records and investigate availability in the countries relevant to the campaign.

## Overview

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

## TikTok video data by ID in other agents

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

## More opencode guides

- [TikTok video comments](https://spiral.ai/integrations/opencode/tiktok-video-comments)
- [TikTok video details](https://spiral.ai/integrations/opencode/tiktok-video-details)
- [TikTok video ID from link](https://spiral.ai/integrations/opencode/tiktok-video-id-from-link)
- [TikTok video details and media links](https://spiral.ai/integrations/opencode/tiktok-video-details-and-media-links)
- [TikTok video AI article](https://spiral.ai/integrations/opencode/tiktok-video-ai-article)
- [TikTok video details by ID](https://spiral.ai/integrations/opencode/tiktok-video-details-by-id)

## Questions about TikTok video data by ID in opencode

**Can opencode use TikTok video data by ID?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run TikTok video data by ID like any built-in tool.

**How much does TikTok video data by ID 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 video data by ID in opencode?**

No. Spiral runs TikTok video data by ID 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 video data by ID in opencode?**

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

**Does opencode wait while TikTok video data by ID runs?**

TikTok video data by ID runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does TikHub provide private TikTok content?**

TikHub describes its service as access to publicly available social media data. That coverage boundary does not promise access to private TikTok posts.

**How fresh are TikHub's TikTok results?**

TikHub says its API returns fresh, real-time data and never serves cached data through repeat endpoint calls. This is the provider's stated freshness behavior, rather than a measured TikTok update delay.

**Are TikTok search results a complete inventory?**

A requested page size is not a completeness guarantee: TikHub says paginated endpoints frequently return fewer items than requested. Music search also has a documented ceiling of 20 results per request.

**Is TikTok content available in every country?**

No. TikHub explicitly notes that some TikTok videos are unavailable in certain countries or regions, so a regional retrieval can produce a different availability result.

**Does retrieving TikTok content grant permission to reuse it?**

TikHub's terms say retrieved content may carry third-party intellectual property rights. TikTok also says its licenses for music outside the Commercial Music Library do not cover commercial use in content.

