Hey Developers. It's BeeIMG API.
Updated: 2 weeks ago


API Base : //beeimg.com/api/ (HTTP OR HTTPS)
ipv6.beeimg.com (IPv6 only, use if there are 403 errors in cloudflare)

API Endpoints

Submit Supports Output URL
File GETPOST textjsonjsonpXMLredirect //beeimg.com/api/upload/file/{Output}/
URL GETPOST textjsonjsonpXMLredirect //beeimg.com/api/upload/url/{Output}/

Note: In file method send your file as "image" or "file". In url method send your url as "url"

Test URLs

click on the buttons below to get a URL to test with

API Key

Note: Send your api key as "apikey" in a get query, a post data or a cookie

Your public key is Not Available

Send a request through https://beeimg.com/contact to get an API key

Example Code

		
		$ch = curl_init();
		$postData['file'] = new CURLFile('localfile.jpg');
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
		curl_setopt($ch, CURLOPT_POST, 1);
		curl_setopt($ch, CURLOPT_URL, 'http://beeimg.com/api/upload/file/text/');
		curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
		echo $response = curl_exec($ch);
		
	
	  
	  curl -F [email protected] http://beeimg.com/api/upload/file/text/
	  
  
	  
	  const formData = new FormData();

		formData.append("file", fs.createReadStream("localfile.jpg"));
		//formData.append("apikey", "xxxx");

		axios.post('https://beeimg.com/api/upload/file/text/', formData, {
			headers: {
			  'Content-Type': 'multipart/form-data'
			}
		});
	  
  

Example data

  
  //beeimg.com/images/d04280728042.gif
  
  
  
  {
	"files": {
		"name": "d0428072804",
		"size": "100",
		"url": "//beeimg.com/images/d04280728042.gif",
		"thumbnail_url": "//i.beeimg.com/images/thumb/d04280728042-xs.gif",
		"view_url": "//beeimg.com/view/d0428072804/",
		"delete_url": "//beeimg.com/delete/d0428072804/",
		"delete_type": "DELETE",
		"status": "Success",
		"code": "200"
	}
  }
  
  
  
	<?xml version="1.0"?>
	<files>
		<name>w4080784244</name>
		<size/>
		<url>//beeimg.com/images/w40807842442.jpeg</url>
		<thumbnail_url>//i.beeimg.com/images/thumb/w40807842442-xs.jpeg</thumbnail_url>
		<view_url>//beeimg.com/view/w4080784244/</view_url>
		<delete_url>N/A</delete_url>
		<delete_type>DELETE</delete_type>
		<status>Success</status>
		<code>200</code>
	</files>
  
  

Error Codes

Error Code File Upload URL Upload Description
0 Empty File/URL
1 File Error
2 Cannot Fetch the URL
3 Cannot Connet to MYSQL sever
4 Cannot write to the Database
5 Unable to move the file to the HDD
6 Check File Size and the extension