GET xfyun.cn HTTP 2002.3 s21.6 KB$0.000184 captured Aug 7, 2026
xfyun.cn, as data
One API turns any xfyun.cn page into markdown, structured JSON, its link graph or a screenshot, and crawls the whole site the same way. The panel shows the real response we captured.
- Render mode
- Plain HTTP, no browser needed
- Response
- HTTP 200 in 2.3 s
- Page size
- 21.6 KB of markdown, 322 lines
- Fields
- Title, Content, Date, Source
- Captured
- Aug 7, 2026
Free balance on signup, no card. This xfyun.cn page cost $0.000184 to fetch.
# # 通用文档识别(OCR大模型) API 文档3)signature的原始字段(signature_origin)规则如下。signature原始字段由 host,date,request-line三个参数按照格式拼接成,`host: $host\ndate: $date\n$request-line`请求url = "https://cbm01.cn-huabei-1.xf-yun.com/v1/private/se75ocrbm"date = "Wed, 11 Aug 2021 06:55:18 GMT"那么 signature原始字段(signature_origin)则为:date: Wed, 11 Aug 2021 06:55:18 GMT4)使用hmac-sha256算法结合apiSecret对signature_origin签名,获得签名后的摘要signature_sha。`signature_sha=hmac-sha256(signature_origin,$apiSecret)5)使用base64编码对signature_sha进行编码获得最终的signature。`signature=base64(signature_sha)`APISecret = "apisecretXXXXXXXXXXXXXXXXXXXXXXX"`signature="/mg2h9BCkespilZ94HUBaQVPq2v7PxYF90teTBlaxd8="6)根据以上信息拼接authorization base64编码前(authorization_origin)的字符串,示例如下。`api_key="apikeyXXXXXXXXXXXXXXXXXXXXXXXXXX", algorithm="hmac-sha256", headers="host date request-line", signature="/mg2h9BCkespilZ94HUBaQVPq2v7PxYF90teTBlaxd8="*注:* headers是参与签名的参数,请注意是固定的参数名("host date request-line"),而非这些参数的值。7)最后再对authorization_origin进行base64编码获得最终的authorization参数。`authorization = base64(authorization_origin)authorization=YXBpX2tleT0iYXBpa2V5WFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFgiLCBhbGdvcml0aG09ImhtYWMtc2hhMjU2IiwgaGVhZGVycz0iaG9zdCBkYXRlIHJlcXVlc3QtbGluZSIsIHNpZ25hdHVyZT0iL21nMmg5QkNrZXNwaWxaOTRIVUJhUVZQcTJ2N1B4WUY5MHRlVEJsYXhkOD0i### # 鉴权结果检查是否有authorization参数,详情见authorization参数详细生成规则{“message”:”HMAC signature cannot be verified”}{“message”:”HMAC signature does not match”}{“message”:”HMAC signature cannot be verified, a valid date or x-date header is required for HMAC Authentication”}Date: Mon, 30 Nov 2020 02:34:33 GMTContent-Type: text/plain; charset=utf-8"message": "HMAC signature does not match, a valid date or x-date header is required for HMAC Authentication"## # 请求`https://cbm01.cn-huabei-1.xf-yun.com/v1/private/se75ocrbm"markdown_element_option": "watermark=0,page_header=0,page_footer=0,page_number=0,graph=0","sed_element_option": "watermark=0,page_header=0,page_footer=0,page_number=0,graph=0", What Spider does on xfyun.cn
Same key, five endpoints. The numbers under a cell were measured on this page.
Page to markdown
Clean text for RAG and LLM context, boilerplate removed. The lane that runs without a key.
2.3 s · $0.000184Page to JSON
Spider reads the page and names the fields. Pass your own schema when you need exact keys.
Rendered capture
Real Chromium, full-page PNG. The same call also returns the rendered HTML.
The call behind the panel
This request produced the response above. Paste it with your key and you get the same bytes.
curl -X POST https://api.spider.cloud/scrape \
-H "Authorization: Bearer $SPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.xfyun.cn/doc/words/OCRforLLM/API.html", "return_format": "markdown"}' from spider import Spider
app = Spider()
params = {"return_format": "markdown"}
page = app.scrape_url("https://www.xfyun.cn/doc/words/OCRforLLM/API.html", params=params)
print(page[0]["content"]) import { Spider } from "@spider-cloud/spider-client";
const app = new Spider();
const [page] = await app.scrapeUrl("https://www.xfyun.cn/doc/words/OCRforLLM/API.html", {
return_format: "markdown",
});
console.log(page.content); What xfyun.cn costs
Multiplied from the measured 21.6 KB page. Estimates round to the cent.
1 GB of transfer costs $1, plus $0.001 per CPU minute, and failed requests cost $0. Crawling daily? The Unlimited plan is a flat monthly rate.
Point this at the rest of xfyun.cn.
The capture above took 2.3 s and cost $0.000184. The same call takes any URL on xfyun.cn.