DEV Community

GuGuData
GuGuData

Posted on

HTML 转 Word API 接口

HTML 转 Word API 接口

支持网页转 Word,高效转换为 Word,提供永久链接。

gugudata_api_cover

1. 产品功能

  • 超高性能转换效率;
  • 支持将传递的 HTML 转换为 Word,支持 HTML 中的 CSS 格式在 Word 文档中的呈现;
  • 支持传递网站的 URL,直接转换成对应的 Word 格式返回;
  • 转换后的 Word 提供永久存储文件地址;
  • 已完美支持 Word 中各类样式、列表等格式的解析;
  • 全接口支持 HTTPS(TLS v1.0 / v1.1 / v1.2 / v1.3);
  • 全面兼容 Apple ATS;
  • 全国多节点 CDN 部署;
  • 接口极速响应,多台服务器构建 API 接口负载均衡。

2. API 文档

API 详情地址: https://www.gugudata.com/api/details/html2word

接口请求地址: https://api.gugudata.com/imagerecognition/html2word

返回格式: application/json; charset=utf-8

请求方式: POST

请求协议: HTTPS

请求示例: https://api.gugudata.com/imagerecognition/html2word

数据预览: https://www.gugudata.com/preview/html2word

接口测试: https://api.gugudata.com/imagerecognition/html2word/demo

3. 请求参数

参数名 参数类型 是否必须 默认值 备注
appkey string YOUR_APPKEY 付费后获取的 APPKEY
type string YOUR_APPKEY 可选参数为 HTML 或 URL(注意,当类型为 URL 时,需要保证页面可以正常请求,我们的接口不解决加密页面、反爬虫页面等不能正常返回 HTML 的页面请求)
content string YOUR_VALUE 内容正文,如果 type=HTML,那么传递 HTML 内容;如果 type=URL,那么传递需要存储为 Word 的站点 URL 即可

4. 返回参数

参数名 参数类型 备注
DataStatus.StatusCode int 接口返回状态码
DataStatus.StatusDescription string 接口返回状态说明
DataStatus.ResponseDateTime string 接口数据返回时间
DataStatus.DataTotalCount int 此条件下的总数据量,一般用于分页计算
Data string 转换后的 Word 永久链接

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay