CADGuard DXF API

API ID 15787

像激光或 CNC 切割机那样读取二维 DXF:精确计算切割长度、穿孔次数、零件和孔洞、开放轮廓、重复线段和间隙,并支持版本比较和安全修复及变更清单

API 文档

端点

请求
DXF 版本、声明的单位、图层(开启/冻结/锁定/颜色)、按类型统计的实体数量(展开块后)、可分析曲线、忽略的注释(文本、标注、填充)、不支持的 3D 或无限实体、使用的块、图纸空间实体数量和头部元数据 选项(`options` 对象): - `units`(mm、cm、m、in、ft):当 DXF 未声明单位(`$INSUNITS` 无单位)时指定单位。不会自动假定单位。 - `layers`(对象):图层用途,例如 `{"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}`。未指定用途时,可见图层上的所有受支持曲线均计为切割几何图形。 - `include_hidden_layers`(布尔值,默认 false):除非设为 true,否则忽略关闭和冻结的图层。 - `tolerance`(数值):端点匹配容差,单位为绘图单位(默认值:绘图对角线 × 1e-7)。 - `gap_tolerance`(数值):将间距小于此值的开放端报告为间隙。
Endpoint ID: 43220
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43220/inspect+a+dxf
输入参数

检查一个 DXF — 端点功能

对象 描述
请求体 必需 Json

剩余免费测试请求:3 / 3。


输入参数

API 示例响应
JSON
{
    "request_id": "req_0d6b255df3254fdc9b8f",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 0,
        "warnings": 0,
        "info": 0
    },
    "issues": [],
    "issues_truncated": false,
    "data": {
        "dxf_version": "AC1009",
        "release": "R12",
        "units": {
            "declared": 4,
            "declared_name": "mm",
            "effective": "mm",
            "source": "header",
            "to_mm": 1
        },
        "entities": {
            "total_after_block_expansion": 6,
            "by_type": {
                "LINE": 5,
                "CIRCLE": 1
            },
            "analysable_curves": {
                "LINE": 5,
                "CIRCLE": 1
            },
            "ignored": [],
            "unsupported": []
        },
        "layers": [
            {
                "name": "0",
                "on": true,
                "frozen": false,
                "locked": false,
                "color": 7,
                "linetype": "Continuous",
                "entities": 0
            },
            {
                "name": "Defpoints",
                "on": true,
                "frozen": false,
                "locked": false,
                "color": 7,
                "linetype": "Continuous",
                "entities": 0
            },
            {
                "name": "CUT",
                "on": true,
                "frozen": false,
                "locked": false,
                "color": null,
                "linetype": null,
                "declared_in_layer_table": false,
                "entities": 5
            },
            {
                "name": "ETCH",
                "on": true,
                "frozen": false,
                "locked": false,
                "color": null,
                "linetype": null,
                "declared_in_layer_table": false,
                "entities": 1
            }
        ],
        "blocks_used": 0,
        "paperspace_entities": 0,
        "bounding_box": {
            "min": [
                0,
                0
            ],
            "max": [
                200,
                100
            ],
            "width": 200,
            "height": 100
        },
        "metadata": {
            "acadver": "AC1009",
            "tdcreate": 2461375.713587963,
            "tolerances": {
                "endpoint_match": 2.2360679774997894e-5,
                "curve_chord_error": 0.00022360679774997895,
                "note": "Drawing units. Override with options.tolerance / options.flatten_tolerance."
            }
        }
    },
    "processing": {
        "duration_ms": 18,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 6
    }
}
检查一个 DXF — 代码片段

curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43220/inspect+a+dxf' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' 

--data-raw '{"dxf_text":"0\nSECTION\n2\nHEADER\n9\n$INSUNITS\n70\n4\n0\nENDSEC\n0\nSECTION\n2\nENTITIES\n0\nLINE\n8\nCUT\n10\n0\n20\n0\n11\n200\n21\n0\n0\nLINE\n8\nCUT\n10\n200\n20\n0\n11\n200\n21\n100\n0\nLINE\n8\nCUT\n10\n200\n20\n100\n11\n0\n21\n100\n0\nLINE\n8\nCUT\n10\n0\n20\n100\n11\n0\n21\n0\n0\nCIRCLE\n8\nCUT\n10\n100\n20\n50\n40\n20\n0\nLINE\n8\nETCH\n10\n10\n20\n10\n11\n60\n21\n10\n0\nENDSEC\n0\nEOF\n","options":{}}'

    
请求
包围盒、以图形单位表示的宽度和高度,以及在单位已知时以毫米表示的宽度和高度。可选的 expected_max_size 会在任一方向超出限制时触发 EXCEEDS_EXPECTED_SIZE 选项(`options` 对象): - `expected_max_size`([宽度, 高度]):机器或板材以图形单位表示的限制 - `units`(mm、cm、m、in、ft):当 DXF 未设置单位($INSUNITS 无单位)时声明单位。绝不假定单位 - `layers`(对象):图层用途,例如 {"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}。未指定用途时,可见图层上的所有受支持曲线都会计为切割几何 - `include_hidden_layers`(布尔值,默认 false):除非设为 true,否则忽略关闭和冻结的图层 - `tolerance`(数字):图形单位中的端点匹配容差(默认为图形对角线 x 1e-7) - `gap_tolerance`(数字):将距离小于此值的开放端点报告为间隙 .
Endpoint ID: 43221
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43221/size+and+bounding+box
输入参数

尺寸和边界框 — 端点功能

对象 描述
请求体 必需 Json

剩余免费测试请求:3 / 3。


输入参数

API 示例响应
JSON
{
    "request_id": "req_ce4405b1c3a84383932e",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 0,
        "warnings": 0,
        "info": 0
    },
    "issues": [],
    "issues_truncated": false,
    "data": {
        "units": "mm",
        "units_source": "customer",
        "bounding_box": {
            "min": [
                0,
                0
            ],
            "max": [
                120,
                60
            ],
            "width": 120,
            "height": 60
        },
        "accuracy": "curve extremes within 0.000134 units",
        "bounding_box_mm": {
            "width": 120,
            "height": 60
        }
    },
    "processing": {
        "duration_ms": 10,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 9
    }
}
尺寸和边界框 — 代码片段

curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43221/size+and+bounding+box' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' 

--data-raw '{"dxf_text":"0\nSECTION\n2\nHEADER\n9\n$INSUNITS\n70\n4\n0\nENDSEC\n0\nSECTION\n2\nENTITIES\n0\nLINE\n8\nCUT\n10\n0\n20\n0\n11\n200\n21\n0\n0\nLINE\n8\nCUT\n10\n200\n20\n0\n11\n200\n21\n100\n0\nLINE\n8\nCUT\n10\n200\n20\n100\n11\n0\n21\n100\n0\nLINE\n8\nCUT\n10\n0\n20\n100\n11\n0\n21\n0\n0\nCIRCLE\n8\nCUT\n10\n100\n20\n50\n40\n20\n0\nLINE\n8\nETCH\n10\n10\n20\n10\n11\n60\n21\n10\n0\nENDSEC\n0\nEOF\n","options":[]}'

    
请求
总切割长度(重复部分和共线重叠部分仅计一次,包含明细)、按图层和实体类型统计的长度、穿孔次数(每个轮廓一次)、零件数、孔数和净面积。直线、圆弧、圆和凸度多段线可精确计算;椭圆和样条曲线采用数值计算,并提供误差界限。 选项(`options` 对象): - `units`(mm、cm、m、in、ft):当 DXF 未声明单位(`$INSUNITS` 无单位)时指定单位。不会假定单位。 - `layers`(对象):指定图层用途,例如 `{"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}`。未指定用途时,可见图层上的所有受支持曲线均计为切割几何。 - `include_hidden_layers`(布尔值,默认 false):关闭时忽略关闭和冻结的图层;设为 true 时则包含这些图层。 - `tolerance`(数字):端点匹配容差,单位为图纸单位(默认值:图纸对角线长度 × 1e-7)。 - `gap_tolerance`(数字):将距离小于此值的开放端点报告为间隙。
Endpoint ID: 43222
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43222/cut+length+pierces+parts+and+holes
输入参数

切割长度穿透零件和孔洞 — 端点功能

对象 描述
请求体 必需 Json

剩余免费测试请求:3 / 3。


输入参数

API 示例响应
JSON
{
    "request_id": "req_5ff868e5c20f4882a442",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 1,
        "warnings": 0,
        "info": 0
    },
    "issues": [
        {
            "code": "DUPLICATE_ENTITY",
            "severity": "error",
            "message": "LINE is drawn twice; a laser would cut it twice.",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": "32",
                "layer": "CUT",
                "point": [
                    5,
                    55
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": true
        }
    ],
    "issues_truncated": false,
    "data": {
        "units": "mm",
        "units_source": "customer",
        "cut_length": 600.463706144,
        "cut_length_breakdown": {
            "all_entities": 635.463706144,
            "duplicates_removed": 35,
            "collinear_overlap_removed": 0
        },
        "exact": true,
        "numeric_error_bound": 0,
        "contours": {
            "closed": 3,
            "open": 2,
            "parts": 1,
            "holes": 2
        },
        "pierces": 5,
        "net_area": 6071.68146928,
        "area_note": "Exact for lines and circular arcs; ellipses and splines use sampled vertices. Holes subtracted.",
        "cut_length_mm": 600.463706144,
        "net_area_mm2": 6071.68146928,
        "per_layer": {
            "CUT": 635.463706144
        },
        "by_entity_type": {
            "CIRCLE": 62.8318530718,
            "LINE": 99.8,
            "POLYLINE": 472.831853072
        }
    },
    "processing": {
        "duration_ms": 11,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 9
    }
}
切割长度穿透零件和孔洞 — 代码片段

curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43222/cut+length+pierces+parts+and+holes' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' 

--data-raw '{"dxf_text":"0\nSECTION\n2\nHEADER\n9\n$INSUNITS\n70\n4\n0\nENDSEC\n0\nSECTION\n2\nENTITIES\n0\nLINE\n8\nCUT\n10\n0\n20\n0\n11\n200\n21\n0\n0\nLINE\n8\nCUT\n10\n200\n20\n0\n11\n200\n21\n100\n0\nLINE\n8\nCUT\n10\n200\n20\n100\n11\n0\n21\n100\n0\nLINE\n8\nCUT\n10\n0\n20\n100\n11\n0\n21\n0\n0\nCIRCLE\n8\nCUT\n10\n100\n20\n50\n40\n20\n0\nLINE\n8\nETCH\n10\n10\n20\n10\n11\n60\n21\n10\n0\nENDSEC\n0\nEOF\n","options":{"layers":{"cut":["CUT"],"engrave":["ETCH"]}}}'

    
请求
每条轮廓的闭合/开放状态、角色(部件、孔、开放)、线段数、长度、面积和起点;设置 gap_tolerance 时还会列出间隙列表 选项(options 对象): - `units`(mm、cm、m、in、ft):当 DXF 未声明单位($INSUNITS 无单位)时指定单位。绝不假定单位 - `layers`(对象):图层角色,例如 {"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}。未指定角色时,所有可见图层上的受支持曲线均视为切割几何 - `include_hidden_layers`(布尔值,默认 false):关闭时忽略关闭和冻结的图层,设为 true 时则包含 - `tolerance`(数字):图纸单位中的端点匹配容差(默认值:图纸对角线 × 1e-7) - `gap_tolerance`(数字):将距离小于此值的开放端点报告为间隙。 .
Endpoint ID: 43223
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43223/contours+open+paths+and+gaps
输入参数

轮廓开放路径和间隙 — 端点功能

对象 描述
请求体 必需 Json

剩余免费测试请求:3 / 3。


输入参数

API 示例响应
JSON
{
    "request_id": "req_c6dcc8ca19844e0ab775",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 3,
        "warnings": 0,
        "info": 0
    },
    "issues": [
        {
            "code": "DUPLICATE_ENTITY",
            "severity": "error",
            "message": "LINE is drawn twice; a laser would cut it twice.",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": "32",
                "layer": "CUT",
                "point": [
                    5,
                    55
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": true
        },
        {
            "code": "OPEN_CONTOUR",
            "severity": "error",
            "message": "Open path of 3 segment(s), length 29.8; its ends do not meet (end-to-end gap 10.002).",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": null,
                "layer": "CUT",
                "point": [
                    50,
                    5
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": false
        },
        {
            "code": "OPEN_CONTOUR",
            "severity": "error",
            "message": "Open path of 1 segment(s), length 35; its ends do not meet (end-to-end gap 35).",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": null,
                "layer": "CUT",
                "point": [
                    5,
                    55
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": false
        }
    ],
    "issues_truncated": false,
    "data": {
        "units": "mm",
        "units_source": "customer",
        "cut_length": 600.463706144,
        "cut_length_breakdown": {
            "all_entities": 635.463706144,
            "duplicates_removed": 35,
            "collinear_overlap_removed": 0
        },
        "exact": true,
        "numeric_error_bound": 0,
        "contours": {
            "closed": 3,
            "open": 2,
            "parts": 1,
            "holes": 2
        },
        "pierces": 5,
        "net_area": 6071.68146928,
        "area_note": "Exact for lines and circular arcs; ellipses and splines use sampled vertices. Holes subtracted.",
        "cut_length_mm": 600.463706144,
        "net_area_mm2": 6071.68146928,
        "contour_list": [
            {
                "closed": true,
                "role": "hole",
                "segments": 1,
                "length": 112.831853072,
                "area": 814.159265359,
                "layer": "CUT",
                "start": [
                    70,
                    20
                ]
            },
            {
                "closed": true,
                "role": "hole",
                "segments": 1,
                "length": 62.8318530718,
                "area": 314.159265359,
                "layer": "CUT",
                "start": [
                    40,
                    30
                ]
            },
            {
                "closed": true,
                "role": "part",
                "segments": 1,
                "length": 360,
                "area": 7200,
                "layer": "CUT",
                "start": [
                    0,
                    0
                ]
            },
            {
                "closed": false,
                "role": "open",
                "segments": 3,
                "length": 29.8,
                "area": 0,
                "layer": "CUT",
                "start": [
                    50,
                    5
                ]
            }
        ],
        "contour_list_truncated": false
    },
    "processing": {
        "duration_ms": 14,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 9
    }
}
轮廓开放路径和间隙 — 代码片段

curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43223/contours+open+paths+and+gaps' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' 

--data-raw '{"dxf_text":"0\nSECTION\n2\nHEADER\n9\n$INSUNITS\n70\n4\n0\nENDSEC\n0\nSECTION\n2\nENTITIES\n0\nLINE\n8\n0\n10\n0\n20\n0\n11\n100\n21\n0\n0\nLINE\n8\n0\n10\n100\n20\n0\n11\n100\n21\n50\n0\nLINE\n8\n0\n10\n100\n20\n50\n11\n0\n21\n50\n0\nLINE\n8\n0\n10\n0\n20\n50\n11\n0\n21\n0.1\n0\nENDSEC\n0\nEOF\n","options":{"gap_tolerance":0.5}}'

    
请求
开放轮廓、重复实体、共线重叠、零长度实体、自相交、轮廓交叉、分支连接点、尺寸限制和缺失几何,并给出判定。仅检查几何:API 不知道材料、切缝和加工工具。 选项(`options` 对象): - `units`(mm、cm、m、in、ft):当 DXF 未声明单位($INSUNITS 无单位)时指定单位。不会默认假设单位。 - `layers`(对象):图层角色,例如 {"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}。如果未指定角色,则可见图层上的所有受支持曲线都视为切割几何。 - `include_hidden_layers`(布尔值,默认 false):关闭或冻结的图层将被忽略,除非设为 true。 - `tolerance`(数字):端点匹配容差,单位为绘图单位(默认值:绘图对角线 x 1e-7)。 - `gap_tolerance`(数字):将小于此距离的开放端点报告为间隙】【。
Endpoint ID: 43224
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43224/preflight+check
输入参数

飞行前检查 — 端点功能

对象 描述
请求体 必需 Json

剩余免费测试请求:3 / 3。


输入参数

API 示例响应
JSON
{
    "request_id": "req_2b28555a094b44219aa6",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 3,
        "warnings": 0,
        "info": 0
    },
    "issues": [
        {
            "code": "DUPLICATE_ENTITY",
            "severity": "error",
            "message": "LINE is drawn twice; a laser would cut it twice.",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": "32",
                "layer": "CUT",
                "point": [
                    5,
                    55
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": true
        },
        {
            "code": "OPEN_CONTOUR",
            "severity": "error",
            "message": "Open path of 3 segment(s), length 29.8; its ends do not meet (end-to-end gap 10.002).",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": null,
                "layer": "CUT",
                "point": [
                    50,
                    5
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": false
        },
        {
            "code": "OPEN_CONTOUR",
            "severity": "error",
            "message": "Open path of 1 segment(s), length 35; its ends do not meet (end-to-end gap 35).",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": null,
                "layer": "CUT",
                "point": [
                    5,
                    55
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": false
        }
    ],
    "issues_truncated": false,
    "data": {
        "units": "mm",
        "units_source": "customer",
        "cut_length": 600.463706144,
        "cut_length_breakdown": {
            "all_entities": 635.463706144,
            "duplicates_removed": 35,
            "collinear_overlap_removed": 0
        },
        "exact": true,
        "numeric_error_bound": 0,
        "contours": {
            "closed": 3,
            "open": 2,
            "parts": 1,
            "holes": 2
        },
        "pierces": 5,
        "net_area": 6071.68146928,
        "area_note": "Exact for lines and circular arcs; ellipses and splines use sampled vertices. Holes subtracted.",
        "cut_length_mm": 600.463706144,
        "net_area_mm2": 6071.68146928,
        "verdict": "defects_found",
        "verdict_note": "Checks cover the drawing geometry only. Whether a part can be made also depends on material, machine, kerf, minimum feature size and tooling, which this API does not know."
    },
    "processing": {
        "duration_ms": 13,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 9
    }
}
飞行前检查 — 代码片段

curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43224/preflight+check' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' 

--data-raw '{"dxf_text":"0\nSECTION\n2\nHEADER\n9\n$INSUNITS\n70\n4\n0\nENDSEC\n0\nSECTION\n2\nENTITIES\n0\nLINE\n8\n0\n10\n0\n20\n0\n11\n100\n21\n0\n0\nLINE\n8\n0\n10\n100\n20\n0\n11\n100\n21\n50\n0\nLINE\n8\n0\n10\n100\n20\n50\n11\n0\n21\n50\n0\nLINE\n8\n0\n10\n0\n20\n50\n11\n0\n21\n0.1\n0\nENDSEC\n0\nEOF\n","options":{"gap_tolerance":0.5}}'

    
请求
每个图层的实体数量、曲线长度、边界框、指定角色,以及该图层是否包含在切割中。标记图形中不存在的角色名称。 选项(`options` 对象): - `units`(mm、cm、m、in、ft):当 DXF 未指定单位($INSUNITS 为无单位)时声明单位。绝不假定单位。 - `layers`(对象):图层角色,例如 {"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}。如果未指定角色,则所有可见图层上受支持的曲线都计为切割几何图形。 - `include_hidden_layers`(布尔值,默认 false):除非设为 true,否则忽略关闭和冻结的图层。 - `tolerance`(数字):端点匹配容差,单位为图形单位(默认值:图形对角线 × 1e-7)。 - `gap_tolerance`(数字):将距离小于此值的开放端点报告为间隙】【。
Endpoint ID: 43225
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43225/layer+report
输入参数

图层报告 — 端点功能

对象 描述
请求体 必需 Json

剩余免费测试请求:3 / 3。


输入参数

API 示例响应
JSON
{
    "request_id": "req_749bbcfe923a49fd9b67",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 0,
        "warnings": 0,
        "info": 1
    },
    "issues": [
        {
            "code": "LAYER_ROLES_NOT_SET",
            "severity": "info",
            "message": "No layer roles given, so every supported curve on visible layers counts as cut geometry. Send options.layers = {\"cut\": [...], \"engrave\": [...], \"construction\": [...]}.",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": null
            },
            "value": null,
            "suggestion": null,
            "basis": "customer_rule",
            "fixable": false
        }
    ],
    "issues_truncated": false,
    "data": {
        "layers": [
            {
                "name": "0",
                "on": true,
                "frozen": false,
                "locked": false,
                "color": 7,
                "linetype": "Continuous",
                "role": "unassigned",
                "entities": [],
                "curve_length": 0,
                "bounding_box": null,
                "included_in_cut": false
            },
            {
                "name": "Defpoints",
                "on": true,
                "frozen": false,
                "locked": false,
                "color": 7,
                "linetype": "Continuous",
                "role": "unassigned",
                "entities": [],
                "curve_length": 0,
                "bounding_box": null,
                "included_in_cut": false
            },
            {
                "name": "CUT",
                "on": true,
                "frozen": false,
                "locked": false,
                "color": null,
                "linetype": null,
                "declared_in_layer_table": false,
                "role": "unassigned",
                "entities": {
                    "LINE": 5,
                    "LWPOLYLINE": 2,
                    "CIRCLE": 1
                },
                "curve_length": 635.463706144,
                "bounding_box": {
                    "min": [
                        0,
                        0
                    ],
                    "max": [
                        120,
                        60
                    ],
                    "width": 120,
                    "height": 60
                },
                "included_in_cut": true
            },
            {
                "name": "TEXT",
                "on": true,
                "frozen": false,
                "locked": false,
                "color": null,
                "linetype": null,
                "declared_in_layer_table": false,
                "role": "unassigned",
                "entities": {
                    "TEXT": 1
                },
                "curve_length": 0,
                "bounding_box": null,
                "included_in_cut": false
            }
        ],
        "roles_applied": []
    },
    "processing": {
        "duration_ms": 10,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 9
    }
}
图层报告 — 代码片段

curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43225/layer+report' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' 

--data-raw '{"dxf_text":"0\nSECTION\n2\nHEADER\n9\n$INSUNITS\n70\n4\n0\nENDSEC\n0\nSECTION\n2\nENTITIES\n0\nLINE\n8\nCUT\n10\n0\n20\n0\n11\n200\n21\n0\n0\nLINE\n8\nCUT\n10\n200\n20\n0\n11\n200\n21\n100\n0\nLINE\n8\nCUT\n10\n200\n20\n100\n11\n0\n21\n100\n0\nLINE\n8\nCUT\n10\n0\n20\n100\n11\n0\n21\n0\n0\nCIRCLE\n8\nCUT\n10\n100\n20\n50\n40\n20\n0\nLINE\n8\nETCH\n10\n10\n20\n10\n11\n60\n21\n10\n0\nENDSEC\n0\nEOF\n","options":{"layers":{"cut":["CUT"],"engrave":["ETCH"]}}}'

    
请求
根据几何图形绘制的纯 SVG(不含文本、脚本或外部引用),开放路径端点以红色标记 选项(`options` 对象): - `width_px`(64-4000):输出宽度 - `show_problems`(布尔值):标记开放端点 - `units`(mm、cm、m、in、ft):当 DXF 未指定单位(`$INSUNITS` 无单位)时声明单位。绝不自动假定 - `layers`(对象):图层角色,例如 `{"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}`。未指定角色时,所有可见图层上的受支持曲线均视为切割几何 - `include_hidden_layers`(布尔值,默认 `false`):忽略关闭和冻结的图层,除非设为 `true` - `tolerance`(数值):端点匹配容差,单位为绘图单位(默认值:图形对角线 × 1e-7) - `gap_tolerance`(数值):将小于此距离的开放端点报告为间隙辱
Endpoint ID: 43226
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43226/svg+preview
输入参数

SVG 预览 — 端点功能

对象 描述
请求体 必需 Json

剩余免费测试请求:3 / 3。


输入参数

API 示例响应
JSON
{
    "request_id": "req_12d5449549ac4e539827",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 0,
        "warnings": 0,
        "info": 0
    },
    "issues": [],
    "issues_truncated": false,
    "data": {
        "format": "svg",
        "content_type": "image/svg+xml",
        "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"800\" height=\"423\" viewBox=\"-3.6 -63.6 127.2 67.2\"><rect x=\"-3.6\" y=\"-63.6\" width=\"127.2\" height=\"67.2\" fill=\"#FFFFFF\"/><g fill=\"none\" stroke-width=\"0.212\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M60 -15 L50.2 -15\" stroke=\"#14213D\"/><path...",
        "note": "Generated by CADGuard from the geometry only: no text, scripts or external references."
    },
    "processing": {
        "duration_ms": 13,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 9
    }
}
SVG 预览 — 代码片段

curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43226/svg+preview' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' 

--data-raw '{"dxf_text":"0\nSECTION\n2\nHEADER\n9\n$INSUNITS\n70\n4\n0\nENDSEC\n0\nSECTION\n2\nENTITIES\n0\nLINE\n8\nCUT\n10\n0\n20\n0\n11\n200\n21\n0\n0\nLINE\n8\nCUT\n10\n200\n20\n0\n11\n200\n21\n100\n0\nLINE\n8\nCUT\n10\n200\n20\n100\n11\n0\n21\n100\n0\nLINE\n8\nCUT\n10\n0\n20\n100\n11\n0\n21\n0\n0\nCIRCLE\n8\nCUT\n10\n100\n20\n50\n40\n20\n0\nLINE\n8\nETCH\n10\n10\n20\n10\n11\n60\n21\n10\n0\nENDSEC\n0\nEOF\n","options":{"width_px":400}}'

    
请求
每个零件的净面积和质量、总质量、零件在包围盒网格上的排版,以及按质量或按板材计算的材料成本。仅使用您提供的参数;不考虑切缝、排版优化、机器时间或人工。 选项(`options` 对象): - `thickness`(mm,必填):板材厚度。 - `density`(数字,必填):密度。 - `density_unit`(g/cm3 或 kg/m3):默认 g/cm3。 - `price_per_kg`(数字):可选。 - `sheet`([w, h] mm):可选板材尺寸。 - `sheet_price`(数字):可选。 - `part_spacing_mm`(数字,默认 5):网格上零件之间的间距。 - `quantity`(整数):零件数量。 - `units`(mm、cm、m、in、ft):当 DXF 未设置 `$INSUNITS`(无单位)时,声明单位。不会自动假定单位。 - `layers`(对象):图层用途,例如 {"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}。若未指定用途,可见图层上的所有受支持曲线都将计为切割几何。 - `include_hidden_layers`(布尔值,默认 false):除非设为 true,否则忽略关闭和冻结的图层。 - `tolerance`(数字):端点匹配公差,单位为图纸单位(默认值:图纸对角线 × 1e-7)。 - `gap_tolerance`(数字):将距离小于此值的未闭合端点报告为间隙。
Endpoint ID: 43227
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43227/material+estimate+from+your+parameters
输入参数

根据您的参数估算材料量 — 端点功能

对象 描述
请求体 必需 Json

剩余免费测试请求:3 / 3。


输入参数

API 示例响应
JSON
{
    "request_id": "req_a63afe732009416085a7",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 0,
        "warnings": 1,
        "info": 0
    },
    "issues": [
        {
            "code": "AREA_EXCLUDES_OPEN_PATHS",
            "severity": "warning",
            "message": "Open contours enclose no area and are excluded from mass and area.",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": null
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": false
        }
    ],
    "issues_truncated": false,
    "data": {
        "per_part": {
            "net_area_mm2": 6071.68146928,
            "mass_kg": 0.0953253990677,
            "bounding_box_mm": [
                120,
                60
            ]
        },
        "quantity": 100,
        "total_mass_kg": 9.53253990677,
        "cut_length_mm": 600.463706144,
        "pierces": 5,
        "assumptions": [
            "Mass from closed-contour net area x thickness x density.",
            "Sheet fit uses bounding boxes on a grid, not true nesting.",
            "No kerf, scrap, setup, machine time or labour included."
        ],
        "material_cost_by_mass": 10.4858,
        "sheet": {
            "size_mm": [
                3000,
                1500
            ],
            "parts_per_sheet_grid": 552,
            "sheets_needed": 1,
            "utilisation_by_area": 0.744792926898
        }
    },
    "processing": {
        "duration_ms": 12,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 9
    }
}
根据您的参数估算材料量 — 代码片段

curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43227/material+estimate+from+your+parameters' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' 

--data-raw '{"dxf_text":"0\nSECTION\n2\nHEADER\n9\n$INSUNITS\n70\n4\n0\nENDSEC\n0\nSECTION\n2\nENTITIES\n0\nLINE\n8\n0\n10\n0\n20\n0\n11\n100\n21\n0\n0\nLINE\n8\n0\n10\n100\n20\n0\n11\n100\n21\n50\n0\nLINE\n8\n0\n10\n100\n20\n50\n11\n0\n21\n50\n0\nLINE\n8\n0\n10\n0\n20\n50\n11\n0\n21\n0\n0\nENDSEC\n0\nEOF\n","options":{"thickness":2,"density":7.85,"price_per_kg":1.2,"sheet":[1000,500],"quantity":10}}'

    
请求
默认执行试运行。删除完全重复的实体和零长度实体(默认开启),仅在收到请求时:连接间距在 join_gaps 范围内的开放 LINE/LWPOLYLINE 端点,删除列出的图层,并通过缩放转换单位。每项更改都会列出;当 dry_run 为 false 时,会返回修复后的 DXF(base64)以及包含未解决问题的修复前后摘要。绝不会编辑块内容。 选项(`options` 对象): - `dry_run`(布尔值,默认 true):仅预览。 - `join_gaps`(数字):吸附开放端点的最大距离,单位为绘图单位。 - `remove_layers`(列表):要删除的图层(例如 construction)。 - `convert_units_to`(mm、cm、m、in):缩放几何图形并设置 $INSUNITS;需要已知源单位。 - `units`(mm、cm、m、in、ft):当 DXF 未声明单位($INSUNITS 为无单位)时指定单位。绝不假定单位。 - `layers`(对象):图层角色,例如 {"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}。未指定角色时,可见图层上的所有受支持曲线都会被视为切割几何图形。 - `include_hidden_layers`(布尔值,默认 false):除非设为 true,否则忽略关闭和冻结的图层。 - `tolerance`(数字):端点匹配公差,单位为绘图单位(默认值:绘图对角线 x 1e-7)。 - `gap_tolerance`(数字):将小于此距离的开放端点报告为间隙。
Endpoint ID: 43228
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43228/safe+repair+with+a+change+list
输入参数

带更改清单的安全修复 — 端点功能

对象 描述
请求体 必需 Json

剩余免费测试请求:3 / 3。


输入参数

API 示例响应
JSON
{
    "request_id": "req_00acb5a038ff45df989f",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 0,
        "warnings": 0,
        "info": 0
    },
    "issues": [],
    "issues_truncated": false,
    "data": {
        "dry_run": true,
        "changes": [
            {
                "action": "remove_duplicate",
                "handle": "32",
                "entity": "LINE",
                "layer": "CUT",
                "detail": "Exact duplicate of entity 33."
            }
        ],
        "changes_count": 1,
        "manifest_truncated": false,
        "before": {
            "units": "mm",
            "units_source": "header",
            "cut_length": 600.463706144,
            "cut_length_breakdown": {
                "all_entities": 635.463706144,
                "duplicates_removed": 35,
                "collinear_overlap_removed": 0
            },
            "exact": true,
            "numeric_error_bound": 0,
            "contours": {
                "closed": 3,
                "open": 2,
                "parts": 1,
                "holes": 2
            },
            "pierces": 5,
            "net_area": 6071.68146928,
            "area_note": "Exact for lines and circular arcs; ellipses and splines use sampled vertices. Holes subtracted.",
            "cut_length_mm": 600.463706144,
            "net_area_mm2": 6071.68146928
        }
    },
    "processing": {
        "duration_ms": 13,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 9
    }
}
带更改清单的安全修复 — 代码片段

curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43228/safe+repair+with+a+change+list' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' 

--data-raw '{"dxf_text":"0\nSECTION\n2\nHEADER\n9\n$INSUNITS\n70\n4\n0\nENDSEC\n0\nSECTION\n2\nENTITIES\n0\nLINE\n8\n0\n10\n0\n20\n0\n11\n100\n21\n0\n0\nLINE\n8\n0\n10\n100\n20\n0\n11\n100\n21\n50\n0\nLINE\n8\n0\n10\n100\n20\n50\n11\n0\n21\n50\n0\nLINE\n8\n0\n10\n0\n20\n50\n11\n0\n21\n0.1\n0\nENDSEC\n0\nEOF\n","options":{"dry_run":false,"join_gaps":0.2}}'

    
请求
已添加和删除的轮廓、切割长度的变化、穿孔、零件、孔、面积和整体尺寸,以及添加或删除的图层。按几何形状匹配,因此重新绘制、重新排序或反向的实体不会报告为更改。将原始文件作为 file 发送,将修订版作为 modified 发送。 选项(`options` 对象): - `units`(mm、cm、m、in、ft):当 DXF 未指定单位($INSUNITS 无单位)时声明单位。不会假定单位。 - `layers`(对象):图层用途,例如 {"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}。如果未指定用途,所有可见图层上的受支持曲线都将计为切割几何。 - `include_hidden_layers`(布尔值,默认 false):关闭或冻结的图层将被忽略,除非设为 true。 - `tolerance`(数字):端点匹配公差,单位为图纸单位(默认值:图纸对角线长度 × 1e-7)。 - `gap_tolerance`(数字):将小于此距离的开放端点报告为间隙。
Endpoint ID: 43229
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43229/compare+two+revisions
输入参数

比较两个修订版 — 端点功能

对象 描述
请求体 必需 Json

剩余免费测试请求:3 / 3。


输入参数

API 示例响应
JSON
{
    "request_id": "req_df6bb8f7b2eb44d8a829",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 0,
        "warnings": 3,
        "info": 0
    },
    "issues": [
        {
            "code": "CONTOUR_REMOVED",
            "severity": "warning",
            "message": "A closed contour (length 62.8319) is in the original but not in the revision.",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": null,
                "layer": "CUT",
                "point": [
                    40,
                    30
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": false
        },
        {
            "code": "CONTOUR_REMOVED",
            "severity": "warning",
            "message": "A open contour (length 29.8) is in the original but not in the revision.",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": null,
                "layer": "CUT",
                "point": [
                    50,
                    5
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": false
        },
        {
            "code": "CONTOUR_ADDED",
            "severity": "warning",
            "message": "A closed contour (length 75.3982) is new in the revision.",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": null,
                "layer": "CUT",
                "point": [
                    42,
                    30
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": false
        }
    ],
    "issues_truncated": false,
    "data": {
        "identical_geometry": false,
        "contours_added": [
            {
                "closed": true,
                "role": "hole",
                "length": 75.3982236862,
                "area": 452.389342117,
                "start": [
                    42,
                    30
                ],
                "layer": "CUT"
            }
        ],
        "contours_removed": [
            {
                "closed": true,
                "role": "hole",
                "length": 62.8318530718,
                "area": 314.159265359,
                "start": [
                    40,
                    30
                ],
                "layer": "CUT"
            },
            {
                "closed": false,
                "role": "open",
                "length": 29.8,
                "area": 0,
                "start": [
                    50,
                    5
                ],
                "layer": "CUT"
            }
        ],
        "cut_length": [
            600.463706144,
            583.230076758
        ],
        "cut_length_change": -17.233629386,
        "pierces": [
            5,
            4
        ],
        "parts": [
            1,
            1
        ],
        "holes": [
            2,
            2
        ],
        "net_area": [
            6071.68146928,
            5933.45139252
        ],
        "dimensions": {
            "width": [
                120,
                120
            ],
            "height": [
                60,
                60
            ]
        },
        "layers_added": [],
        "layers_removed": [],
        "entity_counts": [
            {
                "TEXT": 1,
                "LINE": 5,
                "LWPOLYLINE": 2,
                "CIRCLE": 1
            },
            {
                "TEXT": 1,
                "LINE": 2,
                "LWPOLYLINE": 2,
                "CIRCLE": 1
            }
        ],
        "match_tolerance": 0.013416407864998736,
        "note": "Contours are matched by position, length and area, so redrawing, reordering or reversing entities is not reported as a change."
    },
    "processing": {
        "duration_ms": 24,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 15
    }
}
比较两个修订版 — 代码片段

curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43229/compare+two+revisions' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' 

--data-raw '{"file_base64":"MApTRUNUSU9OCjIKSEVBREVSCjkKJElOU1VOSVRTCjcwCjQKMApFTkRTRUMKMApTRUNUSU9OCjIKRU5USVRJRVMKMApMSU5FCjgKQ1VUCjEwCjAKMjAKMAoxMQoyMDAKMjEKMAowCkxJTkUKOApDVVQKMTAKMjAwCjIwCjAKMTEKMjAwCjIxCjEwMAowCkxJTkUKOApDVVQKMTAKMjAwCjIwCjEwMAoxMQowCjIxCjEwMAowCkxJTkUKOApDVVQKMTAKMAoyMAoxMDAKMTEKMAoyMQowCjAKQ0lSQ0xFCjgKQ1VUCjEwCjEwMAoyMAo1MAo0MAoyMAowCkxJTkUKOApFVENICjEwCjEwCjIwCjEwCjExCjYwCjIxCjEwCjAKRU5EU0VDCjAKRU9GCg==","modified_base64":"MApTRUNUSU9OCjIKSEVBREVSCjkKJElOU1VOSVRTCjcwCjQKMApFTkRTRUMKMApTRUNUSU9OCjIKRU5USVRJRVMKMApMSU5FCjgKQ1VUCjEwCjAKMjAKMAoxMQoyMDAKMjEKMAowCkxJTkUKOApDVVQKMTAKMjAwCjIwCjAKMTEKMjAwCjIxCjEwMAowCkxJTkUKOApDVVQKMTAKMjAwCjIwCjEwMAoxMQowCjIxCjEwMAowCkxJTkUKOApDVVQKMTAKMAoyMAoxMDAKMTEKMAoyMQowCjAKQ0lSQ0xFCjgKQ1VUCjEwCjEwMAoyMAo1MAo0MAoyNQowCkNJUkNMRQo4CkNVVAoxMAo0MAoyMAo1MAo0MAoxMAowCkxJTkUKOApFVENICjEwCjEwCjIwCjEwCjExCjYwCjIxCjEwCjAKRU5EU0VDCjAKRU9GCg==","options":{"layers":{"cut":["CUT"],"engrave":["ETCH"]}}}'

    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 CADGuard DXF API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。

标头
标头 描述
授权 必需 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。

起价
$10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

概览

以激光或 CNC 切割机的方式读取二维 DXF:精确切割长度、穿孔次数、零件和孔洞、开放轮廓、重复项和间隙,以及修订版比较和附带更改清单的安全修复

CADGuard DXF API FAQs

它报告 DXF 版本和单位 图层状态 块展开后的实体数量 支持的曲线 被忽略的注释 不支持的实体 使用的块 纸空间实体数量以及标头元数据 使用这些字段检查 API 可以分析哪些几何图形 然后再解读后续结果

它返回边界框的最小和最大坐标、宽度和高度,单位为绘图单位。已知单位时,它还会提供以毫米为单位的尺寸。可选参数 `expected_max_size` 会检查图纸在任一方向上是否超出限制

切割分析报告切割长度、重复和重叠调整、穿孔数、零件数、孔数、净面积,以及按图层和实体类型划分的长度明细。轮廓结果提供每条路径的闭合或开放状态、角色、线段数、长度、面积和起点;如有要求,也会包含间隙

预检会检查几何图形中的开放轮廓、重复项、共线重叠、零长度实体、自相交、交叉轮廓、分支连接点、尺寸限制和缺失几何图形。它不了解材料、切缝或加工工具,因此其判定并非完整的制造评估。

每个图层条目都包含其实体数量 曲线长度 边界框 指定角色 与可见性相关的状态 以及是否包含在切割中 报告还可以标记与图纸中的图层不匹配的角色名称

该端点仅根据几何图形生成 SVG 标记,不包含文本、脚本或外部引用。开放路径的端点可以标记为红色。将 `width_px` 设置为 64 到 4000 之间的值以控制输出宽度,或使用 `show_problems` 请求显示问题标记 .

估算结果包括每个零件的面积、质量和边界框,以及总质量和可选的材料成本。板材排样使用按指定间距排列在网格上的边界框;这不是真正的套料。不包括切缝、废料、机器时间和人工。

它报告新增和删除的轮廓、切割长度变化、穿孔、零件、孔洞、面积和整体尺寸,以及新增或删除的图层。匹配基于几何形状,因此重新绘制、重新排序或反转的实体不会被报告为更改。

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]

此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

相关 API