{
"cached": false,
"final_url": "https://www.iana.org/assignments/http-status-codes",
"http_status": 200,
"json_ld": [],
"json_ld_count": 0,
"link_count": 40,
"links": [
{
"href": "https://www.iana.org/",
"is_external": false,
"text": null
},
{
"href": "https://www.iana.org/domains",
"is_external": false,
"text": "Domains"
},
{
"href": "https://www.iana.org/protocols",
"is_external": false,
"text": "Protocols"
},
{
"href": "https://www.iana.org/numbers",
"is_external": false,
"text": "Numbers"
},
{
"href": "https://www.iana.org/about",
"is_external": false,
"text": "About"
}
],
"open_graph": [],
"table_count": 2,
"tables": [
{
"caption": null,
"col_count": 3,
"headers": [
"Value",
"Description",
"Reference"
],
"index": 0,
"row_count": 75,
"rows": [
{
"Description": "Continue",
"Reference": "RFC 9110, Section 15.2.1",
"Value": "100"
},
{
"Description": "Switching Protocols",
"Reference": "RFC 9110, Section 15.2.2",
"Value": "101"
},
{
"Description": "Processing",
"Reference": "RFC 2518",
"Value": "102"
},
{
"Description": "Early Hints",
"Reference": "RFC 8297",
"Value": "103"
},
{
"Description": "Upload Resumption Supported (TEMPORARY - registered 2024-11-13, extension registered 2025-09-15, expires 2026-11-13)",
"Reference": "draft-ietf-httpbis-resumable-upload-05",
"Value": "104"
}
]
},
{
"caption": null,
"col_count": 2,
"headers": [],
"index": 1,
"row_count": 4,
"rows": [
[
"Domain Names",
"Root Zone Registry .INT Registry .ARPA Registry IDN Repository"
],
[
"Number Resources",
"Number Registries RIR Allocation Data Abuse Information"
],
[
"Protocols",
"Protocol Registries Time Zone Database"
],
[
"About Us",
"News Performance The Organization Archive Contact Us"
]
]
}
],
"title": "Hypertext Transfer Protocol (HTTP) Status Code Registry",
"url": "https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml"
}
curl --location --request GET 'https://zylalabs.com/api/16004/html+table+and+structured+data+scraper+api/45097/extract+webpage+html+tables+json-ld+and+links?url=https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml&render_js=false&include_links=true&include_json_ld=true&timeout_ms=15000&no_cache=false' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 HTML表格和结构化数据抓取器 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
从任意公共网页中提取 HTML 表格并整理为结构化 JSON 行、JSON-LD 架构块、OpenGraph 元数据和去重后的链接,并可选择使用 Chromium 渲染 JavaScript
它会返回提取的 HTML 表格、JSON-LD 块、OpenGraph 元数据和去重后的链接,以及最终 URL、HTTP 状态和结果是否来自缓存等请求详情
表格以结构化 JSON 对象的形式返回在 `tables` 数组中。每个对象可以包含标题、列数和行数据,因此比原始 HTML 更容易处理其内容
每个链接都包含一个 `href` URL、可选的可见链接文本,以及一个指示目标是否位于页面站点之外的 `is_external` 标志。`link_count` 报告返回的链接数量】【。
检查 `json_ld` 和 `open_graph` 数组。其中包含提取的 JSON-LD 架构块和 OpenGraph 标签;对应的计数字段表示找到了多少个 JSON-LD 块
`final_url` 是经过任何重定向后到达的 URL。结合 `http_status`,可识别已处理的页面并检查 HTTP 响应状态
当页面在浏览器中填充表格、元数据或链接时,请使用该端点可选的 Chromium JavaScript 渲染功能。如果不进行渲染,仅由客户端脚本生成的内容可能不会出现在提取结果中
页面可能不包含所请求的内容,或者页面初始 HTML 中的某些内容可能不可用。例如,空的 `json_ld` 数组且 `json_ld_count` 设置为 0,表示未提取到任何 JSON-LD 块时时彩官网