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'
<!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'
साइन अप करने के बाद, प्रत्येक डेवलपर को एक पर्सनल API एक्सेस की असाइन की जाती है, जो अक्षरों और अंकों का एक यूनिक संयोजन होता है, जिसका उपयोग हमारे API एंडपॉइंट तक पहुंचने के लिए किया जाता है। प्रमाणीकरण के लिए एचटीएमएल और यूआरएल को पीडीएफ API के साथ बस अपने बेयरर टोकन को Authorization हेडर में शामिल करें।
| हेडर | विवरण |
|---|---|
Authorization
|
आवश्यक
होना चाहिए Bearer access_key. जब आप सब्सक्राइब हों तो ऊपर "Your API Access Key" देखें।
|
कोई लंबी अवधि की प्रतिबद्धता नहीं। कभी भी अपग्रेड, डाउनग्रेड या कैंसल करें। फ्री ट्रायल में 50 रिक्वेस्ट तक शामिल हैं।
(वार्षिक बिलिंग के साथ 2 महीने बचाएँ 🎉)
अग्रणी कंपनियों का भरोसा
एपीआई के बारे में:
यह एपीआई आपको किसी भी HTML को स्टोर और डिस्प्ले करने के लिए गतिशील रूप से PDF फ़ाइलें उत्पन्न करने की अनुमति देगा। आप एक URL भी पास कर सकते हैं और कंटेंट का PDF प्राप्त कर सकते हैं ताकि आप देख सकें कि अंदर क्या है।
यह एपीआई या तो HTML कोड प्राप्त करेगा जिसे आप PDF में परिवर्तित करना चाहते हैं या एक URL। आपको बाद में अपनी PDF फ़ाइल डाउनलोड करने के लिए एक लिंक मिलेगा।
यह एपीआई आपको आपके HTML कोड का दृश्य प्रतिनिधित्व प्राप्त करने की अनुमति देगा। यह बैठकों या अन्य टीमों के बीच प्रस्तुतियों के लिए आदर्श है जो देखना चाहते हैं कि पृष्ठ ब्राउज़र में कैसे दिखेगा।
यह एपीआई आपको किसी भी पृष्ठ की सामग्री को PDF फ़ाइल में निकालने की संभावना प्रदान करता है। आप इस जानकारी को स्टोर कर सकते हैं और देख सकते हैं कि अन्य वेब पृष्ठ ब्राउज़र में कैसे दिखते हैं। इसके अलावा, आप पृष्ठ के विभिन्न चरणों को डाउनलोड कर सकते हैं ताकि तुलना की जा सके।
प्रति माह एपीआई कॉल की संख्या के अलावा, कोई अन्य सीमाएँ नहीं हैं।
GET URL to PDF एंडपॉइंट जेनरेट किए गए PDF फ़ाइल का डायरेक्ट लिंक लौटाता है POST HTML to PDF एंडपॉइंट भी प्रदान किए गए HTML सामग्री से बनाई गई PDF फ़ाइल का लिंक लौटाता है
प्रतिक्रिया डेटा में दोनों एंडपॉइंट्स के लिए प्राथमिक फ़ील्ड जनरेटेड पीडीएफ फ़ाइल के लिए यूआरएल लिंक है यह लिंक पीडीएफ को डाउनलोड करने के लिए उपयोग किया जा सकता है
GET URL से PDF एंडपॉइंट के लिए एकल पैरामीटर की आवश्यकता होती है: परिवर्तित करने के लिए URL POST HTML से PDF एंडपॉइंट के लिए HTML सामग्री की आवश्यकता होती है जिसे PDF में परिवर्तित किया जाना है
प्रतिक्रिया डेटा एक JSON ऑब्जेक्ट के रूप में संरचित है जिसमें जनरेट की गई PDF के URL लिंक के साथ एकल फ़ील्ड होता है यह PDF फ़ाइल तक आसान पहुँच और पुनर्प्राप्ति की अनुमति देता है
दोनों एंडपॉइंट वेब सामग्री के पीडीएफ रूपों तक पहुँच प्रदान करते हैं GET एंडपॉइंट लाइव वेब पृष्ठों को रूपांतरित करता है जबकि POST एंडपॉइंट कस्टम एचटीएमएल कोड को पीडीएफ में रूपांतरित करता है
उपयोगकर्ता GET एन्डपॉइंट के लिए विभिन्न URLs या POST एन्डपॉइंट के लिए बदलते हुए HTML सामग्री प्रदान करके अनुरोधों को अनुकूलित कर सकते हैं जिससे विशेष आवश्यकताओं के आधार पर अनुकूलित PDF आउटपुट की अनुमति मिलती है
सामान्य उपयोग के मामले में दस्तावेज़ के लिए पीडीएफ उत्पन्न करना प्रस्तुतियों के लिए वेब पृष्ठों का दृश्यात्मक प्रतिनिधित्व बनाना और समय के साथ तुलना के लिए वेब सामग्री का संग्रहित करना शामिल है
एपीआई सीधे HTML या URLs से PDFs उत्पन्न करता है यह सुनिश्चित करते हुए कि आउटपुट सामग्री के सबसे वर्तमान संस्करण को दर्शाता है नियमित अपडेट और गुणवत्ता जांच सटीकता बनाए रखने में मदद करती है