7 endpoints converting PDF, DOCX, XLSX, PPTX, CSV, HTML, and image OCR to clean markdown.
For RAG ingest, knowledge-base pipelines, and document-processing SaaS.
Each endpoint is independently callable. Bundle membership is for discovery only — you do not need to opt in.
| Method | Path | Credits | Summary |
|---|---|---|---|
| POST | /v1/convert/pdf-to-markdown | 1 | PDF to markdown. |
| POST | /v1/convert/docx-to-markdown | 1 | Word .docx to markdown. |
| POST | /v1/convert/xlsx-to-markdown | 1 | Excel .xlsx to markdown. |
| POST | /v1/convert/pptx-to-markdown | 1 | PowerPoint .pptx to markdown. |
| POST | /v1/convert/csv-to-markdown | 1 | CSV to markdown table. |
| POST | /v1/convert/html-to-markdown | 1 | HTML to markdown (clean). |
| POST | /v1/convert/ocr | 1 | Image OCR. |
Pick a language. Click to expand the snippet.
curl -X POST https://api.ollagraph.com/v1/convert/pdf-to-markdown \
-H "Authorization: Bearer $OLLAGRAPH_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/whitepaper.pdf"}'
import httpx, os
r = httpx.post(
"https://api.ollagraph.com/v1/convert/pdf-to-markdown",
headers={"Authorization": f"Bearer {os.environ['OLLAGRAPH_API_KEY']}"},
json={"url": "https://example.com/whitepaper.pdf"},
timeout=120.0,
)
print(r.json())
const res = await fetch("https://api.ollagraph.com/v1/convert/pdf-to-markdown", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.OLLAGRAPH_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ url: "https://example.com/whitepaper.pdf" }),
});
console.log(await res.json());
Both. Pass `url` for us to fetch, or `file_b64` for an inline base64 body. Inline is capped at 25 MB; URL fetches at 100 MB.
Yes, as markdown table syntax when the layout is recoverable. Complex multi-column layouts with merged cells degrade to plain text rows.
Tesseract 5 in our standard tier. Layout-aware OCR (Docling) is in pilot on a separate worker — contact us for access.
1,000 credits on signup. No card. Every endpoint in this bundle is live from minute one.