---
updatedAt: 2026-09-30T16:56:41.000Z
agentTools:
  projectIndex: https://open-api-docs.guesty.com/llms.txt
---

# Property Photos

The advantages of listing photos and how to use the API to manage them.

## Overview

Including photos in listings can make them more eye-catching in search results. Hosts can use photos to give potential guests a glimpse of what they can expect from their place, including its inside, outside, and surrounding areas. The listings API allows you to access one or multiple photos, add new photos, and edit or remove existing ones. Guesty provides dedicated APIs for adding and editing a property's photos.

### Prerequisites

1. Your pictures must be accessible in a cloud storage repository for Guesty to import.
2. Your images should be web-optimized and of high quality. For Guesty's recommendations and requirements, <Anchor target="_blank" href="https://help.guesty.com/hc/en-gb/articles/9370336312221-Managing-a-listing-photos">click here</Anchor>.
3. Only the original should be supplied; Guesty will create the relevant template sizes.

<br />

## Adding photos to a property

<br />

### Step 1: Add photos to the property

Use this endpoint to upload high-quality images of your property.

<br />

#### API resource:

* <Anchor target="_blank" href="https://open-api-docs.guesty.com/reference/uploadbyurls">Add new photos to property</Anchor>

<br />

### Step 2: Order the photos

Use the following resource to alter the order of the existing property photos. All listed photos will be placed first, and the rest will be placed at the end.

<br />

#### API resource

* <Anchor target="_blank" href="https://open-api-docs.guesty.com/reference/order">Change the photo order on a property</Anchor>

<br />

### Step 3: Fine-tune the offering

Utilize this endpoint to replace an image or edit its caption without changing the photo order or room assignments.

<br />

#### API resource

* <Anchor target="_blank" href="https://open-api-docs.guesty.com/reference/edit">Replace photo or edit caption without changing order or room assignment.</Anchor>

<br />

## Delete a photo

You can completely remove photos from a property using the following endpoint.

<br />

#### API resource

* <Anchor target="_blank" href="https://open-api-docs.guesty.com/reference/delete">Delete a Photo</Anchor>

<br />

## Retrieve Pictures

The listing object contains a property's photos (URLs) and you can use the *listings* API to retrieve the

### Available Endpoints

| Method | Endpoint                                                                                                                |
| :----- | :---------------------------------------------------------------------------------------------------------------------- |
| GET    | <Anchor target="_blank" href="https://open-api-docs.guesty.com/reference/propertieslistingget">/listings/\{id}</Anchor> |
| GET    | <Anchor target="_blank" href="https://open-api-docs.guesty.com/reference/propertieslistinglist">/listings</Anchor>      |

<br />

#### Request Example

```curl
curl 'https://open-api.guesty.com/v1/listings/{id}?fields=pictures' \
--header 'Authorization: Bearer {accessToken}'
```
```javascript
const myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer {accessToken}");

const requestOptions = {
  method: "GET",
  headers: myHeaders,
  redirect: "manual"
};

fetch("https://open-api.guesty.com/v1/listings/{id}?fields=pictures", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));
```
```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://open-api.guesty.com/v1/listings/{id}?fields=pictures',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer {accessToken}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```
```python
import http.client

conn = http.client.HTTPSConnection("open-api.guesty.com")
payload = ''
headers = {
  'Authorization': 'Bearer {accessToken}'
}
conn.request("GET", "/v1/listings/66054019764cbb000f37c450?fields=pictures", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
```

<br />

#### Response Example

```json
{
    "_id": "<listingId>",
    "type": "<string>",
    "tags": [
        "<tag>"
    ],
    "pictures": [
        {
            "_id": "<pictureId>",
            "original": "<URL>",
            "thumbnail": "<URL>",
            "height": 1280,
            "width": 1920,
            "size": 180129,
            "caption": "<string>"
        },
        {
            "_id": "<pictureId>",
            "original": "<URL>",
            "thumbnail": "<URL>",
            "height": 1280,
            "width": 1920,
            "size": 180129,
            "caption": "<string>"
        },
        {
            "_id": "<pictureId>",
            "original": "<URL>",
            "thumbnail": "<URL>",
            "height": 1280,
            "width": 1920,
            "size": 180129,
            "caption": "<string>"
        }
    ]
    "accountId": "<accountId>"
}
```

<br />

<Callout icon="📘" theme="info">
  ### Repository Consolidation

  Contact [Customer Experience](https://help.guesty.com/hc/en-gb/articles/9370047984413-Contacting-Customer-Experience)  if you wish to migrate to and consolidate your property photos on Guesty's storage repository.
</Callout>

<br />

## Room Photos (Beta)

Before embarking on this task, ensure that you have [configured your property's rooms](https://open-api-docs.guesty.com/reference/post_properties-spaces-unit-type-unittypeid-add) beforehand. You can assign pictures to a specific room. To learn more, refer to [Assign a Photo to a Space](https://open-api-docs.guesty.com/reference/roomphotoscontroller_assignroomphoto).