# Centris Listing Photos

Returns the photo gallery of one listing. Each photo has a caption, its original dimensions and image URLs in four sizes, including the original file. Only URLs are returned, never image bytes. A listing without photos returns an empty list.

- **Documentation:** [https://scrappa.co/docs/centris-api/centris_listing_photos](https://scrappa.co/docs/centris-api/centris_listing_photos)
- **API group:** Centris API
- **Endpoint:** `GET https://scrappa.co/api/centris/listing/photos`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `mls` | string | Yes | The Centris number of the listing, from a search result. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/centris/listing/photos?mls=27894956"
```

## Example response

```json
{
    "success": true,
    "data": {
        "mls": "27894956",
        "photos": [
            {
                "id": "ADDD250DA16D8BADDDDDDDDDD2",
                "caption": "Fa\u00e7ade",
                "width": 1920,
                "height": 1280,
                "variants": [
                    {
                        "width": 1024,
                        "height": 1024,
                        "original": false,
                        "url": "https://mspublic.centris.ca/media.ashx?id=ADDD250DA16D8BADDDDDDDDDD2&t=pi&sm=m&w=1024&h=1024"
                    }
                ]
            }
        ],
        "count": 49,
        "virtual_tour_url": null
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The listing number or broker code does not exist. This response is not billable and not retryable. |
| 422 | Validation Error | A public parameter is invalid, for example a page above 250, an unknown property type or a location_id without its location_type. This response is not billable. |
| 503 | Service Unavailable | The data could not be loaded right now. Retry the request. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
