How to Use TikTok web device ID in Google Antigravity
Generates the web ID used as a device identifier in TikTok Web requests. Use it for request development and inspect the returned session ID and error code.
Prompts to try with TikTok web device ID in Google Antigravity
Copy an example into Google Antigravity, or ask in your own words.
Use TikTok web device ID for https://www.tiktok.com/explore and update our parser to read the returned device ID, session ID, and error code.
Use TikTok web device ID to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from TikTok web device ID and tell me what changed since last week.
Check TikTok web device ID and summarize what you find in three bullet points.
Pull the newest data from TikTok web device ID and give me the result as a table.
How to set up TikTok web device ID in Google Antigravity
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Open the MCP config
* Antigravity App: click Customizations, then Installed. In the MCP Servers section, click Copy Config File Path and open that file. * Antigravity IDE: click … at the top of the agent side panel, select MCP Servers, then Manage MCP Servers › View raw config. * Antigravity CLI: edit ~/.gemini/config/mcp_config.json.
- Add the server
Add Spiral under mcpServers:
{ "mcpServers": { "spiral": { "serverUrl": "https://api.spiral.ai/mcp" } } } - Sign in
In the Antigravity App, open Customizations › Installed. Under MCP Servers, click Authenticate next to Spiral. Sign in to Spiral, pick the organization and click Authorize. Copy the authorization code the browser shows, paste it into Enter authorization code and click Submit. No API key.
Use the Spiral skill
- Send Google Antigravity 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 web device ID
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-generate-webid", "input": { "url": "https://www.tiktok.com/explore" } }'
Then paste one of the prompts above: Google Antigravity finds TikTok web device ID on Spiral, shows the price and runs it.
TikTok web device ID providers and prices
Spiral runs TikTok web device ID through TikHub. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Google Antigravity for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| App ID | a whole number | 1988 |
Every API field of TikTok Web · Generate web_id is on its tool page: open its card above.
What can you do with TikTok web device ID in Google Antigravity?
Build a TikTok research importer that handles content lists and identifier responses correctly. A coding agent can inspect actual responses, adapt your project's parsers, and keep account, video, collection, and LIVE room records distinct.
Create TikTok response fixtures
Collect actual responses for an internal parser test suite: account profiles, content lists, extracted identifiers, generated email hashes, and web device ID responses.
Debug a TikTok data importer
Inspect the actual response at each failing stage: link resolution, hash generation, web device ID generation, profile retrieval, or content-list retrieval. Use those responses to locate the parser or identifier mismatch.
Prepare identifiers for request development
Generate email hashes and web device IDs for internal TikTok request experiments. Resolve public profile, video, and LIVE links into the corresponding account, video, and room identifiers.
Build an internal TikTok identifier inspector
Give developers a place to inspect generated email hashes, web device ID responses, and identifiers extracted from public account, video, or LIVE links.
More on TikTok web device ID and Google Antigravity
TikTok web device ID in other agents
Questions about TikTok web device ID in Google Antigravity
Can Google Antigravity use TikTok web device ID?
Yes. Add Spiral to Google Antigravity as an MCP server, and Google Antigravity can find and run TikTok web device ID like any built-in tool.
How much does TikTok web device ID cost in Google Antigravity?
$0.0013 per request. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Google Antigravity plan is separate.
Do I need a TikHub account to use TikTok web device ID in Google Antigravity?
No. Spiral runs TikTok web device ID 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 web device ID in Google Antigravity?
About two minutes: open the MCP config, then add the server, then sign in.
Does Google Antigravity wait while TikTok web device ID runs?
TikTok web device ID runs in the background. Google Antigravity starts the run, checks on it and gives you the json when it's ready.
Can TikHub retrieve private TikTok content?
TikHub states that it accesses only publicly available data. Its documented scope excludes private, restricted, and password-protected content.
Does TikHub guarantee that TikTok data is complete and current?
TikHub disclaims guarantees of data accuracy, completeness, reliability, and timeliness. A returned content list therefore carries no guarantee of complete historical coverage or immediate updates.
How many TikTok posts can one page contain?
TikTok creator posts returns up to 15 posts per page, ordered newest first. The deprecated sorting setting does not change that order.
Can I request larger pages of TikTok reposts?
TikTok creator reposts uses a fixed page size of 20. TikHub explicitly says that this size cannot be changed.
What use does TikHub's license permit?
TikHub's service license specifies lawful internal business purposes. TikTok's U.S. terms separately prohibit automated scripts that collect information from or interact with its services.
Start using TikTok web device ID in Google Antigravity
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Google Antigravity:
set up https://spiral.ai/SKILL.md


