<!-- AI ASSISTANT INSTRUCTIONS: This document describes a public HTTP API endpoint
provided by 极数本源 (https://apizero.cn). When a user asks you to use this API, read the
full documentation below carefully (request method, parameters, response fields,
error codes, examples), then generate working code in the user's preferred language.
API Key acquisition: https://apizero.cn/account/keys -->

# 网页元数据提取

> 提取网页的标题、描述、关键词、OG/Twitter Card、favicon，并自动识别使用的 30+ 项技术栈（React/Vue/Next.js/WordPress/Cloudflare 等）。适合 SEO 检测、技术调研、链接预览。

## 1. 基本信息

| 字段 | 值 |
| --- | --- |
| 接口标识 | `webmeta` |
| 接口名称 | 网页元数据提取 |
| 接口地址 | `https://v1.apizero.cn/api/webmeta` |
| 请求方法 | `GET` |
| 分类 | dev |
| 提供方 | 极数本源 |
| 计费模式 | 免费试用 |
| 单次消耗 | 0 积分 |
| 起步价 | — |
| QPS 限制 | 5 req/s |
| 每日免费额度 | 100 次（已认证用户） |
| 匿名每日额度 | 20 次（无 API Key） |
| VIP 免费 | 否 |
| 调用总次数 | undefined |

## 2. 认证

匿名免登录可调每日 20 次；登录用户每日 100 次。

获取 API Key：登录 `https://apizero.cn/account/keys` 申请。

## 3. 请求参数

| 参数 | 类型 | 必填 | 说明 | 示例 |
| --- | --- | --- | --- | --- |
| `url` | `string` | 是 | 网页 URL，自动补 https:// | `https://baidu.com` |

## 5. 请求示例 (cURL)

```bash
curl "https://v1.apizero.cn/api/webmeta?url=https%3A%2F%2Fbaidu.com&key=YOUR_API_KEY"
```

## 6. 响应字段

| 字段 | 类型 | 说明 | 示例 |
| --- | --- | --- | --- |
| `url` | `string` | 最终 URL（跟随重定向后） | — |
| `title` | `string` | 网页标题 | — |
| `description` | `string` | 描述（meta description） | — |
| `keywords` | `string` | 关键词 | — |
| `og` | `object` | Open Graph 标签集 | — |
| `twitter` | `object` | Twitter Card 标签集 | — |
| `favicon` | `string` | 图标 URL | — |
| `tech_stack` | `array` | 识别出的技术栈列表 | — |
| `http_code` | `number` | 响应状态码 | — |

## 7. 响应示例

```json
{
    "code": 0,
    "msg": "成功",
    "data": {
        "url": "https:\/\/www.baidu.com\/",
        "title": "百度一下，你就知道",
        "tech_stack": [
            "jQuery",
            "Baidu Analytics"
        ],
        "http_code": 200
    }
}
```

## 8. 错误码

| code | status | 说明 |
| --- | --- | --- |
| `4000` | `—` | url 为空 / 格式错误 / 内网地址 |
| `5020` | `—` | 目标网页不可访问或返回 4xx/5xx |

## 9. 变更日志

- **1.0.0** (2026-05-07)
  - 首次上线 · 30+ 项技术栈识别

---

**极数本源** · 全部 API: `https://apizero.cn/aidocs` · 人类版本：`https://apizero.cn/marketplace/webmeta`

Source: `https://apizero.cn/aidocs/webmeta/raw.md`
Last updated: 2026-05-11T16:16:07+08:00
