Firecrawl SDK for Xiaohongshu (RedNote), Douyin and Bilibili links: point the base URL at LinkDigest
Short answer: if your code already calls Firecrawl's scrape, you can keep that client and read Xiaohongshu (RedNote, 小红书), Douyin (抖音) and Bilibili (B站) posts through LinkDigest. Set the client's base URL to https://linkdigest.dev and its key to a LinkDigest key. POST /v1/scrape and POST /v2/scrape answer in Firecrawl's shape, {"success": true, "data": {"markdown": "…", "metadata": {…}}}, with the post as Markdown: the caption, the words in every image, and the speech as a transcript.
Disclosure: LinkDigest is the author's own service. This post makes no claim about what Firecrawl's own service returns for these links: that was not measured here. It is about keeping the client you already have.
Why these three platforms need a reader
On these platforms the content is rarely in the page's HTML. A Xiaohongshu note is usually a stack of images with the text drawn on them. A Douyin video publishes no captions, and its on-screen text is pixels. Most Bilibili videos have no subtitle file. Getting the words out means reading images and listening to audio, which is what LinkDigest does behind the endpoint.
The change, in four clients
Each of these was run on 2026-11-26 against https://linkdigest.dev with a LinkDigest key.
Firecrawl's Python client (firecrawl-py 4.57.0):
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)
print(doc.markdown[:500])
The older V1FirecrawlApp(...).scrape_url(url, formats=["markdown"]) works the same way.
Firecrawl's JavaScript client (@mendable/firecrawl-js 4.54.0):
import Firecrawl from "@mendable/firecrawl-js";
const fc = new Firecrawl({ apiKey: "ld_live_...", apiUrl: "https://linkdigest.dev" });
const doc = await fc.scrape("https://v.douyin.com/VeXgdE_QwTE", { formats: ["markdown"] });
console.log(doc.metadata.title, doc.markdown.length);
LangChain (langchain-community 0.4.2):
from langchain_community.document_loaders.firecrawl import FireCrawlLoader
docs = FireCrawlLoader(
url="https://www.bilibili.com/video/BV1pGWT6DEg6",
api_key="ld_live_...",
api_url="https://linkdigest.dev",
mode="scrape",
).load()
LlamaIndex (llama-index-readers-web):
from llama_index.readers.web import FireCrawlWebReader
reader = FireCrawlWebReader(api_key="ld_live_...", api_url="https://linkdigest.dev", mode="scrape")
docs = reader.load_data(url="https://www.bilibili.com/video/BV1pGWT6DEg6")
Or no client at all:
curl -s https://linkdigest.dev/v1/scrape \
-H "Authorization: Bearer ld_live_..." -H "Content-Type: application/json" \
-d '{"url": "https://www.bilibili.com/video/BV1pGWT6DEg6"}'
What came back
Three links read through the Python client that day. They are the examples on the LinkDigest home page, so they had been read before and came back from cache in under a second, at no charge.
| Link | Markdown returned | Sections in it |
|---|---|---|
| A Xiaohongshu image note | 35,059 characters, 585 lines | Key points, on-screen text, every image described |
| A Douyin video | 2,951 characters, 112 lines | Caption, key points, transcript, on-screen text |
| A Bilibili video | 5,160 characters, 126 lines | Key points, transcript, on-screen text, images, coverage |
metadata carries Firecrawl's own fields (title, description, sourceURL, statusCode) and LinkDigest's beside them as strings: platform, author, credits (what the call cost) and cached.
What is different from Firecrawl
This is one endpoint that speaks Firecrawl's format, not a copy of the product.
- Markdown only.
html,rawHtml,links,screenshotand JSON extraction are not produced. Ask for one and the call still succeeds, withdata.warningnaming what was left out. - Scrape only. There is no crawl, map, search or batch endpoint.
- A first read of a video takes 30 to 120 seconds, longer than one request may stay open. The call then answers HTTP 408 with
code: "SCRAPE_TIMEOUT"and apoll_url. Send the same request again about 15 seconds later: it collects the same read and is billed once. - Billing is LinkDigest credits, per post, not per page. A link someone already read comes from cache at no charge.
- A post that cannot be read (deleted, private, or served only inside the app) answers 422 with the reason and costs nothing. The Python client raises it as
FirecrawlErrorwith that reason in the message. - No key gets a short summary (title, author, key points, opening lines), and
data.warningsays how to get the full text.
Keeping both
A general web page still belongs with whatever you use today. Route by domain and keep one calling convention:
SOCIAL = ("xiaohongshu.com", "xhslink.com", "rednote.com", "douyin.com", "bilibili.com", "b23.tv")
def client_for(url: str):
return linkdigest if any(d in url for d in SOCIAL) else firecrawl
Getting started
Sign-up gives 10 free credits, no card. The API docs have the endpoint's request and response; the Xiaohongshu, Douyin and Bilibili pages say what each kind of link returns.
More on each platform: the Xiaohongshu (RedNote) API fields, Bilibili transcripts with or without CC subtitles, and translating a Douyin video into English.