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

# How to Use TikTok song details in opencode

Returns a TikTok sound's title, artist, album, duration, artwork, audio link, and video usage count. Use it to identify an exact sound or compare its adoption over time; fetching the videos that use it requires a separate lookup.

|  |  |
| --- | --- |
| Model | TikTok song details |
| Available through | ScrapeCreators |
| Category | Social Media |
| Price | Up to $0.0013 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with TikTok song details in opencode

- Use TikTok song details for Micah Tyler's sound 6717159721276540930 and add the returned metadata to this project's music catalog.
- Use TikTok song details for sound 6717159721276540930 and build a duration comparison against any returned full-song information.
- Use TikTok song details for sound 6717159721276540930 and add today's video usage count to our existing adoption chart.
- Use TikTok song details for sound 6717159721276540930 and populate our sound review component with its artwork and attribution.
- Use TikTok song details for sound 6717159721276540930 and compare its returned title and artist with the project's existing catalog entry.

## How to set up TikTok song details 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 song details**: 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": "scrapecreators",
    "model": "scrapecreators/tiktok-song",
    "input": {
      "clipId": "7439295283975702544"
    }
  }'
```

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

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

## TikTok song details tools and prices

- [TikTok · Get Song Details](https://spiral.ai/tools/scrapecreators/scrapecreators/tiktok-song) (ScrapeCreators): Up to $0.0013 per run.

## What can you do with TikTok song details in opencode?

Build a sound adoption chart from repeated TikTok usage counts. A coding agent can add sound metadata to the project's catalog and calculate changes between saved observations.

### Identify campaign audio

Resolve an exact TikTok sound into a readable title and artist for a campaign brief.

### Measure sound adoption

Compare repeated usage counts for a selected sound to calculate changes in the number of videos using it.

### Complete a music research catalog

Fill sound records with album information, artwork, and audio references for editorial review.

### Compare an audio shortlist

Put selected sounds side by side by duration and video usage count before choosing candidates for further review.

### Plan an edit around a sound

Check the selected sound's duration before drafting a video sequence around it.

### Prepare music clearance research

Collect the sound title, artist, and album as references for a separate licensing review.

## Overview

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

## TikTok song details in other agents

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

## More opencode guides

- [TikTok simplified account posts](https://spiral.ai/integrations/opencode/tiktok-simplified-account-posts)
- [TikTok top search posts](https://spiral.ai/integrations/opencode/tiktok-top-search-posts)
- [TikTok similar ads](https://spiral.ai/integrations/opencode/tiktok-similar-ads)
- [TikTok trending hashtags](https://spiral.ai/integrations/opencode/tiktok-trending-hashtags)
- [TikTok similar account recommendations](https://spiral.ai/integrations/opencode/tiktok-similar-account-recommendations)
- [TikTok trending posts](https://spiral.ai/integrations/opencode/tiktok-trending-posts)

## Questions about TikTok song details in opencode

**Can opencode use TikTok song details?**

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

**How much does TikTok song details cost in opencode?**

Up to $0.0013 per run. 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 ScrapeCreators account to use TikTok song details in opencode?**

No. Spiral runs TikTok song details on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.

**How long does it take to set up TikTok song details in opencode?**

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

**Does opencode wait while TikTok song details runs?**

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

**What does the sound usage count measure?**

It counts videos using the specific TikTok sound. It is a measure of adoption across posts, rather than a count of audio plays or listeners.

**Does the response include the videos using the sound?**

TikTok song details returns sound metadata and a usage count. ScrapeCreators documents a separate lookup for the videos using that sound.

**Is the sound duration the full song length?**

They can differ. The documented example has a 60-second sound and a separate full-song duration of 195 seconds.

**How fresh is the TikTok data?**

ScrapeCreators says cache misses fetch live public data directly from TikTok. Cache hits return an earlier retrieval, so freshness depends on whether the response came from the cache.

