PDF REST API

The PDF API built by the team behind iLovePDF

Merge, compress, convert, OCR and summarize PDFs with a few lines of code. One REST API, 24 production-ready tools and the same processing engine trusted by millions of iLovePDF users every day.

2,500 free credits every month. No credit card required.

$ilovepdf = new Ilovepdf('project_public_id', 'project_secret_key');

// Create a task for any of the PDF tools
$task = $ilovepdf->newTask('compress');
$task->addFile('invoice.pdf');

// Process and download the result
$task->execute();
$task->download();
24
PDF tools in one API
20M+
daily processes, 7+ billion yearly
99.999%
uptime
ISO/IEC 27001:2022PDF Association member

Every PDF tool your product needs, in one API

Stop stitching together single-purpose services. Organize, optimize, convert, secure and understand documents through one consistent endpoint structure.

See all tools in the API reference →

Automate document workflows end to end

Chain tools, process files in bulk and get notified the moment results are ready, without building PDF infrastructure yourself.

Learn more →

Chain tasks without re-uploading

Connect one task to the next and run multi-step workflows, such as OCR, compress and protect, on the same files.

Webhooks for asynchronous processing

Receive a callback when a task completes or fails, so your application never waits on an open connection.

Flexible file input

Upload files directly, in chunks for large documents, or point the API to a public URL.

Turn PDFs into data your AI can use

Make documents readable for search, analytics and language models with OCR, structured extraction and AI tools built into the same API.

Learn more →

LLM-ready Markdown

Convert PDFs to Markdown that keeps headings, lists and tables, ideal for RAG and agent workflows.

OCR for scanned files

Make image-based documents searchable before you extract, summarize or archive them.

AI summaries

Condense long reports and contracts into concise summaries, with length you control.

From file to result in four API calls

A simple, predictable task flow that works the same way for every tool.

1

Start

Create a task for any tool and get your assigned processing server.

GET /start/{tool}/{region}
2

Upload

Send files from your system or from a URL.

POST /upload
3

Process

Apply the tool and its options to one or many files.

POST /process
4

Download

Retrieve a single file or a ZIP with every output.

GET /download/{task}

A developer-first PDF API

Clear endpoints, official SDKs and documentation that gets you to your first processed file in minutes. Authenticate with your project keys and ship.

const ILovePDFApi = require('@ilovepdf/ilovepdf-nodejs');
const instance = new ILovePDFApi('project_public_id', 'project_secret_key');

const task = instance.newTask('merge');
await task.start();
await task.addFile('https://example.com/contract.pdf');
await task.addFile('https://example.com/annex.pdf');
await task.process();
const data = await task.download();

Connect PDF processing to the tools you already use

Not every workflow needs code. Use iLoveAPI inside your automation platforms and CMS to process documents as part of existing processes.

See all integrations →

Enterprise-grade security by default

Your documents are processed securely and never kept longer than needed.

ISO/IEC 27001:2022 certified

Our information security management system is audited against the international standard.

GDPR compliant

A European company operating under one of the strictest data protection frameworks in the world.

2 audits per year

Internal and external security audits, every year.

Automatic file deletion

Files are deleted automatically within hours of processing, or instantly with a single API call.

No data mining

Your files are only processed: never analyzed, sold or used for advertising.

Secure authentication

Signed JWT tokens with domain and IP filtering for client-side use.

Visit our Security page →

Process documents close to your users

Choose the region where your files are processed to reduce latency and meet data residency requirements.

8
processing regions
99.999%
availability

Built on the same infrastructure that runs iLovePDF for millions of users.

Built for every document-heavy workflow

Legal

Merge case files, apply watermarks and archive contracts in PDF/A.

Finance and accounting

OCR invoices and receipts and compress them for storage.

Education

Convert coursework to PDF and add page numbers and protection at scale.

SaaS platforms

Offer PDF features inside your product without building a PDF engine.

AI and data teams

Convert document libraries to Markdown for search and RAG.

HR and operations

Turn scanned forms into fillable PDFs and route them automatically.

Start free, scale as you grow

Get 2,500 free credits every month. When you need more, choose a monthly subscription or prepaid credits that never expire. You only pay for successfully processed files.

FREE
2,500 credits
every month, on every account
  • Every PDF tool except the AI ones (AI tools need a paid plan)
  • Official SDKs and full API reference
  • No credit card required
SCALE
Pay as you grow
subscriptions, prepaid packages or custom volumes
  • 20% off with yearly billing
  • Prepaid credits that never expire
  • Custom volumes for enterprise

Why choose the iLoveAPI PDF REST API

Proven at global scale

The same technology powers iLovePDF, one of the most widely used PDF platforms in the world, processing millions of documents every day.

Built by PDF specialists

Developed by a team focused on PDF technology since 2010 and an active member of the PDF Association.

One API for the whole document lifecycle

From conversion to AI-powered extraction, every tool shares the same workflow, authentication and billing.

Support from real engineers

Get direct help from the team that builds the API, not a generic help desk.

Build on a PDF API you can trust

  • 2,500 free credits every month
  • Pay only for processed files
  • ISO 27001 certified and GDPR compliant

Frequently asked questions

Can't find your answer? Our engineers are ready to help.

Contact us →
What is the iLoveAPI PDF REST API?

A cloud REST API that lets developers add PDF processing to any application. It includes 24 tools to merge, split, compress, convert, OCR, edit, protect and summarize PDFs, using the same technology as iLovePDF.

Is there a free plan?

Yes. Every account gets 2,500 free credits per month, with no credit card required. Free credits cover every PDF tool except the AI ones (Smart Split, AI Summarize, Detect PDF Forms, PDF to Markdown, Translate).

How does pricing work?

Tools consume credits per file, per page or per task depending on the tool. You can buy a monthly or yearly subscription, prepaid packages that never expire, or both. Only successfully processed files are charged.

Which programming languages are supported?

Official SDKs are available for PHP, Node.js, .NET, Ruby and Python. Because it is a REST API, you can call it from any language that can make HTTPS requests.

How secure is my data?

iLoveAPI is ISO/IEC 27001:2022 certified and GDPR compliant. Files are transferred over HTTPS and are deleted automatically after processing. You can also delete a task and its files immediately through the API.

Where are files processed?

You can choose the processing region: EU, US, Canada, France, Germany, Poland, India or Singapore.

Can I run multiple tools on the same file?

Yes. Chain tasks to apply several tools in sequence without uploading the files again.

Can I process files asynchronously?

Yes. Add a webhook to your request and iLoveAPI will notify your server when the task completes or fails.

Can I use the API without writing code?

Yes. iLoveAPI integrates with Zapier, Make and WordPress.

Is iLoveAPI suitable for AI and LLM workflows?

Yes. PDF to Markdown, OCR, text extraction and AI Summarize turn documents into structured content that language models and search systems can use.