关于API:
此API将允许您动态生成PDF文件以存储和显示您想要的任何HTML。同时,您可以传递一个URL并接收该内容的PDF,以便您可以检查其中的内容。
此API将接收您想要解析为PDF的HTML代码或一个URL。您将收到一个链接以便稍后下载您的PDF文件。
此API将允许您对您的HTML代码进行可视化展示。非常适合在会议或与其他希望看到页面在浏览器中如何显示的团队进行演示。
此API为您提供了将任何页面内容提取为PDF文件的可能性。您可以存储这些信息,并检查其他网页在浏览器中如何显示。此外,您可以下载网页的不同阶段以进行比较。
除了每月的API调用次数之外,没有其他限制。
传递您想要转换为PDF文件的URL。接收一个链接以下载PDF文件
URL到PDF - 端点功能
| 对象 | 描述 |
|---|---|
url |
[必需] |
https://cdn.opq.to/pdfs/3c3496c6f68e79e6b971fb702f766d5f.pdf
curl --location --request GET 'https://zylalabs.com/api/138/html+and+url+to+pdf+api/180/url+to+pdf?url=https://zylalabs.com' --header 'Authorization: Bearer YOUR_API_KEY'
传递您想要转换为 PDF 的 HTML。收到链接以稍后下载 PDF 文件
HTML到PDF - 端点功能
| 对象 | 描述 |
|---|---|
html |
[必需] |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="nvIeN1mkSK3y5TSJf3RKalfVFFfve03dFfRsoUIb">
<title>OneSimpleApi.com</title>
<meta data-vmid="description" name="description" content="The first API toolkit designed to save you time, money and stress. A toolbox with all the things you need to get your project to success: PDF generation, Currency Exchange, QR codes, SEO Metadata, Screenshots, and more.">
<!-- og -->
<meta name="og:locale" property="og:locale" content="en_US" />
<meta property="og:type" content="website" />
<meta data-vmid="og_title" property="og:title" content="OneSimpleApi.com" />
<meta data-vmid="og_description" property="og:description" content="The first API toolkit designed to save you time, money and stress. A toolbox with all the things you need to get your project to success: PDF generation, Currency Exchange, QR codes, SEO Metadata, Screenshots, and more." />
<meta property="og:image" content="https://onesimpleapi.com/api/screenshot?token=mRAmvwlKc5Tj1Rz54bLPIV5PHlebDaAAQxej3Tx2&output=redirect&url=https%3A%2F%2Fonesimpleapi.com%2Flogin%2F%3Fv%3D1.1" />
<meta property="og:url" content="https://onesimpleapi.com/login" />
<meta property="og:site_name" content="OneSimpleApi.com" />
<!-- twitter card -->
<meta name="twitter:card" content="summary_large_image"/>
<meta data-vmid="twitter_title" name="twitter:title" content="OneSimpleApi.com"/>
<meta data-vmid="twitter_description" name="twitter:description" content="The first API toolkit designed to save you time, money and stress. A toolbox with all the things you need to get your project to success: PDF generation, Currency Exchange, QR codes, SEO Metadata, Screenshots, and more."/>
<meta name="twitter:image" content="https://onesimpleapi.com/api/screenshot?token=mRAmvwlKc5Tj1Rz54bLPIV5PHlebDaAAQxej3Tx2&output=redirect&url=https%3A%2F%2Fonesimpleapi.com%2Flogin%2F%3Fv%3D1.1" />
<meta name="twitter:creator" content="@OneSimpleApi"/>
<meta name="twitter:site" content="@OneSimpleApi"/>
<link rel="canonical" href="https://onesimpleapi.com/login">
<!-- Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap">
<!-- Styles -->
<link rel="stylesheet" href="/css/app.css?id=1a6479e77d9663d906b98af618b741c2">
<link rel="icon" href="/favicon.ico" type="image/x-icon"/>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
<!-- Scripts -->
<script type="text/javascript">
const Ziggy = {"url":"https:\/\/onesimpleapi.com","port":null,"defaults":{},"routes":{"ignition.healthCheck":{"uri":"_ignition\/health-check","methods":["GET","HEAD"]},"ignition.executeSolution":{"uri":"_ignition\/execute-solution","methods":["POST"]},"ignition.shareReport":{"uri":"_ignition\/share-report","methods":["POST"]},"ignition.scripts":{"uri":"_ignition\/scripts\/{script}","methods":["GET","HEAD"]},"ignition.styles":{"uri":"_ignition\/styles\/{style}","methods":["GET","HEAD"]},"cashier.payment":{"uri":"stripe\/payment\/{id}","methods":["GET","HEAD"]},"webhook":{"uri":"stripe\/webhook","methods":["POST"]},"login":{"uri":"login","methods":["GET","HEAD"]},"logout":{"uri":"logout","methods":["POST"]},"password.request":{"uri":"forgot-password","methods":["GET","HEAD"]},"password.reset":{"uri":"reset-password\/{token}","methods":["GET","HEAD"]},"password.email":{"uri":"forgot-password","methods":["POST"]},"password.update":{"uri":"reset-password","methods":["POST"]},"register":{"uri":"register","methods":["GET","HEAD"]},"verification.notice":{"uri":"email\/verify","methods":["GET","HEAD"]},"verification.verify":{"uri":"email\/verify\/{id}\/{hash}","methods":["GET","HEAD"]},"verification.send":{"uri":"email\/verification-notification","methods":["POST"]},"user-profile-information.update":{"uri":"user\/profile-information","methods":["PUT"]},"user-password.update":{"uri":"user\/password","methods":["PUT"]},"password.confirmation":{"uri":"user\/confirmed-password-status","methods":["GET","HEAD"]},"password.confirm":{"uri":"user\/confirm-password","methods":["POST"]},"two-factor.login":{"uri":"two-factor-challenge","methods":["GET","HEAD"]},"two-factor.enable":{"uri":"user\/two-factor-authentication","methods":["POST"]},"two-factor.confirm":{"uri":"user\/confirmed-two-factor-authentication","methods":["POST"]},"two-factor.disable":{"uri":"user\/two-factor-authentication","methods":["DELETE"]},"two-factor.qr-code":{"uri":"user\/two-factor-qr-code","methods":["GET","HEAD"]},"two-factor.secret-key":{"uri":"user\/two-factor-secret-key","methods":["GET","HEAD"]},"two-factor.recovery-codes":{"uri":"user\/two-factor-recovery-codes","methods":["GET","HEAD"]},"horizon.stats.index":{"uri":"horizon\/api\/stats","methods":["GET","HEAD"]},"horizon.workload.index":{"uri":"horizon\/api\/workload","methods":["GET","HEAD"]},"horizon.masters.index":{"uri":"horizon\/api\/masters","methods":["GET","HEAD"]},"horizon.monitoring.index":{"uri":"horizon\/api\/monitoring","methods":["GET","HEAD"]},"horizon.monitoring.store":{"uri":"horizon\/api\/monitoring","methods":["POST"]},"horizon.monitoring-tag.paginate":{"uri":"horizon\/api\/monitoring\/{tag}","methods":["GET","HEAD"]},"horizon.monitoring-tag.destroy":{"uri":"horizon\/api\/monitoring\/{tag}","methods":["DELETE"],"wheres":{"tag":".*"}},"horizon.jobs-metrics.index":{"uri":"horizon\/api\/metrics\/jobs","methods":["GET","HEAD"]},"horizon.jobs-metrics.show":{"uri":"horizon\/api\/metrics\/jobs\/{id}","methods":["GET","HEAD"]},"horizon.queues-metrics.index":{"uri":"horizon\/api\/metrics\/queues","methods":["GET","HEAD"]},"horizon.queues-metrics.show":{"uri":"horizon\/api\/metrics\/queues\/{id}","methods":["GET","HEAD"]},"horizon.jobs-batches.index":{"uri":"horizon\/api\/batches","methods":["GET","HEAD"]},"horizon.jobs-batches.show":{"uri":"horizon\/api\/batches\/{id}","methods":["GET","HEAD"]},"horizon.jobs-batches.retry":{"uri":"horizon\/api\/batches\/retry\/{id}","methods":["POST"]},"horizon.pending-jobs.index":{"uri":"horizon\/api\/jobs\/pending","methods":["GET","HEAD"]},"horizon.completed-jobs.index":{"uri":"horizon\/api\/jobs\/completed","methods":["GET","HEAD"]},"horizon.silenced-jobs.index":{"uri":"horizon\/api\/jobs\/silenced","methods":["GET","HEAD"]},"horizon.failed-jobs.index":{"uri":"horizon\/api\/jobs\/failed","methods":["GET","HEAD"]},"horizon.failed-jobs.show":{"uri":"horizon\/api\/jobs\/failed\/{id}","methods":["GET","HEAD"]},"horizon.retry-jobs.show":{"uri":"horizon\/api\/jobs\/retry\/{id}","methods":["POST"]},"horizon.jobs.show":{"uri":"horizon\/api\/jobs\/{id}","methods":["GET","HEAD"]},"horizon.index":{"uri":"horizon\/{view?}","methods":["GET","HEAD"],"wheres":{"view":"(.*)"}},"terms.show":{"uri":"terms-of-service","methods":["GET","HEAD"]},"policy.show":{"uri":"privacy-policy","methods":["GET","HEAD"]},"profile.show":{"uri":"user\/profile","methods":["GET","HEAD"]},"other-browser-sessions.destroy":{"uri":"user\/other-browser-sessions","methods":["DELETE"]},"current-user-photo.destroy":{"uri":"user\/profile-photo","methods":["DELETE"]},"current-user.destroy":{"uri":"user","methods":["DELETE"]},"api-tokens.index":{"uri":"user\/api-tokens","methods":["GET","HEAD"]},"api-tokens.store":{"uri":"user\/api-tokens","methods":["POST"]},"api-tokens.update":{"uri":"user\/api-tokens\/{token}","methods":["PUT"]},"api-tokens.destroy":{"uri":"user\/api-tokens\/{token}","methods":["DELETE"]},"billing-portal.portal":{"uri":"user\/billing\/portal","methods":["GET","HEAD"]},"billing-portal.subscription.plan-subscribe":{"uri":"user\/billing\/subscription\/subscribe\/{plan}","methods":["POST"]},"billing-portal.subscription.plan-swap":{"uri":"user\/billing\/subscription\/swap\/{plan}","methods":["POST"]},"billing-portal.subscription.resume":{"uri":"user\/billing\/subscription\/resume","methods":["POST"]},"billing-portal.subscription.cancel":{"uri":"user\/billing\/subscription\/cancel","methods":["POST"]},"billing-portal.payment-method.default":{"uri":"user\/billing\/payment-method\/{payment_method}\/set-default","methods":["POST"]},"billing-portal.invoice.index":{"uri":"user\/billing\/invoice","methods":["GET","HEAD"]},"billing-portal.payment-method.index":{"uri":"user\/billing\/payment-method","methods":["GET","HEAD"]},"billing-portal.payment-method.create":{"uri":"user\/billing\/payment-method\/create","methods":["GET","HEAD"]},"billing-portal.payment-method.store":{"uri":"user\/billing\/payment-method","methods":["POST"]},"billing-portal.payment-method.show":{"uri":"user\/billing\/payment-method\/{payment_method}","methods":["GET","HEAD"]},"billing-portal.payment-method.destroy":{"uri":"user\/billing\/payment-method\/{payment_method}","methods":["DELETE"]},"billing-portal.subscription.index":{"uri":"user\/billing\/subscription","methods":["GET","HEAD"]},"home":{"uri":"\/","methods":["GET","HEAD"]},"security.show":{"uri":"security-policy","methods":["GET","HEAD"]},"home.price":{"uri":"price","methods":["GET","HEAD"]},"feedback":{"uri":"feedback","methods":["GET","HEAD"]},"sitemap.index":{"uri":"sitemap.xml","methods":["GET","HEAD"]},"site.show":{"uri":"site\/{page}","methods":["GET","HEAD"],"bindings":{"page":"slug"}},"docs.show":{"uri":"docs\/{doc}","methods":["GET","HEAD"],"bindings":{"doc":"slug"}},"blog.show":{"uri":"blog\/{post}","methods":["GET","HEAD"],"bindings":{"post":"slug"}},"blog.index":{"uri":"blog","methods":["GET","HEAD"]},"docs.index":{"uri":"docs","methods":["GET","HEAD"]},"posts.index":{"uri":"posts","methods":["GET","HEAD"]},"posts.create":{"uri":"posts\/create","methods":["GET","HEAD"]},"posts.store":{"uri":"posts","methods":["POST"]},"posts.show":{"uri":"posts\/{post}","methods":["GET","HEAD"],"bindings":{"...
curl --location --request POST 'https://zylalabs.com/api/138/html+and+url+to+pdf+api/181/html+to+pdf?html=%3Cbody%3E%3Ch1%3EHello%20World!%3C%2Fh1%3E%3C%2Fbody%3E' --header 'Authorization: Bearer YOUR_API_KEY'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
GET URL到PDF端点返回生成的PDF文件的直接链接 POST HTML到PDF端点也返回从提供的HTML内容创建的PDF文件的链接
响应数据的主要字段是生成的PDF文件的URL链接。此链接可用于下载PDF
GET URL到PDF端点需要一个参数:要转换的URL POST HTML到PDF端点需要要转换为PDF的HTML内容
响应数据被结构化为一个JSON对象,其中包含一个字段,链接到生成的PDF。这使得访问和检索PDF文件变得简单
两个端点提供对网页内容的PDF表示的访问 GET端点转换实时网页,而POST端点将自定义HTML代码转换为PDF
用户可以通过为GET端点提供不同的URL或为POST端点提供不同的HTML内容来自定义请求,从而根据特定需求生成定制的PDF输出
常见的用例包括生成文档的PDF 创建网页的视觉表示以用于演示以及归档网页内容以便进行时间比较
API直接从HTML或URL生成PDF,确保输出反映内容的最新版本 定期更新和质量检查有助于保持准确性
服务级别:
100%
响应时间:
157ms
服务级别:
100%
响应时间:
2,898ms
服务级别:
91%
响应时间:
2,513ms
服务级别:
100%
响应时间:
129ms
服务级别:
100%
响应时间:
1,926ms
服务级别:
100%
响应时间:
1,134ms
服务级别:
100%
响应时间:
0ms
服务级别:
100%
响应时间:
652ms
服务级别:
100%
响应时间:
68ms
服务级别:
100%
响应时间:
267ms
服务级别:
100%
响应时间:
652ms
服务级别:
100%
响应时间:
615ms
服务级别:
100%
响应时间:
10,640ms
服务级别:
100%
响应时间:
569ms
服务级别:
100%
响应时间:
1,167ms
服务级别:
100%
响应时间:
1,415ms
服务级别:
100%
响应时间:
2,071ms
服务级别:
100%
响应时间:
104ms
服务级别:
100%
响应时间:
138ms
服务级别:
100%
响应时间:
8,722ms