{
"success": true,
"endpoint": "pdf.extract",
"ocr": false,
"count": 1,
"partial": false,
"billable": true,
"items": [
{
"position": 1,
"source": "https://www.irs.gov/pub/irs-pdf/fw9.pdf",
"status": "ok",
"markdown": "# Form W-9\n\nRequest for Taxpayer Identification Number and Certification ...",
"pageCount": 6,
"title": "Form W-9",
"author": null,
"bytes": 140000,
"truncated": false
}
]
}
curl --location --request GET 'https://zylalabs.com/api/14903/pdf+to+text+and+markdown+api/38809/extract+pdf+to+markdown+or+text?url=https://www.irs.gov/pub/irs-pdf/fw9.pdf&format=markdown' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the PDF to Text and Markdown API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
Convert one public digital PDF URL to clean Markdown or plain text with page count, title and author in a single fast GET call. No OCR: scanned image-only PDFs are flagged.
No. It extracts embedded text only. Scanned image-only PDFs return status image_only with no text.
One PDF per call, up to 25 MB and 200 pages. Output is the first 20,000 characters (about 3-8 pages of dense text); longer documents return truncated: true.
Public https URLs only. Private network addresses and URLs containing credentials are refused.
Markdown by default, plain text, or both in the same response.
Yes. Every successful call counts as one request on Zyla, including image_only results. Check that the PDF has a text layer first if you want to save requests.
The endpoint returns extracted text from a PDF as Markdown or plain text, along with metadata including page count, title, author, and a flag indicating if the text was truncated.
Key fields include "success" (operation status), "markdown" (extracted text), "pageCount" (number of pages), "title" (document title), "author" (document author), and "truncated" (indicates if output exceeds 20,000 characters).
The response is structured as a JSON object containing a success flag, endpoint information, and an array of items. Each item includes details like source URL, status, extracted text, and metadata.
The endpoint provides extracted text from PDFs, page count, document title, author information (if available), and a flag indicating whether the PDF was scanned or truncated.
The primary parameter is the public PDF URL. Users can specify the desired output format (Markdown or plain text) through the request, but no additional parameters are required.
Users can parse the JSON response to access the extracted text for further processing, display the title and author in applications, or analyze the page count for document management.
Typical use cases include converting legal documents, academic papers, or reports into editable formats, integrating extracted text into applications, or performing text analysis on PDF content.
Data accuracy is maintained by extracting text directly from PDFs with embedded text layers. The API flags scanned PDFs, ensuring users are aware when no text extraction is possible.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund