convertapi
Convert API Python Client
What it is and what it does
ConvertAPI is a thin Python wrapper around the ConvertAPI online file conversion service. It handles authentication, request formatting, and result retrieval for converting documents (Word, Excel, PowerPoint), images, and web content to PDF or image formats, as well as PDF operations like merging, encryption, splitting, and repair. The package depends only on requests and communicates entirely with a remote API—no local conversion engines are involved.
You configure it with an API token, then call convert() with a target format and input file (local path or URL), receiving a result object that lets you save files, retrieve conversion costs, or access raw response data. The service handles format detection automatically or accepts explicit source format specification, and supports format-specific parameters like page ranges and resolution.
Use it for:
- Batch convert Word documents to PDF in a server application without installing LibreOffice or other converters
- Generate PDF reports from HTML templates or web pages programmatically
- Merge multiple PDF files or encrypt PDFs with password protection in an automated workflow
- Convert images between formats (e.g., PNG to JPEG) as part of a media processing pipeline
- Split large PDF files into ranges or repair corrupted PDFs via API calls in a document management system
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python client for the ConvertAPI online file conversion service, enabling programmatic conversion between file formats (PDF, images, documents) and PDF manipulation (merge, encrypt, split, repair, decrypt).
Yes, if you need file format conversion and are willing to use a remote API service with associated costs. The package is straightforward to integrate and has no complex local dependencies. However, the aging maintenance status (last release 699 days ago) and reliance on an external paid service mean you should verify current ConvertAPI pricing and service terms before committing to production use.
Install
convertapi on PyPI
pip
pip install convertapiuv
uv add convertapipoetry
poetry add convertapiInstalling convertapi
Before you install
Low install friction with a single runtime dependency (requests). Maintenance status is aging—last release was 699 days ago (2024-09-14), though the repository remains active with a recent commit (2025-06-03) and no archived status.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install convertapi
import convertapi
convertapi.api_credentials = 'your-api-token'
result = convertapi.convert('pdf', {'File': '/path/to/file.docx'})
result.file.save('/path/to/output.pdf')
Requires a ConvertAPI account and API token (obtainable at https://www.convertapi.com/a); all conversions are performed by the remote service, not locally.
Verify before relying
- Current status of ConvertAPI service availability and pricing tier for free vs. paid conversions
- Whether Python 3.3+ requirement (from description) is still accurate for version 2.0.0
- Performance characteristics and rate limits for batch or high-volume conversions
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — requests |
| Maintenance | aging — 699 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 337,420/month — #7,450 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: convertapi-2.0.0-py2.py3-none-any.whl
Keywords: convert, api, client, conversion
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
spire-docSpire.Doc creates, reads, modifies, and…
unclear · top 15,000 on PyPI
cloudmersive-convert-api-clientA Python client library for the Cloudmersive…
unclear · top 15,000 on PyPI
gotenberg-clientA fully-typed Python client for the Gotenberg…
copyleft · top 15,000 on PyPI
PyPDF3PyPDF3 is a pure-Python PDF toolkit for…
permissive · top 15,000 on PyPI
PyPDF4PyPDF4 is a pure-Python PDF toolkit for…
permissive · top 15,000 on PyPI
aspose-wordsAspose.Words for Python is a document…
unclear · top 15,000 on PyPI
pikepdfpikepdf reads, writes, repairs, and transforms…
copyleft · top 5,000 on PyPI
pdfservices-sdkClient library for Adobe PDF Services API,…
permissive · top 15,000 on PyPI
docx2pdfConverts DOCX files to PDF on Windows or macOS…
permissive · top 5,000 on PyPI
pypdftkPython wrapper that drives the pdftk binary to…
permissive · top 15,000 on PyPI