Get API Key

Normal return


{
    "code": 0,
    "data": {
        "imageBase64: "iVBORw0KGgo..." //base64 encoded of the image 
    },
    "msg": null,
    "time": 1590462453264
}

Error

{
  "code": 1001, //
  "data": null
  "msg": 'Insufficient balance',
  "time": 1590462453264
}

EXIF API

Get EXIF data from photograph

Sample code

Curl

curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
  -F 'file=@/path/to/file.jpg'     \
  -f 'http://localhost:3000/v1/misc/exifData' \
  -o out.png

Python

  import requests
  response = requests.post(
'http://localhost:3000/v1/misc/exifData',
    files={'file': open('/path/to/file.jpg', 'rb')},
    headers={'KEY': 'INSERT_YOUR_API_KEY_HERE'},
  )

Node.js

const requestOptions = {
    method: 'POST',
    headers: {
    'key': 'INSERT_YOUR_API_KEY_HERE',
    'Content-Type': 'application/json'
    }
};
fetch('http://localhost:3000/v1/misc/exifData', requestOptions)
    .then(response => response.json())
    .then(data =>  {
		console.log(data);
    }); 

Returning JSON

curl -d "key=<XXX>" -d 'outType=JSON' -d \
...

Returning Download

curl -d "key=<XXX>" -d 'outType=Download' -d \
...

Returning Blob

curl -d "key=<XXX>" -d 'outType=Blob' \
...

Returning Base64

curl -d "key=<XXX>" -d 'outType=Base64' -d \
...

Returning PNG Image

curl -d "key=<XXX>" -d 'outType=Image' -d \
...
Back to API