API Documentation

Coming Soon

Integrate OCR capabilities into your application

API Access Coming Soon!

We're currently developing our public API. The documentation below shows what will be available when we launch.

Getting Started

Our REST API allows you to integrate powerful OCR capabilities into your applications. Get started in minutes with our simple endpoints.

Base URL: https://api.screenshotconverter.com/v1

Authentication

All API requests require an API key. Include it in the request header:

Authorization: Bearer YOUR_API_KEY

Endpoints

POST /convert

Convert an image to text with formatting preserved.

Request Body

{
  "image": "base64_encoded_image",
  "format": "html",
  "preserve_formatting": true
}

Response

{
  "success": true,
  "text": "<span style='color:#000'>Hello World</span>",
  "wordCount": 2,
  "colorTheme": "#000000"
}
POST /convert-ai

Convert an image using AI-enhanced processing.

Request Body

{
  "image": "base64_encoded_image",
  "model": "gpt-4"
}

Response

{
  "success": true,
  "text": "AI-formatted HTML output",
  "wordCount": 150
}

Code Examples

JavaScript / Node.js

const axios = require('axios');
const fs = require('fs');

const imageBase64 = fs.readFileSync('screenshot.png', 'base64');

axios.post('https://api.screenshotconverter.com/v1/convert', {
  image: imageBase64,
  format: 'html',
  preserve_formatting: true
}, {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  }
})
.then(response => {
  console.log(response.data.text);
})
.catch(error => {
  console.error(error);
});

Python

import requests
import base64

with open('screenshot.png', 'rb') as image_file:
    image_base64 = base64.b64encode(image_file.read()).decode()

response = requests.post(
    'https://api.screenshotconverter.com/v1/convert',
    json={
        'image': image_base64,
        'format': 'html',
        'preserve_formatting': True
    },
    headers={
        'Authorization': 'Bearer YOUR_API_KEY'
    }
)

print(response.json()['text'])

Rate Limits

Free Tier

No credit card required

100

requests/day

Pro Tier

$29/month

10,000

requests/day

Enterprise

Custom pricing

Unlimited

contact us

Need Help?

Our developer support team is here to assist you with integration.