EndpointsGET /listings/{mlsNumber}/media

GET /listings/{mlsNumber}/media

Every photo, virtual tour, and video associated with a listing. The summary endpoint surfaces a single primaryImageUrl for cards; this endpoint gives you the full gallery for detail pages.

Path parameters

NameDescription
mlsNumberMLS number or ListingKey.

Response — 200 OK

{
  "media": [
    {
      "mediaKey": "29714726-photo-1",
      "mediaType": "Photo",
      "mediaUrl": "https://ddfcdn.realtor.ca/listing/TS634868858469570000/reb34/highres/9/513269_1.jpg",
      "order": 1,
      "caption": "Front exterior"
    },
    {
      "mediaKey": "29714726-photo-2",
      "mediaType": "Photo",
      "mediaUrl": "https://ddfcdn.realtor.ca/.../513269_2.jpg",
      "order": 2,
      "caption": "Living room"
    },
    {
      "mediaKey": "29714726-tour-1",
      "mediaType": "VirtualTour",
      "mediaUrl": "https://my.matterport.com/show/?m=tBXLfgUrfBn",
      "order": null,
      "caption": null
    }
  ],
  "attribution": { /* see Concepts → Attribution */ }
}

Media classification

Each row carries a mediaType string. Our sync classifies CREA’s media URLs into one of:

mediaTypeURL patterns
Photoddfcdn.realtor.ca, .jpg, .jpeg, .png, .webp, .gif
VirtualTourmatterport.com, youriguide.com, iguide.com, virtualtour, kuula.co
Videoyoutube.com, youtu.be, vimeo.com, .mp4, .mov
OtherAnything else (rare; PDFs, floorplans not in standard formats)

Use this to pick the right embed for each item: an <img> for Photo, an <iframe> for VirtualTour, a <video> or platform-specific embed for Video.

Photo ordering

Photos are ordered by CREA’s Order field (1-indexed, lower = higher priority). order: null is possible for virtual-tour and video entries that CREA doesn’t position in the photo gallery.