Process PDFs - extract text, tables, and structured data from documents
Extract text, tables, and structured data from PDF documents.
Use Linkup to fetch PDF URLs:
orth api run linkup /fetch --body '{"url": "https://example.com/document.pdf"}'
Use ScrapeGraph to extract specific content:
orth api run scrapegraph /v1/smartscraper --body '{
"website_url": "https://example.com/report.pdf",
"user_prompt": "Extract all financial figures, tables, and key metrics from this document"
}'
Get structured table data:
orth api run riveter /v1/run --body '{
"input": {
"urls": ["https://example.com/report.pdf"]
},
"output": {
"tables": {"prompt": "Extract all tables with titles, headers, and rows", "contexts": ["urls"]}
}
}'
Get readable markdown output:
orth api run scrapegraph /v1/markdownify --body '{"website_url": "https://example.com/document.pdf"}'
# Extract data from financial report
orth api run scrapegraph /v1/smartscraper --body '{
"website_url": "https://example.com/annual-report.pdf",
"user_prompt": "Extract revenue, profit, and key business metrics with their values"
}'
# Extract invoice data
orth api run riveter /v1/run --body '{
"input": {"urls": ["https://example.com/invoice.pdf"]},
"output": {
"vendor": {"prompt": "Vendor name", "contexts": ["urls"]},
"amount": {"prompt": "Total amount", "contexts": ["urls"]},
"date": {"prompt": "Invoice date", "contexts": ["urls"]}
}
}'
List all endpoints, or add a path for parameter details:
orth api show linkup
orth api show riveter
orth api show scrapegraph
Example: orth api show olostep /v1/scrapes for endpoint parameters.