MaraDocs API
Document intelligence from a single source.
OCR, PDF optimisation, deskewing, virus scan and email parsing — all via a single REST API and SDKs for TypeScript, Python & GO. Hosted in Germany.
GDPR-compliant · Servers in Germany · OpenAPI spec · TypeScript & Python SDKs
1import { MaraDocsServer, MaraDocsClient } from "@maramia/maradocs-sdk-ts";23// Server-side: create workspace and send workspaceSecret to client4const server = new MaraDocsServer({ secretKey: process.env.MARADOCS_SECRET_KEY! });5const ws = await server.workspace.create({});67// Client-side: OCR documents and combine into single PDF8const client = new MaraDocsClient({ workspaceSecret: ws.workspace_secret });910// Convienient end-to-end flows ready to use11const imgPdf = await client.flow.ocrImg(imageFile); // image → searchable PDF12const pdfPdf = await client.flow.ocrPdf(pdfFile); // PDF → searchable PDF1314// Combine and download your final PDF15const combined = await client.pdf.compose({ pdfs: [{ pdf_handle: imgPdf }, { pdf_handle: pdfPdf }] });16const blob = await client.data.downloadPdf({ pdf_handle: combined.pdf_handle });17
You know this from a developer's perspective:
OCR from vendor A. PDF compression from vendor B. Virus scan from vendor C.
Three contracts, three DPAs, three invoices, three SDKs — and three points of failure.
And none of them are hosted in Germany.
We make it simpler
One API. One SDK. One provider.
All document functions via a REST API with well-maintained TypeScript and Python SDKs. Fully OpenAPI-documented, hosted in Germany, with a single contract and a single invoice.
No subscription. No vendor lock-in to US providers. No "pay for features you never use".
Features
Everything your backend needs for documents.
Every feature available individually via the API — or conveniently as an end-to-end flow. You choose, we deliver.
Detect documents in images
Crop documents from images
Optimise PDF
Merge / split PDFs
Repair PDF
AI text recognition (OCR)
Extract text
Unpack email attachments
Virus scan on all files
Billing
Granular credit system with transparent pricing.
One pool of credits — all features billed through it. The more you buy, the cheaper each individual credit. Usage transparently visible in your dashboard.
Price calculator
We offer volume-discounted credit prices.
Pricing Overview
Credit consumption per API call
| Function | Unit | Credits |
|---|---|---|
| File upload | per MB | 25 |
| MIME type recognition | per file | 100 |
| Virus scan | per MB | 25 |
| File download | per MB | 25 |
| Validate image | per MB | 25 |
| Create thumbnail | per image | 25 |
| Recognize documents in images | per image | 500 |
| Detect image orientation | per image | 100 |
| Crop image | per section | 25 |
| Rotate image | per image | 25 |
| Convert image to JPEG | per image | 25 |
| Convert image to PNG | per image | 25 |
| Convert image to PDF | per image | 25 |
| Image OCR to PDF | per image | 100 |
| Validate PDF | per MB | 25 |
| Compose PDF | per page | 25 |
| Optimize PDF | per page | 25 |
| Rotate PDF | per page | 25 |
| Render PDF | per page | 25 |
| Detect PDF orientation | per page | 100 |
| PDF OCR (text recognition) | per page | 100 |
| Validate email | per MB | 25 |
The displayed credit costs apply per unit. When processing multiple pages or documents, credits are multiplied accordingly. To prevent API abuse, we charge a base fee of one credit per API request.
Use cases
Popular use cases today.
Three examples we see daily at law firms, tax advisory firms, and SaaS providers.
Process email attachments automatically
Custom integrations are easy to build using the straightforward MaraDocs API.
n8n / Make / Zapier Integration
Embed MaraDocs into existing no-code and low-code automations. One REST API, clear endpoints, fully documented — done.
Integration into your systems
Integrate the MaraDocs API into your existing systems. Exactly the way you need it. Simple integration through a clear and understandable API.
Where your data goes.
GDPR & hosting in Germany
Servers exclusively in Germany. DPA pursuant to Art. 28 GDPR available on request. No data sharing with third parties, no AI training on your data.
HTTPS & automatic deletion
All API communication encrypted. Documents are deleted from our servers immediately after processing.
Professional regulatory compliance
MaraDocs can be used in compliance with professional regulations by privilege holders pursuant to § 43e BRAO.
Frequently asked questions.
- The MaraDocs API uses a credit system. You purchase credit packages in advance and use them flexibly across all API features. Each API call consumes the number of credits stated in the pricing table — no per-endpoint subscription, no hidden costs.
- Credits only expire after 12 months of inactivity. You can top up your balance at any time. Detailed usage statistics can be easily retrieved via the API.
- All API communication is encrypted via HTTPS. Your documents are deleted from our servers immediately after processing. Hosted exclusively in Germany, no AI training on your data.
- Yes. We offer individual data processing agreements in accordance with Art. 28 GDPR for API usage upon request. You can request one via your account on our website.
- Our Terms and Conditions and Privacy Policy apply.
How does billing work?
What happens to unused credits?
Is my data secure?
Can I conclude a data processing agreement?
Which terms and privacy policy apply?
Get started right away.
OpenAPI spec, SDK examples and sandbox workspace available immediately after registration.
Servers in Germany · DPA on request · No vendor lock-in