Skip to main content

POST /uploads/uploads_by_url

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

Adress: POST https://instance_name/api/v1.5/uploads/uploads_by_url

Content-type: application/json

Note

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

Request body parameters


url URL

Image url.


Request example

curl -i -X POST
https://test.inspector-cloud.com/api/v1.5/uploads/uploads_by_url/
-H ‘Authorization: Token <<your_token>>
-F "url=https:/test.inspector-cloud.com/media/567812345678.jpg"

Response example

Response code: 200

{
"id": 156673,
"url": "https:/test.inspector-cloud.com/media/12345678-1234-5678-1234-567812345678.jpg",
"width": 720,
"height": 1280,
"created_date": "2016-08-31T10:32:15.687287Z",
}

Response definitions


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.