Spiral gives your agent every tool with one account. Browse the tools →

Codex · Social Media

How to Use TikTok collection videos in Codex

Fetch videos saved in a public TikTok collection, including captions, authors, engagement counts, and video metadata. Use it to analyze a curated selection of posts rather than a creator's full upload feed.

Prompts to try with TikTok collection videos in Codex

Copy an example into Codex, or ask in your own words.

Use TikTok collection videos for https://www.tiktok.com/@kibblemaster808/collection/Want-to-go-7665668414573546258 and build a table in this project of @miotravelapp posts, showing captions, video IDs, durations, and views.

TikTok collection videosCodex
Try asking
  • Use TikTok collection videos for https://www.tiktok.com/@kibblemaster808/collection/Want-to-go-7665668414573546258 and add a CSV export of @miotravelapp video captions and all five engagement counts.

  • Use TikTok collection videos for https://www.tiktok.com/@kibblemaster808/collection/Want-to-go-7665668414573546258 and create a project report comparing duration, views, and saves for returned @miotravelapp posts.

  • Use TikTok collection videos for https://www.tiktok.com/@kibblemaster808/collection/Want-to-go-7665668414573546258 and add caption search for returned @miotravelapp videos to this project's reference library.

  • Use TikTok collection videos for https://www.tiktok.com/@kibblemaster808/collection/Want-to-go-7665668414573546258 and implement pagination in our importer, retaining @miotravelapp video IDs so repeated imports do not duplicate posts.

How to set up TikTok collection videos in Codex

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

Use Spiral's MCP server

  1. Add the hosted server
    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.

    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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run TikTok collection videos

    One request; the result comes back by polling or a webhook.

    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-collection-videos",
        "input": {
          "url": "https://www.tiktok.com/@kibblemaster808/collection/Want-to-go-7665668414573546258"
        }
      }'

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

TikTok collection videos providers and prices

Spiral runs TikTok collection videos through ScrapeCreators. Open a card for today's price, with every fee included.

ScrapeCreatorsSocial Media
TikTok · Collection Videos
scrapecreators/tiktok-collection-videos

What can you do with TikTok collection videos in Codex?

Build a searchable reference library from public TikTok collections of business and creator videos. Your coding agent can turn captions, video IDs, durations, and engagement counts into project features and comparison reports.

Build a content reference inventory

Turn a public collection of business or creator posts into a searchable inventory of video IDs, captions, authors, and durations.

Rank a curated campaign selection

Compare views, likes, shares, and saves across campaign videos saved in a public collection. Keep the comparison scoped to those selected posts.

Review caption themes

Group captions from collected brand videos by topic, product mention, or call to action to prepare a content planning brief.

Plan video lengths

Compare durations and public engagement counts within a collection of creator examples to choose lengths worth testing.

Refresh a business content reading list

Compare successive collection inventories by video ID and surface newly returned business or creator posts for editorial review.

Compare engagement over time

Save repeated measurements of selected campaign videos and calculate changes in views, likes, shares, and saves between observations.

Questions about TikTok collection videos in Codex

Can Codex use TikTok collection videos?

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

How much does TikTok collection videos cost in Codex?

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

Do I need a ScrapeCreators account to use TikTok collection videos in Codex?

No. Spiral runs TikTok collection videos 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 collection videos in Codex?

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

Does Codex wait while TikTok collection videos runs?

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

Which TikTok videos does this retrieve?

It retrieves videos saved in a public TikTok collection. Its coverage is the selected collection, rather than every upload from an account.

Can a collection require multiple requests?

Yes. The response includes a continuation value and an indication of whether more results remain; use that continuation to retrieve additional pages.

Which engagement counts are returned?

The documented response includes five counts for each video: views, likes, comments, shares, and saves.

What information comes with each video?

The documented objects include the caption, author identifiers, creation timestamp, and video ID. Video metadata includes duration, image dimensions, and a cover image URL.

Does access to public collection data include permission to reuse it?

ScrapeCreators permits commercial reuse and redistribution under its own terms, while leaving source terms and legal compliance to the user. TikTok's US terms separately prohibit automated scripts that collect information from its services.

Get started

Start using TikTok collection videos in Codex

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Codex:

Set up Codex

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options