{
"success": true,
"url": "https://example.com/",
"truncated_input": false,
"data": {
"category": "technology",
"reason": "The content explicitly mentions 'domain', 'documentation examples', and 'operations', which are technical terms related to web development and internet infrastructure."
},
"usage": {
"input_tokens": 167,
"output_tokens": 39,
"total_tokens": 206
},
"processing_ms": 926
}
curl --location --request POST 'https://zylalabs.com/api/13800/website+metadata+lookup+api/31649/classify+website+or+text' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"url": "https://example.com",
"categories": [
"technology",
"business",
"news"
]
}'
{
"success": true,
"url": "https://example.com/",
"title": "Example Domain",
"render_mode": "static",
"truncated_input": false,
"data": {
"page_type": "documentation",
"language": "en",
"summary": "The source content describes 'Example Domain', a placeholder used for documentation examples. It explicitly states that permission is not required for its use in examples but advises against using it in operational contexts. The text includes a reference to learn more about this policy.",
"key_points": [
"The domain is intended for use in documentation examples.",
"No permission is needed to use the domain in examples.",
"The domain should be avoided in operational use.",
"A link is provided to learn more about the policy.",
"The content serves as a warning against misuse in production.",
"The text is concise and instructional.",
"It functions as a standard placeholder notice.",
"The domain is not for general public use."
],
"fields": {
"title": "Example Domain",
"category": "documentation"
},
"evidence": [
{
"field": "title",
"quote": "Example Domain"
},
{
"field": "category",
"quote": "documentation examples"
},
{
"field": "key_points",
"quote": "without needing permission"
},
{
"field": "key_points",
"quote": "Avoid use in operations"
},
{
"field": "key_points",
"quote": "Learn more"
}
]
},
"evidence_removed": 0,
"usage": {
"input_tokens": 204,
"output_tokens": 251,
"total_tokens": 455
},
"processing_ms": 6720
}
curl --location --request POST 'https://zylalabs.com/api/13800/website+metadata+lookup+api/31650/analyze+website+with+ai' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"url": "https://example.com",
"render": "never",
"schema": {
"title": "string",
"category": "string"
},
"max_summary_words": 150
}'
{
"success": true,
"data": {
"url": "https://example.com/",
"title": "Example Domain",
"description": null,
"keywords": null,
"author": null,
"language": null,
"canonical": null,
"og": {
"title": null,
"description": null,
"image": null,
"url": null,
"type": null,
"site_name": null
},
"twitter": {
"card": null,
"title": null,
"description": null,
"image": null
}
},
"processing_ms": 64
}
curl --location --request POST 'https://zylalabs.com/api/13800/website+metadata+lookup+api/31651/extract+website+metadata' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"url": "https://example.com"
}'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 Website Metadata Lookup API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
Classify and analyze public web pages or supplied text. Extract metadata, summaries, categories, entities, and custom structured JSON from static or JavaScript-rendered content.
API可以对文本或网站内容进行分类 利用AI分析网页 生成摘要和结构化字段 并提取标准网站元数据
是的 分类端点接受公开可访问的 URL 或提供的文本 请提供一个源和您希望 API 评估的类别标签
在类别数组中添加2到50个类别标签 API分析提供的内容并返回最佳匹配的类别及其解释
它返回页面标题 AI 生成的摘要 主要观点 请求的结构化字段 支持证据 渲染模式 处理时间 和令牌使用情况
是的。传递一个包含最多20个字段名称的模式对象。每个值可以指定一个支持的数据类型或一个简明的说明,描述要提取的信息
是的 使用render="auto"在需要时启用浏览器渲染 使用render="always"强制渲染或使用render="never"以加快静态页面的处理速度
元数据端点可以返回标题 描述 关键字 作者 语言 规范 URL Open Graph 属性 Twitter 卡片数据 以及其他页面元数据
不 仅支持公开访问的HTTP和HTTPS网址 出于安全原因 私有 回环 链接本地和其他受限网络目标将被拒绝
使用分类网站或文本进行类别分配 使用AI分析网站以获取摘要和自定义结构提取 以及提取网站元数据以快速非AI元数据查找
订阅API并在Authorization头中使用Bearer方案包含您的Zyla访问密钥 API文档中的代码示例包括所需的头部