PDF OCR
PDF OCR Examples
#Extract Text from 3-Page Report
curl -X POST https://scrapingapi.qoest.com/v1/pdf \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/report.pdf"
}'
Response:
{
"metadata": {
"word_count": 1250,
"character_count": 7350,
"page_count": 3,
"file_size": "180.42 KB",
"creation_date": "D:20260323000000Z"
},
"pages": [
{
"page": 1,
"text": "Executive Summary\n\nThis report covers..."
},
{
"page": 2,
"text": "Market Analysis\n\nThe market has shown..."
},
{
"page": 3,
"text": "Conclusion\n\nIn conclusion..."
}
]
}
#Error Examples
#PDF Exceeds Page Limit
{
"message": "PDF exceeds maximum limit of 30 pages. This PDF has 45 pages."
}
#Insufficient Credits
{
"message": "Insufficient credits. This PDF has 15 pages and costs 15 credits. You have 10 credits remaining."
}