What it does
- Extracts all text from PDF documents
- Returns page count and document metadata
- Works with any public PDF URL
Pricing
**5 per 1,000 requests)
Authentication
Include your API key in the Authorization header:Endpoint
POST /api/v1/get_pdf_content
SDK Usage
Request
The URL of the PDF document. Must be a direct link to a PDF file.Example:
"https://example.com/document.pdf"
Response
The extracted text content from the PDF
Total number of pages in the PDF document
The PDF URL (same as input)
HTTP status code (200 for success)
Cost in USD for this request ($0.005)
Limitations
- PDF must be publicly accessible (no authentication)
- 15-second timeout for extraction
- Direct PDF URLs only (must end in .pdf or be a direct PDF link)
Error Codes
401 - Authentication Error
401 - Authentication Error
Invalid or missing API key
504 - Timeout Error
504 - Timeout Error
PDF took too long to process (15-second limit)
500 - Extraction Error
500 - Extraction Error
Failed to extract PDF content
Need Help? Join our Discord or email support@llmlayer.ai