Discover our API

yourimageshare.com allows you to easily upload your images, programmatically, via API - all you need to do is to send a POST request to https://yourimageshare.com/api/upload, containing 2 parameters: your API key - you can sign-up here to get an API key,  and the image you want to upload.
The response will contain informations about the image that was uploaded including  the view link, direct link and the delete link.

API Image upload:

  • Request method- API  calls should be done using the POST method.
  • Upload URL - https://yourimageshare.com/api/upload
  • Parameters : 
    • Key - your API key - required - Create an account and get your API Key.
    • Uploads - the image

API response

The API response contains all the information about the uploaded image in JSON format.

Example call (PHP)

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://yourimageshare.com/api/upload?key=Your-API-Key',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('uploads'=> new CURLFILE('image.png')),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;

Example response (JSON)

{
"auth": "API0123AAABBB",
"success": "true",
"status": "200",
"ID": "AABBCCDD",
"Type": "image/png",
"Width": 1000,
"Height": 1000,
"Size": 15000,
"Time": "01-01-2001 01:01:01",
"Viewer ": "https://yourimageshare.com/ib/AABBCCDD",
"Direct ": "https://yourimageshare.com/ib/AABBCCDD.png",
"Delete": "https://yourimageshare.com/ibd/AABBCCDDEEEEFFFFF"
}