[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [TikTok trending hashtags](https://spiral.ai/integrations/codex/tiktok-trending-hashtags)

# How to Use TikTok trending hashtags in Codex

Returns Creative Center's hashtag rankings with views, post counts, and popularity curves. Use it to discover topics across markets before examining a hashtag's audience in detail.

|  |  |
| --- | --- |
| Model | TikTok trending hashtags |
| 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 trending hashtags in Codex

- Use TikTok trending hashtags for the United States over the past 30 days. Add a table to this project's research page with hashtag names, ranks, views, and post counts.
- Use TikTok trending hashtags for Japan over the past 30 days. Add the returned rankings to the project's market research page and summarize three topics worth reviewing.
- Use TikTok trending hashtags to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from TikTok trending hashtags and tell me what changed since last week.
- Check TikTok trending hashtags and summarize what you find in three bullet points.

## How to set up TikTok trending hashtags in Codex

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

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex 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 trending hashtags**: 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-ads-get-trends-hashtag-list",
    "input": {
      "page": 1
    }
  }'
```

Then paste one of the prompts above: Codex finds TikTok trending hashtags on Spiral, shows the price and runs it.

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

## TikTok trending hashtags tools and prices

- [TikTok Ads · Get trending hashtag list](https://spiral.ai/tools/tikhub/tikhub/tiktok-ads-get-trends-hashtag-list) (TikHub): $0.0013 per request.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page |  | 1 | Page number |
| limit |  | 20 | Items per page |
| cookie |  | — | Custom Cookie string (optional) |
| time_range |  | 7 | 30/90 /Time range in days |
| industry_id |  | — | First-level industry ID (optional) |
| country_code |  | US | Country code |

## What can you do with TikTok trending hashtags in Codex?

Build a research view that puts TikTok trend evidence and ad references beside a campaign brief. A coding agent can organize Creative Center responses in project files and show the evidence behind each proposed content idea.

### Product launch research

Prepare a skincare launch brief with hashtag rankings, audience context, and relevant ad examples. Separate the observed data from proposed messages to test.

### Seasonal content planning

Plan holiday content using trending topics, their popularity curves, and seasonal ad descriptions. Turn the findings into original concepts with a clear reference for each idea.

### Agency research briefs

Build a client briefing that brings together category trends, hashtag audience summaries, and public advertiser examples. Explain which evidence supports each proposed content direction.

### Creative test planning

Create a backlog of content hypotheses from hashtag momentum, audience profiles, and ad messaging. Give each hypothesis an observed reference and a proposed test.

### Market-specific topic selection

Compare hashtag rankings across markets, then use audience age and representative-country summaries to assess topic fit for a regional content plan.

## Overview

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

## TikTok trending hashtags in other agents

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

## More Codex guides

- [TikTok top search posts](https://spiral.ai/integrations/codex/tiktok-top-search-posts)
- [TikTok trending posts](https://spiral.ai/integrations/codex/tiktok-trending-posts)
- [TikTok song details](https://spiral.ai/integrations/codex/tiktok-song-details)
- [TikTok trending video details](https://spiral.ai/integrations/codex/tiktok-trending-video-details)
- [TikTok simplified account posts](https://spiral.ai/integrations/codex/tiktok-simplified-account-posts)
- [TikTok trending video rankings](https://spiral.ai/integrations/codex/tiktok-trending-video-rankings)

## Questions about TikTok trending hashtags in Codex

**Can Codex use TikTok trending hashtags?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run TikTok trending hashtags like any built-in tool.

**How much does TikTok trending hashtags cost in Codex?**

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

**Do I need a TikHub account to use TikTok trending hashtags in Codex?**

No. Spiral runs TikTok trending hashtags 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 trending hashtags in Codex?**

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

**Does Codex wait while TikTok trending hashtags runs?**

TikTok trending hashtags runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**What public data does TikTok Creative Center cover?**

Creative Center provides public trend information and ad examples. Its hashtag rankings include views and post counts, while ad search includes advertiser names, landing pages, and engagement counts.

**Does Creative Center show every TikTok advertiser?**

Top Ads only includes creatives authorized by advertisers for display in Creative Center. A missing advertiser or campaign therefore does not establish that it has never advertised on TikTok.

**What audience information does Creative Center provide for hashtags?**

Hashtag analytics provides an audience age profile and representative countries alongside the popularity curve and related videos. These are audience summaries for a hashtag, rather than individual viewer records.

**How many ad examples can a search return at once?**

Ad search documents a maximum of 50 results per page, with 20 as the default. That is a page limit, not the size of TikTok's advertising inventory.

**Can I download Creative Center ads to reuse in my campaign?**

TikTok says Top Ads creatives are watermarked and unavailable for download for copyright reasons. Use the examples to inform an original creative brief; their public display does not establish permission to reuse them.

