Developer API

cococonvert API

Integrate file conversion into your application. Simple REST API, 50+ formats, instant results.

Quick Start

Converting a file is a 3-step process: upload → convert → download.

# 1. Upload
UPLOAD=$(curl -s -X POST https://www.cococonvert.com/api/upload \
  -F "file=@input.png")

FILE_ID=$(echo $UPLOAD | jq -r '.fileId')
FILE_NAME=$(echo $UPLOAD | jq -r '.fileName')

# 2. Convert
CONVERT=$(curl -s -X POST https://www.cococonvert.com/api/convert \
  -H "Content-Type: application/json" \
  -d "{\"fileId\":\"$FILE_ID\",\"fileName\":\"$FILE_NAME\",\"targetFormat\":\"jpg\"}")

DOWNLOAD_ID=$(echo $CONVERT | jq -r '.downloadId')

# 3. Download
curl -o output.jpg "https://www.cococonvert.com/api/download?id=$DOWNLOAD_ID"

Endpoints

POST/api/upload

Upload a file for conversion

Request Body:

FormData with a `file` field

Response:

{ fileId: string, fileName: string, size: number }

curl -X POST https://www.cococonvert.com/api/upload \
  -F "file=@photo.png"
POST/api/convert

Start a conversion job

Request Body:

{ fileId: string, fileName: string, targetFormat: string }

Response:

{ downloadId: string, outputName: string }

curl -X POST https://www.cococonvert.com/api/convert \
  -H "Content-Type: application/json" \
  -d '{"fileId":"abc123","fileName":"photo.png","targetFormat":"jpg"}'
GET/api/download?id={downloadId}

Download the converted file

Request Body:

None

Response:

Binary file with appropriate Content-Type

curl -O https://www.cococonvert.com/api/download?id=abc123

Supported Formats

The API supports all the same formats as the web converter — 50+ formats across images, video, audio, documents, spreadsheets, presentations, and more.

View all supported conversions →

Pricing

API access is included with your CocoConvert subscription. The same plan that powers the web converter also powers the API.

Free

$0

5 per day

  • 5 conversions/day
  • 25 MB max file size
  • All formats

Plus

$4.99/mo

100 per day

  • 100 conversions/day
  • 100 MB max file size
  • Priority processing
  • No ads

Pro

$14.99/mo

Unlimited

  • Unlimited conversions
  • 2 GB max file size
  • Priority processing
  • No ads
  • Batch support

Rate Limits

Free tier: 5 conversions per day, 25 MB max file size. No authentication required.

Plus: 100 conversions per day, 100 MB max file size. Sign in with your account.

Pro: Unlimited conversions, 2 GB max file size. Sign in with your account.

Rate limiting: API endpoints are rate-limited per IP to 20 requests/minute for upload and convert, 60 requests/minute for other endpoints.