API
Image Recognition API

Uploads

Methods allow you to upload a photo from a file or link and get information about the photo.



Upload images to the service. Only JPEG images are supported. You can also upload an image by URL.

Note

The number of requests to the point is limited to 100 requests per minute.

POST /uploads
POST
Request
Header Parameters
Authorization
required
String
String in "Token XXXXXX..." format.
Body Parameters
datafile
required
String
Image in JPEG.


Response parameters



id string

Image ID.



width integer

Image width in pixels.



height integer

Image height in pixels.



url url

Image url.



created_date datetime

Date and time when the image was uploaded.



duplicate bool

The value is "True/False". "True" if the file is a duplicate.



Upload image to the service by URL. Only JPEG images are supported. You can also upload an image by /uploads.

Note

The number of requests to the point is limited to 100 requests per minute.

POST /uploads/uploads_by_url
POST
Request
Header Parameters
Authorization
required
String
String in "Token XXXXXX..." format.
Body Parameters
url
required
String
Image url.


Response parameters



id integer

Image ID.



width integer

Image width in pixels.



height integer

Image height in pixels.



url url

Image url.



created_date datetime

Date and time when the image was uploaded.



Get a cake by its ID
GET
Request
Path Params
id 
required
Integer
Image ID.
Header Parameters
Authorization
required
String
String in "Token XXXXXX..." format.


Response parameters



id integer

Image ID.



width integer

Image width in pixels.



height integer

Image height in pixels.



url URL

Image url.



created_date Datetime

Date and time when the image was uploaded.






Updated 03 Mar 2023
Did this page help you?