Skip to content

feat(tiktok): add video URL to search results#404

Merged
jackwener merged 2 commits intojackwener:mainfrom
AllenS0104:feat/tiktok-search-add-video-url
Mar 25, 2026
Merged

feat(tiktok): add video URL to search results#404
jackwener merged 2 commits intojackwener:mainfrom
AllenS0104:feat/tiktok-search-add-video-url

Conversation

@AllenS0104
Copy link
Copy Markdown
Contributor

What

Add a url field to the TikTok search adapter output.

Why

The current tiktok search command returns author, desc, plays, likes, etc., but no direct link to the video. This makes it hard for downstream consumers (AI agents, data pipelines, scripts) to reference the actual video.

How

Construct the URL from fields already returned by the TikTok API:

https://www.tiktok.com/@{author.uniqueId}/video/{item.id}

The v.id (video ID) is already present in the API response but was not previously surfaced.

Changes

  • src/clis/tiktok/search.yaml: added url field in the return object and added url to the columns list.

Testing

Tested locally with opencli tiktok search "AI skill" --limit 5 -f json - all 5 results returned valid clickable URLs such as https://www.tiktok.com/@learnwithseb/video/7509579188488178946

Allen Song (Beyondsoft) and others added 2 commits March 25, 2026 11:31
Add a 'url' field to the TikTok search adapter output, constructed from
the author's uniqueId and the video id returned by the API. This allows
downstream consumers (AI agents, pipelines, scripts) to link directly to
each video instead of only having the author handle.

The URL format is: https://www.tiktok.com/@{author}/video/{videoId}

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
When uniqueId or id is missing, return empty string instead of
a malformed URL like "https://www.tiktok.com/@/video/".
@jackwener jackwener merged commit 297fd15 into jackwener:main Mar 25, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants