REST API

Metadata Removal API

Integrate photo metadata removal into your app. Remove EXIF, GPS, and personal data programmatically.

Free

$0

forever

  • 10 requests/day
  • 50MB file size limit
  • JPEG, PNG, WebP
Get started free
Developer

Dev

$9

per month

  • 200 requests/day
  • 50MB file size limit
  • Email support
Sign in to subscribe

Pro

$29

per month

  • 1,000 requests/day
  • 50MB file size limit
  • Priority support

Enterprise

Custom

contact us

  • Unlimited requests
  • Custom file size limits
  • Dedicated support
  • SLA guarantee
Contact sales

Quick Start

Get your API key from the dashboard and start making requests.

POST /api/v1/clean

Remove all metadata from an image. Returns the cleaned image as base64.

cURL Example

curl -X POST https://getcleanpic.com/api/v1/clean \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "image=@photo.jpg"

Response

{
  "success": true,
  "before_metadata": { "found": true, "gps": {...}, ... },
  "after_metadata": { "found": false },
  "image_data": "base64_encoded_image...",
  "mime_type": "image/jpeg",
  "processing_time_seconds": 0.234
}
POST /api/v1/extract

Extract metadata from an image without modifying it.

cURL Example

curl -X POST https://getcleanpic.com/api/v1/extract \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "image=@photo.jpg"

Response

{
  "success": true,
  "metadata": {
    "found": true,
    "gps": { "lat": 37.7749, "lon": -122.4194 },
    "camera": { "make": "Apple", "model": "iPhone 15 Pro" },
    "datetime": "2024:01:15 14:30:00",
    "dimensions": { "width": 4032, "height": 3024 }
  }
}

Code Examples

Python

import requests

response = requests.post(
    "https://getcleanpic.com/api/v1/clean",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    files={"image": open("photo.jpg", "rb")}
)

data = response.json()
if data["success"]:
    import base64
    cleaned = base64.b64decode(data["image_data"])
    with open("cleaned.jpg", "wb") as f:
        f.write(cleaned)

JavaScript (Node.js)

const FormData = require('form-data');
const fs = require('fs');

const form = new FormData();
form.append('image', fs.createReadStream('photo.jpg'));

const response = await fetch('https://getcleanpic.com/api/v1/clean', {
  method: 'POST',
  headers: { 'Authorization': 'Bearer YOUR_API_KEY' },
  body: form
});

const data = await response.json();
if (data.success) {
  const buffer = Buffer.from(data.image_data, 'base64');
  fs.writeFileSync('cleaned.jpg', buffer);
}