mfetch cloud — 智能网页提取,CORS 全开,任何前端可用
GET POST CORS Markdown
| mode | 返回 | 说明 |
|---|---|---|
content (默认) | text/plain | 正文 Markdown — 去导航/广告/页脚,干净提取 |
full | text/plain | 完整 Markdown — 全页转换,不截断 |
raw | text/html | 原始 HTML |
summary | text/plain | 摘要 — title + description + 500字预览 |
json | application/json | 结构化 — { url, title, description, content, wordCount } |
// 正文提取(默认)
fetch('https://fetch.link2web.site?url=https://example.com')
// 摘要模式
fetch('https://fetch.link2web.site?url=https://example.com&mode=summary')
// 限制长度
fetch('https://fetch.link2web.site?url=https://example.com&max_chars=3000')
// JSON 结构化
fetch('https://fetch.link2web.site?url=https://example.com&mode=json')
fetch('https://fetch.link2web.site', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
url: 'https://example.com',
mode: 'content',
max_chars: 5000
})
})