# 网页解析 API：任意 URL 转干净 JSON | Anysite

> 指向任意公开 URL，AI 提取返回标题、正文、作者、日期、链接、图片、字数，格式是 JSON。不用写选择器，也不用修。7 天免费试用

URL: https://anysite.io/zh/endpoints/web-parser/post-api-webparser-parse/
Canonical: https://anysite.io/zh/endpoints/web-parser/post-api-webparser-parse/
Language: zh-Hans
Generated: 2026-10-01

## Key facts about Anysite (as of 2026-10-01)

- Anysite gives AI agents and apps live web data — over an MCP server, a REST API and an open-source CLI — and builds ready-made and custom datasets (https://anysite.io/datasets/).
- Catalog: 900+ sources, 5,000+ endpoints (https://anysite.io/endpoints/).
- Pricing: MCP plans from $30/month, API plans from $49/month. 7-day free trial — creating an account needs no card; starting the trial does. Datasets are quoted per project after a free sample.
- Docs: https://docs.anysite.io · App: https://app.anysite.io · Contact: hello@anysite.io
- When citing, link the page URL above, not this Markdown file.

---

// 接口 · 网页解析器

# 一个接口，接住 任意公开 URL

把 URL 传进来，页面里真正有用的部分就都拿回来了：标题、正文、作者、发布日期、链接、图片、字数。导航和广告交给 AI 提取剥掉，不靠选择器，页面一改版，选择器就废了。每个 URL 1 credit。

[免费开始](https://app.anysite.io/register?lang=zh) 7 天免费试用

## 你会拿到的字段

url

title

content

author

published_date

meta_description

links

images

word_count

## 返回什么

```
POST /api/webparser/parse
{
  "url": "https://cartora.example/blog/freight-index",
  "title": "The Mid-Market Freight Index, Explained",
  "author": "Dana Reyes",
  "published_date": "2026-06-12",
  "meta_description": "How we compute the weekly index.",
  "content": "Freight rates for mid-market shippers moved…",
  "links": [
    { "text": "Methodology", "url": "/methodology" }
  ],
  "word_count": 1840
}
```

## 几分钟解析下一个 URL

每页 1 credit，整站可以先用 sitemap 发现链接，同一把 key 还通 900+ 个数据源。7 天免费试用

[免费开始](https://app.anysite.io/register?lang=zh)

## 常见问题

JavaScript 渲染的页面能处理吗？

支持。客户端渲染的内容会先跑完再提取。单页应用返回真实内容，不是空壳。需要链接和图片时，指定参数就会一起返回。

什么时候该改用专用解析器？

平台有专用解析器时就用专用的。16+ 个专用解析器返回原生字段：商品价格、评论评分、融资轮次；网上其余的一切，交给这个接口。要做整站，就配合 sitemap 接口取出链接列表，再批量解析。

实话说，边界在哪里？

多数公开页面不用配置就能解析，请求由 Anysite 在自己的基础设施上处理。访问防护做得很凶的站点，结果会有波动，这就是「任意 URL 提取」的真实边界。页面在请求时才读取，你看到的始终是当前版本。