API Introduction
The Artificial Intelligence technology specialized in Handwriting removal has been made easier than ever before using RemoveHandwriting.com API. With just a few lines of code, you can bring this technology into your application.
Purchase Package
Purchase a package dedicated to the API
Get AppCode
Email service@removehandwriting.com to get your dedicated AppCode
Use Code Samples
Use the following code samples to get started quickly
Adjust Parameters
Getting back to the parameters reference to adjust the request
Authentication
We authenticate users using special API Key (or App Code). Which can be easily acquired here. The API Key is unique and very different from the others. For security reasons, please do not publish your App Code.
API Endpoint
Headers
Code Examples
Get started quickly with our code samples
public static void main(String[] args) {
String host = "https://api.removehandwriting.com";
String path = "/sjccup";
String method = "POST";
String appcode = "YourAppCode";
Map<String, String> headers = new HashMap<String, String>();
// The final format in the header (with a space in between) is Authorization:APPCODE 83359fd73fe94948385f570e3c139105
headers.put("Authorization", "APPCODE " + appcode);
// Define the corresponding Content-Type according to API requirements
headers.put("Content-Type", "application/json; charset=UTF-8");
Map<String, String> querys = new HashMap<String, String>();
String bodys = "{\"media_id\":\"Base64 encoded image value, with the longest side not exceeding 4000px; remove the prefix data:image/png;base64\",\"keep_distortion\":boolean type, false - auto-corrects distortion, true - disables correction\",\"keep_ori\":boolean type, false - the image will be rotated to the correct orientation, true - retains the orientation when uploaded}";
try {
HttpResponse response = HttpUtils.doPost(host, path, method, headers, querys, bodys);
System.out.println(response.toString());
// Get the body of the response
// System.out.println(EntityUtils.toString(response.getEntity()));
} catch (Exception e) {
e.printStackTrace();
}
}Request Parameters
Configure your API requests with these parameters
| Parameter | Type | Description |
|---|---|---|
| media_id | string | Base64 encoded value of the image, with the longest side not exceeding 4000px; remove the prefix data:image/png;base64 |
| keep_distortion | boolean | false – auto-corrects distortion, true – disables correction |
| keep_ori | boolean | false – the image will be rotated to the correct orientation, true – retains the orientation when uploaded |
Error Codes
Reference for API response codes
| Error Code | Error Message | Description |
|---|---|---|
| 0 | success | Success |
| 1000 | body error | Request body error |
| 1001 | param error | Request parameter error |
| 1002 | content type error | Content-Type error |
| 1003 | image not exists | Image file not found |
| 1004 | image size error | Image size error |
| 1005 | image format error | Image format error |
| 1006 | invalid signature | Invalid signature |
| 1007 | body size error | Body size error |
| 1008 | no authorization | Authorization failed |
| 2000 | server unknown error | Server unknown error |
| 2001 | server timeout | Server timeout |
| 2003 | no content recognition | No content recognized |
| 2004 | validate data error | Validation data error |
| 3000 | remote server error | Remote server error |
| 4000 | base server error | Base server error |
API Pricing Plans
The following plans are API-exclusive
Basic
Popular
Exclusive
100% Money Back Guarantee!
Purchase with peace of mind. If you find out that this tool does not meet your needs, we offer a 7-day no-questions-asked money-back guarantee. You can make the payment with confidence. We have a refund policy to ensure the safety of your payment.