该接口功能是将网页HTML源码转换成Markdown格式的文本。本接口以每消耗3000个token(对应HTML中正文文字数量约为2300个)计费一次。如果HTML正文文字过多,则存在多次计费的情况。
| 参数名称 | 类型 | 示例值 | 必须 | 描述 |
|---|---|---|---|---|
| content-type | String | application/x-www-form-urlencoded | 否 |
| 参数名称 | 类型 | 示例值 | 必须 | 描述 |
|---|---|---|---|---|
| html | String | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>libcurl - the multiprotocol file transfer library</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <script type="text/javascript" nonce="fab99ea9780e4289b8051a24524" src="//injections.adguard.org?ts=1712884296286&type=content-script&dmn=curl.se&url=https%3A%2F%2Fcurl.se%2Flibcurl%2F&app=com.operasoftware.Opera&css=3&js=1&rel=1&rji=1&sbe=1"></script> <script type="text/javascript" nonce="fab99ea9780e4289b8051a24524" src="//injections.adguard.org?ts=1712884296286&name=AdGuard%20Popup%20Blocker&name=AdGuard%20Extra&type=user-script"></script><link rel="stylesheet" type="text/css" href="/curl.css"> <link rel="shortcut icon" href="/favicon.ico"> <link rel="icon" href="/logo/curl-symbol.svg" type="image/svg+xml"> <link rel="alternate" type="application/rss+xml" title="cURL Releases" href="https://github.com/curl/curl/releases.atom"> <meta name="description" content="libcurl is a free and easy-to-use client-side URL transfer library, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP. libcurl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, kerberos, HTTP form based upload, proxies, cookies, user+password authentication, file transfer resume, http proxy tunneling and more"> </head> <body> <div class="main"> <div class="menu"> <a href="" class="itemselect">libcurl </a> <div class="dropdown"> <a class="dropbtn" href="/libcurl/">Docs</a> <div class="dropdown-content"> <a href="/libcurl/abi.html">ABI</a> <a href="/libcurl/c/">API</a> <a href="/libcurl/bindings.html">Bindings</a> <a href="/libcurl/competitors.html">Competitors</a> <a href="/libcurl/c/example.html">Examples</a> <a href="/libcurl/features.html">Features</a> <a href="/mail/list.cgi?list=curl-library">Mailing list</a> <a href="/libcurl/relatedlibs.html">Related libs</a> <a href="/libcurl/using/">Using libcurl</a> <a href="/libcurl/security.html">Security</a> <a href="/libcurl/c/symbols-in-versions.html">Symbols</a> <a href="/libcurl/c/libcurl-tutorial.html">Tutorial</a> <a href="/libcurl/theysay.html">Testimonials</a> </div> </div> </div> <div class="contents"> <div class="where"><a href="/">curl</a> / <b>libcurl overview</b></div> <h1> libcurl - the multiprotocol file transfer library </h1> <p> libcurl is a <a href="/docs/copyright.html" title="free as in both free speech and zero price!">free</a> and easy-to-use client-side URL transfer library, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP. libcurl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, HTTP/2, HTTP/3, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, Kerberos), file transfer resume, http proxy tunneling and more! </p> <p> libcurl is highly portable, it builds and works identically on numerous platforms, including Solaris, NetBSD, FreeBSD, OpenBSD, Darwin, HPUX, IRIX, AIX, Tru64, Linux, UnixWare, HURD, Windows, Amiga, OS/2, BeOs, Mac OS X, Ultrix, QNX, OpenVMS, RISC OS, Novell NetWare, DOS and more... </p> <p> libcurl is <a href="/docs/copyright.html">free</a>, <a href="features.html#thread">thread-safe</a>, <a href="features.html#ipv6">IPv6 compatible</a>, <a href="features.html#features">feature rich</a>, <a href="features.html#support">well supported</a>, <a href="features.html#fast">fast</a>, <a href="features.html#docs">thoroughly documented</a> and is already used by many known, big and successful <a href="/docs/companies.html">companies</a>. </p> <p><b>Download</b> <p> Go to the regular curl <a href="/download.html">download page</a> and get the latest curl package, or one of the specific libcurl packages listed. <p><b>API</b> <p> You use libcurl with the provided <a href="c/">C API</a>. The curl team works hard to keep the <a href="features.html#stableapi">API and ABI stable</a>. If you prefer using libcurl from your other favorite language, chances are there's already a <a href="bindings.html">binding</a> written for it. <p><b>Howto</b> <p> Check out our <a href="using/">using libcurl</a> page for general hints and advice and man pages for <a href="c/allfuncs.html">every function</a> and option. Also, check out the <a href="https://everything.curl.dev/libcurl">libcurl section of everything curl</a>. <p> libcurl is probably the most portable, most powerful and most often used network transfer library on this planet. </div> </div> </body> </html> | 否 | 网页的HTML源码 |
| ret_type | String | markdown | 否 | 返回格式 json (默认值) markdown |
| run_type | String | async | 否 | 执行方式 sync: 同步返回(生成时间比较长,容易超时,建议使用异步) async:异步返回(默认值) |
| task_name | String | - | 否 | 任务名称 |