Application programming interface
Our API code allows you to add our image hosting service directly to your web-site. There are no limitations about how many images can be uploaded and also there is no need to register anywhere to get access to use our API interface. However notice that the Piczasso API is not to be used for commercial purposes without prior explicit consent by Piczasso.
The API sends output data in JSON format in the URL. That allows you to use several script languages for your upload script. You can download PHP sample by clicking this.
If you find any bug or have questions about the API, please don't hesitate to contact us:
. Also suggestions about how to improve the API
would be very appreciated.
Documentation
Sample response (JSON)
{
"image": {
"direct": "http://piczasso.com/i/mdo3ns.jpg",
"thumb": "http://piczasso.com/i/thumbs/mdo3ns.jpg",
"bbcode": "bbcode for forums",
"html": "image html code",
"image_page": "http://piczasso.com/s.php?s=mdo3ns.jpg",
}
}
Possible error codes
| Error code | Reason |
| 1000 | No image selected |
| 1001 | Image failed to upload |
| 1002 | Invalid image type |
| 1003 | Image is larger than 16MB |
| 1004 | Cannot read image info |
| 1005 | Upload failed during process |
| 1006 | Database error |
| 1007 | Banned IP |