linkdigest-mcp

mcp
Security Audit
Warn
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Warn
  • network request — Outbound network request in benchmark/run.py
  • process.env — Environment variable access in cordis.patch.yml
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

小红书 / 抖音 / B站 / 公众号 / 微博 / 今日头条 / 推特(X) 链接读取,小红书、抖音按话题搜索:MCP 服务器 + API + 36 个 Agent Skill(视频转文字、B站字幕提取、B站视频总结、抖音博主主页信息、视频转文章、逐字稿翻译、小红书、抖音文案 skill;OpenClaw / Claude Code / Cursor / Codex)

README.md

LinkDigest MCP server

jcaiagent7143-ui/linkdigest-mcp MCP server

中文文档:README.zh-CN.md — 小红书 MCP / 抖音 MCP / B站 MCP / 公众号链接读取:MCP 服务器 + API、Python SDK、命令行,价格以人民币标注。

The intelligence infrastructure for AI agents: turn a social media or web link into
text a language model can read — transcript, on-screen text, image
descriptions, caption and metadata
, with quotes checked against the post.

JavaScript / TypeScript: a zero-dependency client is in js/:

import { LinkDigest } from "linkdigest";
const ld = new LinkDigest(); // LINKDIGEST_API_KEY
const d = await ld.digest("https://v.douyin.com/…/", { depth: "script" });
const found = await ld.search("牛肉面 探店", { platform: "douyin", limit: 10 });

A Chinese social media API for AI agents: Xiaohongshu (RedNote, 小红书), Douyin (抖音),
Weibo (微博), WeChat Official Account articles (公众号), Bilibili and 小宇宙 / Apple Podcasts episodes — plus
TikTok, YouTube, X and Instagram — read into timed transcripts, OCR of every image and frame, top
comments and key points with checked quotes. No Chinese phone number, account or cookies. Not read
today: Zhihu, Kuaishou. Overview: linkdigest.dev/china-social-media-api.

Bilibili video → Markdown notes (timed outline, key points, transcript; multi-part batches): a single-file CLI in examples/bilibili · B站视频 → Markdown 笔记:examples/bilibili。

# A Douyin video's spoken script (文案), 1 credit per started 2 minutes
curl -X POST https://linkdigest.dev/api/v1/digest -H "Authorization: Bearer ld_live_..." \
  -H "Content-Type: application/json" -d '{"url": "https://v.douyin.com/xxxxxxx/", "depth": "script"}'

Hosted, remote (streamable HTTP). Nothing to install or run. For stdio-only clients and scripts,
python/ adds a zero-dependency Python SDK, a linkdigest command line and a
linkdigest-mcp stdio server that forwards to the hosted endpoint.

Website: linkdigest.dev · Registry: dev.linkdigest/linkdigest

What LinkDigest read from a 16-image Xiaohongshu note: 16 images read, 390 lines of text found inside them

Every digest comes with a receipt — how much was read, and a checked quote behind each key point. Works from Muse, Grok Bot, Manus Cue, Hermes, OpenClaw, Claude Code and Cursor: see linkdigest.dev/connect. No key needed for a first look.

What this repository contains

The open parts: the Python SDK, the linkdigest command line and the linkdigest-mcp stdio server
(python/, MIT), a LangChain tool and a LlamaIndex reader (in the SDK), the Dify
plugin source (dify/), the agent skill (skills/), examples, and the official MCP registry entry (server.json).
The hosted service behind https://linkdigest.dev/mcp and the API is operated by LinkDigest; its
reading engine is not open source.

Measured, not claimed

Benchmark, 2026-11-14: 24 links sampled by rule before anything ran (Bilibili popular list; Douyin, Xiaohongshu and YouTube topic searches, 6 each), read four ways. LinkDigest got content on 23/24 (speech 16, text in picture 22, comments 6; one 3-hour YouTube video came back title-only). Jina Reader opened 14/24 posts (Xiaohongshu 0/6), a plain fetch 7/24, yt-dlp 12/24; none of the three got speech or picture text. Sampler, runner, scorer and per-link scores are in benchmark/, so you can re-run it.

The problem

Fetching a social link yourself returns nothing useful. Share URLs are tokenised
(xsec_token, app_code_link), the content lives in video and images rather
than HTML, and the server sends an app-download shell or a login wall instead of
the post.

$ curl -sL 'https://xhslink.com/o/1WiQ1QI6Uc0' | grep -o '<title>.*</title>'
<title>小红书 - 你的生活兴趣社区</title>

That title belongs to a 36 KB app shell (checked 2026-10-04). No caption, no images, no text of the note.

Install

Claude Code

claude mcp add --transport http linkdigest \
  https://linkdigest.dev/mcp \
  --header "Authorization: Bearer ld_live_..."

Cursor, as a plugin — this repo is a Cursor plugin (.cursor-plugin/plugin.json + mcp.json + skills/).
Install it from cursor.directory, then set the key once in your shell:

export LINKDIGEST_API_KEY=ld_live_...

The plugin's mcp.json reads ${LINKDIGEST_API_KEY}; no key is stored in the repo. Without it,
the tool still lists and tools/call returns a 401 that says where to get one.

Cursor, by hand — ~/.cursor/mcp.json

{
  "mcpServers": {
    "linkdigest": {
      "url": "https://linkdigest.dev/mcp",
      "headers": { "Authorization": "Bearer ld_live_..." }
    }
  }
}

Codex CLI

export LINKDIGEST_API_KEY=ld_live_...
codex mcp add linkdigest --url https://linkdigest.dev/mcp --bearer-token-env-var LINKDIGEST_API_KEY

which writes this to ~/.codex/config.toml:

[mcp_servers.linkdigest]
url = "https://linkdigest.dev/mcp"
bearer_token_env_var = "LINKDIGEST_API_KEY"

Gemini CLI

gemini mcp add -s user --transport http \
  --header "Authorization: Bearer ld_live_..." \
  linkdigest https://linkdigest.dev/mcp

In ~/.gemini/settings.json the key is httpUrl (there, url means the older SSE transport).

VS Code — .vscode/mcp.json

{
  "servers": {
    "linkdigest": {
      "type": "http",
      "url": "https://linkdigest.dev/mcp",
      "headers": { "Authorization": "Bearer ld_live_..." }
    }
  }
}

Cline — cline_mcp_settings.json (MCP Servers → Configure). Name the transport: without type, Cline assumes the older SSE one.

{
  "mcpServers": {
    "linkdigest": {
      "type": "streamableHttp",
      "url": "https://linkdigest.dev/mcp",
      "headers": { "Authorization": "Bearer ld_live_..." }
    }
  }
}

Kiro (.kiro/settings/mcp.json) and Trae (Settings → MCP → Add → Create Manually) take the same block as
Cursor above: url and headers under mcpServers.

Windsurf — open the MCP config file from Cascade's MCP settings and add the server with serverUrl:

{
  "mcpServers": {
    "linkdigest": {
      "serverUrl": "https://linkdigest.dev/mcp",
      "headers": { "Authorization": "Bearer ld_live_..." }
    }
  }
}

Cherry Studio — Settings → MCP → MCP Servers → Add → Import from JSON, with the Cline block above
("type": "streamableHttp").

These were read from each client's own documentation on 2026-11-19
(Codex,
Gemini CLI,
VS Code,
Cline,
Kiro,
Trae,
Windsurf); the Gemini CLI and Claude Code commands were also
checked against the installed tools' --help. Clients change these formats: if one of them refuses the block,
the mcp-remote form below works in any client that can start a command.

stdio-only clients — through mcp-remote (Node.js):

{
  "mcpServers": {
    "linkdigest": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://linkdigest.dev/mcp", "--header", "Authorization:${AUTH_HEADER}"],
      "env": { "AUTH_HEADER": "Bearer ld_live_..." }
    }
  }
}

or through the Python server, published on PyPI as linkdigest-mcp
(built and uploaded by this repo's release workflow, with attestations; needs uv):

{
  "mcpServers": {
    "linkdigest": {
      "command": "uvx",
      "args": ["linkdigest-mcp"],
      "env": { "LINKDIGEST_API_KEY": "ld_live_..." }
    }
  }
}

A key is issued at linkdigest.dev/app/keys.
10 free credits to start, once per account, no card. A post is one credit; video adds one per
started minute; a viral breakdown or a translation adds one each. Then $5 once for 250 credits
(Alipay accepted, settled as ¥36) or $9 a month for 500 (card).

Agent skills (OpenClaw, Hermes, Claude Code, Cursor and others)

39 ready-made skills live in skills/. Each is one job, a SKILL.md plus one script that uses only the Python standard library. The single-link readers (marked ★) work without a key for a first look: no LINKDIGEST_API_KEY gives a summary, up to 2 a day per address; with a key (10 free credits on sign-up, no card) they return the full transcript and per-image text.

Skill Job
bilibili-video-to-text B站视频总结 / 转文字: a Bilibili video (BV link or b23.tv) as a timed transcript, on-screen text and key points
bilibili-subtitle-text B站字幕提取: a Bilibili video's spoken words only (uploader subtitles or speech recognition), timed by segment, 1 credit per 2 minutes
bilibili-video-summary B站视频总结: a summary and key points of a Bilibili video, each point with the quote it rests on
bilibili-course-notes ★ B站网课笔记: a lecture or a whole 分P course as Markdown notes — timed outline, key points with quotes, [mm:ss] transcript, one file per part
video-to-mindmap 视频转思维导图: a long video's timed outline as markmap Markdown (branches with start–end times)
douyin-batch-to-text 抖音批量视频转文字: a batch of Douyin links (one creator's series) read at once, one Markdown file per video plus an index table; speech-only read by default
xiaohongshu-batch-export 小红书笔记批量导出: a batch of Xiaohongshu notes as Markdown files — body, the words in every image (OCR), video transcript, hot comments — plus an index table
douyin-video-to-text ★ 抖音视频转文字: a Douyin video's spoken words, on-screen text, chapters
douyin-creator-card 抖音博主主页信息: a Douyin creator's public profile from the app's profile share link (name, bio, follower / like / post counts, 抖音号, IP location); no post list
douyin-video-summary ★ 抖音视频总结: what a Douyin video says, as a paragraph and key points, each with the line of speech (and its time) it rests on
douyin-subtitle-text 抖音字幕提取 / 口播文案: only the spoken words of a Douyin video, timed by segment; the cheapest read (speech only)
video-to-notes ★ 视频转笔记: a knowledge video (Douyin, Bilibili, Xiaohongshu, YouTube, TikTok) as study notes — points with quotes and times, the figures and terms to check, the steps it gives; one creator's many videos into notes plus an index
douyin-search-to-text 抖音搜索转文字: search Douyin by topic, then read the videos you pick
xiaohongshu-note-to-text ★ 小红书笔记转文字: a Xiaohongshu note, the text in every image, caption, stats
xiaohongshu-search-to-text Search Xiaohongshu (RedNote) by topic, then read the notes you pick
xiaohongshu-consumer-insight One Xiaohongshu note as consumer insight: audience, selling points, objections, purchase intent, each with a checked quote
xiaohongshu-douyin-compare 2–10 Xiaohongshu / Douyin / TikTok / YouTube links compared on one page
xiaohongshu-daily-draft A daily brief for one niche plus a ready-to-post draft by email; never touches or posts to your account
tiktok-transcript ★ A TikTok video's transcript with timestamps and captions
instagram-to-text An Instagram reel or post as transcript, on-screen text and caption
weibo-to-text ★ 微博转文字: a Weibo post's text, image text, video transcript and top comments
toutiao-to-text ★ 今日头条转文字: a Toutiao article's full text and image text, or a video's timed transcript
twitter-to-text ★ 推特转文字: an X / Twitter post's text, the words in every photo, and a video post's timed transcript
video-to-article ★ 视频转文章: reads a video (transcript, on-screen text, checked key points), then writes a 公众号 / 小红书 / blog article from that only
video-transcript-translate 视频逐字稿翻译: a video's timed transcript plus a full translation (抖音 / 小红书 / B站 → English, YouTube / TikTok → 中文)
podcast-to-text 播客转文字: a 小宇宙 or Apple Podcasts episode as a timed transcript with show notes
long-video-transcript ★ 长视频转文字: lectures and replays up to 2 h, 1 credit per 2 minutes
linkdigest-xhs-note-ocr ★ Xiaohongshu image notes, with the text inside every image
linkdigest-video-transcript ★ Douyin / Xiaohongshu video to transcript and on-screen text
linkdigest-wechat-article-reader ★ WeChat 公众号 articles: full text and every image's text
linkdigest-youtube-summary ★ YouTube summary and timed transcript, translated to Chinese on request
linkdigest-xiaohongshu-douyin-reader ★ Read Xiaohongshu / Douyin posts in English
linkdigest-viral-breakdown ★ How a viral post is built, with quotes checked against the source
linkdigest-script-rewrite ★ Extract a reference video's script and structure, then write your own
hongguo-drama-research Hongguo (红果) short-drama rankings: the top N dramas' scores, heat, tags and viewer reviews, compared with quotes
viral-video-remake Read a viral video, then write a brief that borrows its structure (not its content) for the video skill you use (HyperFrames, huashu-art-motion…)
linkdigest The general one: any social link or web page that returns nothing useful when fetched
xiaohongshu-pain-point-radar 痛点雷达: a category on Xiaohongshu + Douyin → pain points, needs and blockers counted per post by code (N/M), search demand from Baidu/Taobao/Bing suggestions, and gaps nobody answers; quotes checked word for word
overseas-pain-points 出海痛点: the same for overseas buyers on YouTube + TikTok, report in Chinese with the English originals

Pain-Point Radar (2026-11-07) is one REST call: POST https://linkdigest.dev/api/v1/radar with {"topic": "robot vacuum", "market": "global"} (or "cn" for Xiaohongshu + Douyin), then poll GET /api/v1/radar/{id}; a 12-post run is ~41–47 credits and takes 10–20 minutes. Public examples, each dated with its read: 国内品类 · 出海品类.

# Any agent the skills CLI supports (Claude Code, Cursor, Codex, OpenClaw, Trae, Qwen Code, ...)
npx skills add jcaiagent7143-ui/linkdigest-mcp --skill xiaohongshu-note-to-text

# Hermes Agent
hermes skills install jcaiagent7143-ui/linkdigest-mcp/skills/xiaohongshu-note-to-text
hermes skills install clawhub/linkdigest-xhs-note-ocr   # or from ClawHub

# OpenClaw (ClawHub)
clawhub install jackchew7143/linkdigest-xhs-note-ocr

The tool

digest_url(url, format, job_id, translate_to, breakdown, ask, partial_ok, depth) — only url is required.

Argument Notes
url The post URL, including any share tokens.
format markdown (default, best for reading) or json (structured).
job_id Collect a digest already running. Pass this instead of url — re-sending the url would start the work again.
breakdown true adds a viral breakdown (爆款拆解): the hook in its first seconds, the structure as timed beats, the title formula, cover text, call to action, audience and a reusable template. Quotes are checked word for word against the post; engagement and hashtags come from the platform. +1 credit.
translate_to An ISO 639-1 code (en, ja, zh-CN): adds a translation beside the original, and writes the breakdown in that language. +1 credit.
ask A question to answer from the post ("what products and prices does it recommend?", "does the speaker say X?"). The answer comes with the quotes it rests on, each checked word for word against the post; found is false when the post does not say, and nothing is invented. +1 credit.
partial_ok true reads the opening minutes the budget affords instead of refusing a long video.

You do not call it yourself. The tool description tells the agent to reach for it
whenever it meets a social link it cannot read, so it happens mid-task without
being asked.

A long video may not finish inside one call. When that happens the result names a
job id; call the tool again with that job_id and no url to collect it.

Search: a topic in, posts out

search_links(query, platform, limit, digest) finds posts on a topic, so an agent can start from a
question instead of a link.

Argument Notes
query The topic, in any language. Chinese words find the most on Xiaohongshu and Douyin.
platform xiaohongshu, douyin, youtube, x or web.
limit 1 to 10 links (default 5).
digest true also reads the results as one batch and writes a comparison over them; collect it with compare_links and the batch_id.
search_links(query="京都 住宿 攻略", platform="xiaohongshu", limit=5)
→ 1. [2025-09-30] 🇯🇵京都赏枫全攻略(含住宿推荐 — https://www.xiaohongshu.com/explore/… — 住进京都老街,每天被枫叶和古都晨光唤醒…
  2. …
  This search: 4 credits.
digest_url(url="<one of them>")

A search that finds posts costs 4 credits on Xiaohongshu and Douyin and 1 elsewhere. A search that
finds nothing is free.

What it searches is the public web's index of each platform, not the platform's own logged-in search:
no login, no session, no cookie of yours or ours. That index is a subset of the platform. The example
above returned five on-topic notes in 3.3 s (2026-11-19); a narrow topic can return nothing, and the
answer then says so, charges nothing, and for Xiaohongshu hands back the same search as an address to
open in your own browser, where the extension reads the page you see.
Results are filtered to post links digest_url can read and to posts that mention the topic.

The other tools

Tool What it does
compare_links(urls) Reads 1 to 20 links as one batch and writes one comparison over them: the themes, hooks and claims they share, the objections readers raise and the gaps none of them cover, every example naming the link it came from. Call again with batch_id to collect. Each link at its usual price, plus 1 credit per 10 links.
list_batches() The account's last batches, newest first, including the ones the browser extension started from your own Xiaohongshu or Douyin tab. Starts nothing, costs nothing.
check_balance() Credits left, what each kind of read costs, and where to buy more. Without a key it returns the prices.

What comes back

platform, author, title, posted_at, caption, transcript ({t, text}),
ocr_text, on_screen ({t, text}), images ({description, ocr}), key_points, stats
(likes, comments, saves, shares, plays), tags, raw_markdown, source_url, transcript_source,
degraded — plus breakdown and translation when asked for.

Two are worth knowing about:

  • transcript_source — native_captions, asr, gemini_video or none. Captions the
    platform already published are exact; speech recognition is not. gemini_video
    means a YouTube video without captions was watched by Gemini, which wrote the
    transcript and its times. Treating them
    identically eventually quotes a mis-heard number back at someone as fact.
  • degraded — what did not fully work, in plain words, plus notes on how a
    complete read was obtained (e.g. "read via oEmbed", "read by Gemini watching the
    video directly").
    It exists because a digest once returned a well-formed, completely empty result
    during a provider outage and was cached for thirty days.

Platforms

Checked against real posts, not documentation.

Platform Status
Xiaohongshu 小红书 Works — image notes and video notes, no login needed
Douyin 抖音 Works — video posts and image notes (图文), through Douyin's own embed player
Weibo 微博 Works (since 2026-11-01) — text, photos, video, counts, top comments, through Weibo's own visitor page; posts only followers can see are refused, not charged
WeChat 公众号 articles Works — the full article, every image read
Bilibili Works (since 2026-10-24) — videos and b23.tv short links, through Bilibili's own embed player
Hongguo 红果短剧 Works (since 2026-11-15) — a drama page (hongguoduanju.com/detail?series_id=…): synopsis, tags, episodes, score and raters, likes, saves, heat, rank and the top viewer reviews. Episode players are answered with the browser-extension route, never fetched (robots.txt disallows them), not charged. What is winning: English · 中文
Toutiao 今日头条 Works (since 2026-11-20) — articles (toutiao.com/article/<id>/) and videos (/video/<id>/), read in a browser with no login: title, publisher, date, the full text and every image for an article; a timed transcript for a video. A /group/ or /item/ share link is read through its article address, since Toutiao's robots.txt disallows the share forms. 微头条 (/w/), columns and live pages are not read, not charged
小宇宙 / Apple Podcasts Works (since 2026-10-29) — episode transcripts
TikTok Works — short links resolve. Rate-limits under load
YouTube Works — native captions where published, otherwise a watched transcript
X Works — posts with video or images
Instagram Works (since 2026-10-24) — reels, and photo posts through Instagram's embed page (a carousel reads its first slide)
Web pages / articles Works — readable article text, title, author, date
Zhihu, Kuaishou Not read yet
Facebook Not supported. Serves no post content to logged-out requests

The rows that do not work are listed on purpose. Finding out after you have wired
something in is worse than knowing now.

How long it takes

Measured, not estimated:

  • Already-digested link: about 1 second — anything anyone has run before is
    cached, and cached links are free
  • Xiaohongshu note with images: 1–2 minutes
  • YouTube video with captions: about 2.5 minutes

Notes

  • Speech is transcribed with Qwen3-ASR. It was kept over whisper-large-v3-turbo
    after a side-by-side on the same clips, where Whisper misheard Mandarin
    (创业 → 创意, 900人 → 酒派人).
  • transcript is [{t, text}]. Platform captions are timed per line. Speech
    recognition currently returns one segment per ~170 s of audio (a single
    segment at t: 0 for a shorter clip); on_screen carries approximate,
    keyframe-level times.
  • Media is never stored or served. It is processed in a temporary directory
    deleted before the request returns; only the text digest is kept.
  • A blocked or removed post returns an error, not a description of the error page.

Python SDK and command line

In python/: MIT, Python 3.10+, standard library only.

pip install linkdigest-mcp          # PyPI; or from this repo: pip install "git+https://github.com/jcaiagent7143-ui/linkdigest-mcp#subdirectory=python"
export LINKDIGEST_API_KEY=ld_live_...
linkdigest "https://v.douyin.com/xxxx/" --breakdown       # Markdown to stdout
linkdigest capture ./video.mp4 --url "<link>"              # a video you already have: sound + frames extracted here, never uploaded
from linkdigest import LinkDigest

d = LinkDigest().digest("https://xhslink.com/o/xxxx", translate_to="en")
print(d.title, d.credits, d.cached)
print(d.markdown)

Long jobs are collected for you (GET /api/v1/digest/{jobId}?wait=20); errors are typed
(PaymentRequiredError carries buy_url). Examples — Dify, OpenAPI import for Coze-style
platforms, Feishu Bitable, links to CSV — are in examples/ (Chinese).

LangChain

LinkDigestTool is a LangChain tool (digest_url): the model passes a link, and gets the post back as
markdown — transcript with times, on-screen text, key points, a Coverage line. Through a ToolCall the full
JSON is on the ToolMessage as artifact. A 402 (out of credits) comes back as a sentence with the pay link,
and a long read still running comes back as a job id the model collects on its next call.

# pip install "linkdigest-mcp[langchain]" langchain
from langchain.agents import create_agent
from linkdigest.integrations.langchain import LinkDigestTool

agent = create_agent("anthropic:claude-sonnet-5-5", tools=[LinkDigestTool(max_credits=10)])
agent.invoke({"messages": [{"role": "user", "content": "What does this video sell? https://v.douyin.com/xxxx/"}]})

LinkDigestTool(output="json") gives the model compact JSON instead. Example: examples/python/langchain_agent.py.

LlamaIndex

LinkDigestReader turns links into LlamaIndex Documents: the markdown as text, and flat metadata
(platform, title, author, source_url, posted_at, credits, coverage_*) that any vector store
accepts. A link that cannot be read is logged and skipped (errors="raise" to stop instead).

# pip install "linkdigest-mcp[llamaindex]" llama-index
from llama_index.core import VectorStoreIndex
from linkdigest.integrations.llamaindex import LinkDigestReader

docs = LinkDigestReader(depth="script").load_data(["https://v.douyin.com/xxxx/", "https://b23.tv/xxxx"])
VectorStoreIndex.from_documents(docs).as_query_engine().query("What do these videos have in common?")

depth="script" reads the speech only, the cheapest read. Example: examples/python/llamaindex_reader.py.

Already using Firecrawl? Change the base URL

POST https://linkdigest.dev/v1/scrape and /v2/scrape answer in Firecrawl's shape ({"success": true, "data": {"markdown": "...", "metadata": {...}}}), so a tool that already calls Firecrawl's scrape reads Xiaohongshu, Douyin and Bilibili links by changing two settings: the base URL and the key.

from firecrawl import Firecrawl

fc = Firecrawl(api_key="ld_live_...", api_url="https://linkdigest.dev")
doc = fc.scrape("https://www.bilibili.com/video/BV1pGWT6DEg6", formats=["markdown"])
print(doc.metadata.title, len(doc.markdown))

Run on 2026-11-26 with firecrawl-py 4.57.0, @mendable/firecrawl-js 4.54.0, LangChain's FireCrawlLoader and LlamaIndex's FireCrawlWebReader (both with api_url="https://linkdigest.dev", mode="scrape"). It is the same read as POST /api/v1/digest: the same key, credits and refusals.

What it is not: Markdown only (ask for html, links or screenshot and data.warning names what was left out), and scrape only (no crawl, map, search or batch). A first read of a video can outlast one request; the call then answers 408 with code: "SCRAPE_TIMEOUT" and a poll_url, and the same request sent again collects the read and is billed once. The four snippets and what came back.

Link parsing (offline, free, no key)

linkdigest.links finds the real link in pasted share text and names the post it points to — platform,
post id and the post's clean address — with no API key and no network. resolve() also follows a short
link (v.douyin.com, xhslink.com, b23.tv, t.co, vt.tiktok.com …) by reading its redirects, nothing else:
no page body, no cookies, at most 5 hops, an honest User-Agent.

from linkdigest.links import extract_url, identify, resolve

text = "7.32 复制打开抖音,看看【…的作品】 https://v.douyin.com/G8Oggg_IXMA/ [email protected] 复制此链接"
extract_url(text)                     # 'https://v.douyin.com/G8Oggg_IXMA/'
identify("https://m.bilibili.com/video/BV1stVH66E6G?p=2&share_source=copy").canonical_url  # '…/BV1stVH66E6G/?p=2'
resolve(text).post_id                 # '7680883233307342947' (one redirect read)

Command line: linkdigest-links "<share text>" prints JSON (--offline skips the redirect). Douyin,
Xiaohongshu (xsec_token kept literally), Bilibili, Weibo (mid → bid), YouTube, TikTok, X, Instagram,
Kuaishou, WeChat articles and podcast episodes. The same rules as the free parser at
linkdigest.dev/zh/lianjie-jiexi. pip install linkdigest-mcp (0.2.5 or later).

Dify

The same tool as a Dify plugin lives in dify/ — source, manifest and privacy policy. Install it from the Dify Marketplace and paste your API key into the provider credential.

Also available

A REST API (POST https://linkdigest.dev/api/v1/digest), a web app, and Apify
Store actors for bulk runs. See linkdigest.dev.

License

MIT — see LICENSE. Changes are listed in CHANGELOG.md.

Reviews (0)

No results found