[Integrations](https://spiral.ai/integrations) › [Grok](https://spiral.ai/integrations/grok) › [TikTok music search](https://spiral.ai/integrations/grok/tiktok-music-search)

# How to Use TikTok music search in Grok

Returns TikTok music matches for a keyword search. Use it to find sounds by song or artist before investigating videos that use a selected sound.

|  |  |
| --- | --- |
| Model | TikTok music search |
| 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 music search in Grok

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

## How to set up TikTok music search in Grok

Pick the way that suits you. Each takes about two minutes.

### Use the Grok connector

1. **Add a custom connector**: In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

3. **Check that it is connected**: Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

### Use the Spiral skill

1. **Send Grok 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 music search**: 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-music-search-result",
    "input": {
      "keyword": "Cat"
    }
  }'
```

Then paste one of the prompts above: Grok finds TikTok music search on Spiral, shows the price and runs it.

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

## TikTok music search tools and prices

- [TikTok App · Get music search results of specified keywords](https://spiral.ai/tools/tikhub/tikhub/tiktok-app-v3-fetch-music-search-result) (TikHub): $0.0013 per request.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| count |  | 20 | Number |
| offset |  | 0 | Offset |
| region |  | US | Region |
| filter_by |  | 0 | Filter type |
| sort_type |  | 0 | Sort type |

## What can you do with TikTok music search in Grok?

Prepare a TikTok campaign brief with public video references, sound examples, creator suggestions, and share assets. A chat app can organize retrieved results into a reviewable shortlist with links back to the selected content.

### 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.

### Sound adoption samples

Search for a song or artist, select a sound, and collect a paginated sample of videos associated with it. Use the sample to choose posts for creative review.

## Overview

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

## TikTok music search in other agents

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

## More Grok guides

- [TikTok music details](https://spiral.ai/integrations/grok/tiktok-music-details)
- [TikTok photo search](https://spiral.ai/integrations/grok/tiktok-photo-search)
- [TikTok music charts](https://spiral.ai/integrations/grok/tiktok-music-charts)
- [TikTok profile QR code](https://spiral.ai/integrations/grok/tiktok-profile-qr-code)
- [TikTok location search](https://spiral.ai/integrations/grok/tiktok-location-search)
- [TikTok profile country](https://spiral.ai/integrations/grok/tiktok-profile-country)

## Questions about TikTok music search in Grok

**Can Grok use TikTok music search?**

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run TikTok music search like any built-in tool.

**How much does TikTok music search cost in Grok?**

$0.0013 per request. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok plan is separate.

**Do I need a TikHub account to use TikTok music search in Grok?**

No. Spiral runs TikTok music search 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 music search in Grok?**

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

**Does Grok wait while TikTok music search runs?**

TikTok music search runs in the background. Grok 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.

