Overview
Use PDF Content for direct PDF URLs. Do not send PDF URLs to Scraper, Crawl, or Extract.Endpoint
POST /api/v2/get_pdf_content
Quickstart
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Public direct PDF URL |
Response
| Field | Type | Description |
|---|---|---|
text | string | Extracted text |
pages | integer | null | Number of pages |
url | string | PDF URL |
statusCode | integer | null | 200 on success |
cost | number | null | Cost in USD |
Pricing
PDF Content costs$0.002 per request.
Limitations
- The PDF must be publicly accessible.
- Password-protected or private PDFs are not supported.
- The endpoint has a short extraction timeout.
- Use direct PDF URLs, not HTML pages that embed a PDF viewer.
Errors
| Status | Meaning |
|---|---|
400 | Invalid or unsupported URL |
401 | Missing or invalid LLMLayer API key |
504 | PDF extraction timed out |
500 | PDF extraction failed |
