[Integrations](https://spiral.ai/integrations) › [Gemini](https://spiral.ai/integrations/gemini) › [TikTok top search posts](https://spiral.ai/integrations/gemini/tiktok-top-search-posts)

# How to Use TikTok top search posts in Gemini

Returns TikTok Top search results containing videos and photo carousels. Use it when a topic review needs both formats; keyword search returns videos only.

|  |  |
| --- | --- |
| Model | TikTok top search posts |
| 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 top search posts in Gemini

- Scrape https://example.com/pricing with TikTok top search posts and turn it into a comparison table.
- Crawl the docs at https://docs.example.com with TikTok top search posts and summarize each section.
- Pull the latest posts from this blog with TikTok top search posts and list their titles and dates.
- Scrape the job listings at https://example.com/careers with TikTok top search posts and give me a CSV.
- Scrape the changelog at https://example.com/changelog with TikTok top search posts and list this month's changes.

## How to set up TikTok top search posts in Gemini

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

### Use the Gemini connector

1. **Open Connected Apps**: On your computer, go to gemini.google.com. At the bottom, click Settings › Connected Apps. If you don't see Connected Apps, click Personal Intelligence first, then Connected Apps.

2. **Add Spiral as a custom app**: Under Custom apps, click Add a custom app and paste this MCP server URL:

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

3. **Sign in to Spiral and approve**: Follow the on-screen instructions. Spiral opens: sign in, pick the organization and click Authorize. No API key.

### Use the Spiral skill

1. **Send Gemini 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 top search posts**: 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-search-top",
    "input": {
      "query": "funny"
    }
  }'
```

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

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

## TikTok top search posts tools and prices

- [TikTok · Top Search](https://spiral.ai/tools/scrapecreators/scrapecreators/tiktok-search-top) (ScrapeCreators): Up to $0.0013 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| trim |  | — | Set to true to get a trimmed response |
| cursor |  | — | Cursor to get more videos. Get 'cursor' from previous response. |
| region |  | — | Note, this doesn't filter the tiktoks only in a specfic region, it puts the proxy there. Use it in case you want to scrape posts only available for some country. Use 2 letter country codes like US, GB, FR, etc |
| sort_by | relevance, most-liked, date-posted | — | Sort by |
| publish_time | yesterday, this-week, this-month, last-3-months, last-6-months, all-time | — | Time Frame TikTok was posted |

## What can you do with TikTok top search posts in Gemini?

Turn TikTok discovery results into a content brief for a public brand or publication. Summarize the returned examples and search phrases while keeping account matches separate from post results.

### Plan a coffee brand's content calendar

Use trending posts for initial ideas, autocomplete for topic wording, keyword and hashtag searches for examples, Top search for both formats, and account search for public coffee brands and creators.

### Prepare a public creator collaboration brief

Find public cooking creators through account search. Use trending posts, autocomplete phrases, hashtag videos, keyword videos, and Top results to assemble examples of topics and formats for a proposed collaboration.

### Research a product launch

Build a reusable water bottle launch brief from topic suggestions, product searches, relevant hashtag videos, and Top results. Add public brand accounts and relevant examples discovered in the trending feed.

### Produce a weekly publishing brief

For a public museum's social team, combine trending post ideas, autocomplete wording, topic and hashtag examples, mixed-format Top results, and searches for other museum accounts.

### Expand a recipe research query

Start with autocomplete suggestions for sourdough, then research the returned phrases through keyword videos and Top posts. Keep video examples and photo carousels separate in the brief.

## Overview

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

## TikTok top search posts in other agents

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

## More Gemini guides

- [TikTok song details](https://spiral.ai/integrations/gemini/tiktok-song-details)
- [TikTok trending hashtags](https://spiral.ai/integrations/gemini/tiktok-trending-hashtags)
- [TikTok simplified account posts](https://spiral.ai/integrations/gemini/tiktok-simplified-account-posts)
- [TikTok trending posts](https://spiral.ai/integrations/gemini/tiktok-trending-posts)
- [TikTok similar ads](https://spiral.ai/integrations/gemini/tiktok-similar-ads)
- [TikTok trending video details](https://spiral.ai/integrations/gemini/tiktok-trending-video-details)

## Questions about TikTok top search posts in Gemini

**Can Gemini use TikTok top search posts?**

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

**How much does TikTok top search posts cost in Gemini?**

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 Gemini plan is separate.

**Do I need a ScrapeCreators account to use TikTok top search posts in Gemini?**

No. Spiral runs TikTok top search posts 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 top search posts in Gemini?**

About two minutes: open Connected Apps, then add Spiral as a custom app, then sign in to Spiral and approve.

**Does Gemini wait while TikTok top search posts runs?**

TikTok top search posts runs in the background. Gemini starts the run, checks on it and gives you the json when it's ready.

**Does this data include private TikTok content?**

ScrapeCreators documents public data extraction only. These discovery tools should not be used as a way to obtain private TikTok content.

**How fresh is the TikTok data?**

ScrapeCreators describes extraction as real time, retrieving the latest public data from the source.

**Can TikTok search return the same post more than once?**

Yes. The hashtag and keyword search documentation explicitly warns about duplicate results, so remove repeated post IDs before counting posts.

**Does selecting a country mean every post comes from there?**

No. The documented country behavior can help access country-restricted posts, but it does not filter posts by origin.

**Can TikTok discovery include photo carousels?**

Yes. TikTok Top search includes videos and photo carousels, while keyword search returns videos only.

