{
"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/13801/website+classification+api/31643/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/13801/website+classification+api/31644/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/13801/website+classification+api/31645/extract+website+metadata' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"url": "https://example.com"
}'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 网站分类 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
对公共网页或提供的文本进行分类和分析 从静态内容或JavaScript渲染的内容中提取元数据 摘要 分类 实体和自定义结构化JSON
该API可以对文本或网站内容进行分类,使用人工智能分析网页,生成摘要和结构化字段,并提取标准网站元数据
是的。分类端点接受公共可访问的URL或提供的文本。请提供恰好一个源以及您希望API评估的类别标签
将2到50个类别标签添加到类别数组中 API会分析提供的内容并返回最佳匹配类别及其解释
它返回页面标题 AI生成的摘要 关键点 请求的结构化字段 证据 渲染模式 处理时间 和令牌使用情况
是的。传递一个包含多达20个字段名称的模式对象。每个值可以指定一个支持的数据类型或一个简洁的指令,描述要提取的信息
是的 使用render="auto"在需要时启用浏览器渲染 使用render="always"强制渲染或使用render="never"加快静态页面的处理速度
元数据端点可以返回标题、描述、关键字、作者、语言、规范网址、Open Graph属性、Twitter卡片数据和其他页面元数据
不 只支持公开可访问的HTTP和HTTPS URL 对于私有环回链路本地和其他受限网络目的地出于安全原因会被拒绝
使用分类网站或文本进行类别分配 使用人工智能分析网站进行摘要和自定义结构提取 提取网站元数据以快速非人工智能元数据查找
订阅API并使用Bearer方案在Authorization头中包含您的Zyla访问密钥 API文档中的代码示例包含所需的头部
分类网站或文本端点返回分类类别和推理分析网站与AI端点提供摘要、要点和结构化数据提取网站元数据端点检索元数据,如标题、描述和开放图形字段
关键字段包括“success”(布尔), “url”(字符串), “data”(带有特定细节的对象), “processing_ms”(处理时间)和“usage”(令牌计数)用于分类和分析端点。 元数据响应专注于结构化字段,如“title”,“description”和社交媒体标签
响应数据采用JSON格式结构。每个端点返回一个顶级对象,其中包含成功标志、URL和一个包含相关详细信息的数据对象。例如,使用AI分析网站的端点包含“data”对象中的摘要和要点字段
参数因端点而异。对于分类,提供“文本”或“网址”和“类别”。对于分析,包含“网址”和可选的“模式”。元数据端点只需“网址”。每个参数必须符合文档中列出的预期数据类型和格式
用户可以通过指定分类标签来自定义请求,为分析定义结构化数据的模式,并选择 JavaScript 内容的渲染模式。这种灵活性使得可以根据特定需求提供量身定制的响应
典型的用例包括为网站自动标记内容 为文档生成摘要 提取用于SEO目的的元数据 以及根据类别过滤内容以更好地组织和路由
数据准确性通过对分类算法和人工智能模型的持续更新和改进得以保持 该API利用先进的自然语言处理技术确保网页内容的可靠分类和分析
如果API返回部分或空结果,请检查输入参数的准确性并确保URL是公开可访问的。查看响应中是否有“null”字段,这可能表示缺少元数据或内容无法处理