[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [TikTok Shop ID from share link](https://spiral.ai/integrations/opencode/tiktok-shop-id-from-share-link)

# How to Use TikTok Shop ID from share link in opencode

Returns the shop ID and corresponding shop link from a TikTok Shop share URL. Use it to identify a store before researching its product listings or organizing shop references.

|  |  |
| --- | --- |
| Model | TikTok Shop ID from share link |
| Available through | TikHub |
| Category | E-commerce |
| Price | $0.0013 per request. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with TikTok Shop ID from share link in opencode

- Use TikTok Shop ID from share link with https://vt.tiktok.com/ZT2AHoGsE/ in the United States and add the returned shop ID and link to my project's shop reference table.
- Use TikTok Shop ID from share link to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from TikTok Shop ID from share link and tell me what changed since last week.
- Check TikTok Shop ID from share link and summarize what you find in three bullet points.
- Pull the newest data from TikTok Shop ID from share link and give me the result as a table.

## How to set up TikTok Shop ID from share link in opencode

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

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

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

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 Shop ID from share link**: 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-shop-web-fetch-shop-id-by-share-link",
    "input": {
      "share_link": "https://vt.tiktok.com/ZT2AHoGsE/"
    }
  }'
```

Then paste one of the prompts above: opencode finds TikTok Shop ID from share link on Spiral, shows the price and runs it.

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

## TikTok Shop ID from share link tools and prices

- [TikTok Shop · Get Shop ID by Share Link](https://spiral.ai/tools/tikhub/tikhub/tiktok-shop-web-fetch-shop-id-by-share-link) (TikHub): $0.0013 per request.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| region |  | US | Region code: US/SG/MY/PH/TH/VN/ID/JP/MX; GB and BR are unavailable |

## What can you do with TikTok Shop ID from share link in opencode?

Build an internal TikTok Shop research table from product suggestions, seller listings, and resolved shop links. A coding agent can add parsers and comparisons to your project using the returned phrases, product IDs, and shop IDs.

### Prepare a product campaign brief

Resolve a public shop share link, review the seller's listings, and collect suggestions for relevant product terms. Use the returned titles and phrases to draft an internal campaign brief.

### Research assortment gaps

Identify stores from public share links and compare their returned product titles with search suggestions for a category. Flag suggested product concepts absent from the collected listings for further research.

### Produce a weekly merchandising report

Resolve shop references, collect seller listings, and repeat a fixed set of product keyword queries. Report newly observed product IDs and changed suggestion lists against earlier successful collections.

### Build an internal product research index

Attach resolved shop IDs and links to collected product listings. Add returned keyword suggestions as research vocabulary so merchandising staff can explore related product terms.

### Clean up shop references

Resolve public TikTok Shop share URLs into shop IDs and corresponding links. Use the IDs to identify repeated store references in an internal research list.

## Overview

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

## TikTok Shop ID from share link in other agents

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

## More opencode guides

- [Tiendanube store categories](https://spiral.ai/integrations/opencode/tiendanube-store-categories)
- [TikTok Shop Product Details ScrapeCreators](https://spiral.ai/integrations/opencode/tiktok-shop-product-details-scrapecreators)
- [Tiendanube product details](https://spiral.ai/integrations/opencode/tiendanube-product-details)
- [TikTok Shop Product Reviews ScrapeCreators](https://spiral.ai/integrations/opencode/tiktok-shop-product-reviews-scrapecreators)
- [Tiendanube product catalog](https://spiral.ai/integrations/opencode/tiendanube-product-catalog)
- [TikTok Shop Shop Search](https://spiral.ai/integrations/opencode/tiktok-shop-shop-search)

## Questions about TikTok Shop ID from share link in opencode

**Can opencode use TikTok Shop ID from share link?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run TikTok Shop ID from share link like any built-in tool.

**How much does TikTok Shop ID from share link cost in opencode?**

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

**Do I need a TikHub account to use TikTok Shop ID from share link in opencode?**

No. Spiral runs TikTok Shop ID from share link 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 Shop ID from share link in opencode?**

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

**Does opencode wait while TikTok Shop ID from share link runs?**

TikTok Shop ID from share link runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

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

TikHub's privacy policy says it does not access or store private, restricted, or password-protected content from supported platforms.

**Is every TikTok Shop result guaranteed to be accurate and complete?**

TikHub's terms expressly disclaim warranties about data accuracy, completeness, and reliability. The returned data carries no guarantee of complete TikTok Shop coverage.

**Is the data guaranteed to reflect the latest TikTok Shop changes?**

TikHub expressly disclaims warranties about data timeliness. Its privacy policy also says returned public platform data may be cached.

**Can TikHub store the public data returned by a request?**

Yes. TikHub's privacy policy says it may cache and store publicly available data returned through its API.

**What use does TikHub's service license cover?**

TikHub's terms grant use of its services for lawful internal business purposes. That scope is narrower than unrestricted redistribution.

