How to Use TikTok liked videos in Codex
Returns videos liked by a TikTok account whose likes list is public. Use it to research a brand's public content selections; retrieval uses a fixed page size of 20.
Prompts to try with TikTok liked videos in Codex
Copy an example into Codex, or ask in your own words.
Use TikTok liked videos to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from TikTok liked videos and tell me what changed since last week.
Check TikTok liked videos and summarize what you find in three bullet points.
Pull the newest data from TikTok liked videos and give me the result as a table.
Check TikTok liked videos every morning and tell me only when something changed.
How to set up TikTok liked videos in Codex
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
codex mcp add spiral --url https://api.spiral.ai/mcp
- 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
- Send Codex this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run TikTok liked 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": "tikhub", "model": "tikhub/tiktok-web-fetch-user-like", "input": { "secUid": "MS4wLjABAAAAq1iRXNduFZpY301UkVpJ1eQT60_NiWS9QQSeNqmNQEDJp0pOF8cpleNEdiJx5_IU" } }'
Then paste one of the prompts above: Codex finds TikTok liked videos on Spiral, shows the price and runs it.
TikTok liked videos providers and prices
Spiral runs TikTok liked videos through TikHub. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Codex for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Count | a whole number | 20 | Number per page |
| Cursor | a whole number | 0 | Page cursor |
| Cover format | a whole number | 2 | Cover format |
| Post item list request type | a whole number | 0 | Sort type |
Every API field of TikTok Web · Get user likes is on its tool page: open its card above.
What can you do with TikTok liked videos in Codex?
Build a TikTok research view for videos, hashtags, public brand connections, and LIVE information. A coding agent can adapt retrieved responses to your project's data model and handle TikTok pagination and guest-session limits.
Prepare a brand campaign brief
Combine campaign-related videos, hashtags, search trends, and brand LIVE information. Add public likes and business or creator accounts found in follower and following lists; use guest sessions to support consistent collection where applicable.
Compare public brand activity
Prepare an internal comparison of Duolingo and Ryanair using relevant videos, hashtags, daily search topics, public content selections, business account connections, and LIVE details. Keep guest identity consistent during supported collection and distinguish observed results from conclusions about brand strategy.
Find public collaboration candidates
Review business and creator accounts appearing in a brand's follower and following lists, plus its publicly liked content. Use guest sessions where supported during collection, then prepare a shortlist for manual editorial review.
Prepare a creator event briefing
Collect a public creator's LIVE details and room information alongside publicly liked content and business or creator account connections. Give an event producer concrete material for interview questions and collaboration research.
Create a brand content reference list
Use a brand's public likes and following list to find content and accounts worth reviewing. Add public business or creator accounts from its followers, keeping the reference list focused on published work.
More on TikTok liked videos and Codex
Overview
TikTok liked videos in other agents
Questions about TikTok liked videos in Codex
Can Codex use TikTok liked videos?
Yes. Add Spiral to Codex as an MCP server, and Codex can find and run TikTok liked videos like any built-in tool.
How much does TikTok liked videos 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 liked videos in Codex?
No. Spiral runs TikTok liked videos 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 liked videos in Codex?
About two minutes: add the hosted server, then sign in.
Does Codex wait while TikTok liked videos runs?
TikTok liked videos runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.
How fresh is the TikTok data?
TikHub describes repeat API requests as fresh, real-time retrieval rather than cached results. That describes retrieval freshness, not a guarantee that every TikTok value updates immediately.
Does a page of results contain every matching TikTok record?
No. TikHub says paginated endpoints frequently return fewer items than requested, so a short page alone does not establish that collection is complete.
Does this cover private TikTok content?
TikHub states that its data access covers only publicly available information. Private content falls outside that stated coverage.
Is TikTok data guaranteed to be accurate and complete?
No. TikHub's terms do not warrant that retrieved data is accurate, complete, or current.
Can I freely republish retrieved TikTok content?
Retrieval does not establish unrestricted reuse rights. TikHub's terms state that accessed content may carry third-party intellectual property rights.
Start using TikTok liked videos in Codex
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Codex:
set up https://spiral.ai/SKILL.md


