fetch.link2web.site

mfetch cloud — 智能网页提取,CORS 全开,任何前端可用

GET POST CORS Markdown

Modes

mode返回说明
content (默认)text/plain正文 Markdown — 去导航/广告/页脚,干净提取
fulltext/plain完整 Markdown — 全页转换,不截断
rawtext/html原始 HTML
summarytext/plain摘要 — title + description + 500字预览
jsonapplication/json结构化 — { url, title, description, content, wordCount }

GET

// 正文提取(默认)
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')

POST

fetch('https://fetch.link2web.site', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    url: 'https://example.com',
    mode: 'content',
    max_chars: 5000
  })
})

特殊处理