Exclusive Comparables Images
POST
comparables/exclusive/images
Uploads the specified image and returns a filename. The image can then be added to a transaction using the Transaction Creation endpoint.
Request#
curl -X POST 'https://api.pricehubble.com/api/v1/comparables/exclusive/images' \
-H 'Authorization: Bearer 74126eab0a9048d993bda4b1b55ae074' \
-F 'image=@/path/to/image.jpg'
Field | Description | Type | Remarks |
---|---|---|---|
image | The file to upload | file | JPG , JPEG , PNG , TIFF , HEIC , HEIF files are supported. Max size of 20MB . Resulting file for TIFF , HEIC , HEIF is converted to JPG . |
Code example#
Code example using Python 3 and the Requests library:
import requests
file = open('path/to/image.jpg', 'rb')
token = "<YOUR AUTH TOKEN>"
response = requests.post(
"https://api.pricehubble.com/api/v1/comparables/exclusive/images",
headers={"Authorization": f"Bearer {token}"},
files={"image": file}
)
Response#
{
"filename": "...e9742b1f0f55.jpg",
"url": "https://storage.googleapis.com/.../...e9742b1f0f55.jpg"
}
Exclusive comparables image#
Field | Description | Type | Remarks |
---|---|---|---|
filename | Name of the file | string | To be used in the Exclusive Transaction Creation or the Exclusive Transaction Update API endpoint |
url | Url of the uploaded image | string |