Docs menu

    Docs / Reference

    Media Resource: Listing Photos and Tours

    How to get each listing's photos in order, with captions and sizes.

    Listing photos live in the Media resource, one record per photo, linked to its listing. Each record carries the photo's address (MediaURL), its position (Order), its type and its caption. Ask for the media of one listing, or include it with the listing using $expand where the server offers it.

    Requests

    GET{SAIGE_MLS_API_URL}/Property('{ListingKey}')/Media

    List photos of one listing

    Returns the media records of one listing. Sort by Order so the first photo is the cover.

    Path parameters

    • ListingKeystringRequired

      The ListingKey of the Property record, in single quotes inside the brackets.

    Query options

    • $filterstring

      Keep only records that match. Operators: eq, ne, gt, ge, lt, le, and, or, not. Text values go in single quotes.

      Example: StandardStatus eq 'Active' and ListPrice le 1200000

    • $selectstring

      Comma-separated fields to return. Ask only for what the page shows.

      Example: ListingKey,ListPrice,BedroomsTotal,City

    • $orderbystring

      Sort order: a field, then asc or desc. Add the key as a second field so pages stay stable.

      Example: ListPrice asc,ListingKey asc

    • $topinteger

      Largest number of records to return in this answer.

      Example: 24

    Headers

    • AuthorizationstringRequired

      Bearer followed by your key. Send it from server code only.

      Example: Bearer {SAIGE_MLS_API_KEY}

    • Acceptstring

      application/json for data requests. $metadata answers in XML.

      Example: application/json

    Returns a list of Media records in the value array.

    Request (curl)
    curl -G "$SAIGE_MLS_API_URL/Property('{ListingKey}')/Media" \
      -H "Authorization: Bearer $SAIGE_MLS_API_KEY" \
      -H "Accept: application/json" \
      --data-urlencode "\$select=MediaURL,Order,ShortDescription" \
      --data-urlencode "\$orderby=Order asc"
    200 OK (shape)
    {
      "@odata.context": "...",
      "value": [
        {
          "MediaURL": "...",
          "Order": 1,
          "ShortDescription": "..."
        }
      ]
    }

    GET{SAIGE_MLS_API_URL}/Media

    List media

    Returns media records across listings. Filter by ResourceRecordKey, or by ModificationTimestamp to fetch only changed photos.

    Query options

    • $filterstring

      Keep only records that match. Operators: eq, ne, gt, ge, lt, le, and, or, not. Text values go in single quotes.

      Example: StandardStatus eq 'Active' and ListPrice le 1200000

    • $selectstring

      Comma-separated fields to return. Ask only for what the page shows.

      Example: ListingKey,ListPrice,BedroomsTotal,City

    • $orderbystring

      Sort order: a field, then asc or desc. Add the key as a second field so pages stay stable.

      Example: ListPrice asc,ListingKey asc

    • $topinteger

      Largest number of records to return in this answer.

      Example: 24

    • $skipinteger

      Number of records to skip, for page 2 and on. Follow @odata.nextLink when the answer has one.

      Example: 24

    • $countboolean

      When true, the answer carries @odata.count, the number of matching records.

      Example: true

    Headers

    • AuthorizationstringRequired

      Bearer followed by your key. Send it from server code only.

      Example: Bearer {SAIGE_MLS_API_KEY}

    • Acceptstring

      application/json for data requests. $metadata answers in XML.

      Example: application/json

    Returns a list of Media records in the value array.

    Request (curl)
    curl -G "$SAIGE_MLS_API_URL/Media" \
      -H "Authorization: Bearer $SAIGE_MLS_API_KEY" \
      -H "Accept: application/json" \
      --data-urlencode "\$filter=ResourceRecordKey eq '{ListingKey}'" \
      --data-urlencode "\$orderby=Order asc"
    200 OK (shape)
    {
      "@odata.context": "{SAIGE_MLS_API_URL}/$metadata#Media",
      "value": [
        {
          "MediaKey": "...",
          "ResourceRecordKey": "...",
          "MediaURL": "...",
          "Order": 1
        }
      ]
    }

    Photos for one listing

    Follow the link from a listing to its media. The RESO Web API Core tests use this form, and it returns only that listing's media. Sort by Order so the photos come in the listing's own order.

    Request
    GET {SAIGE_MLS_API_URL}/Property('{ListingKey}')/Media
      ?$select=MediaURL,Order,ShortDescription,ImageWidth,ImageHeight
      &$orderby=Order asc

    Photos with the listings

    Where the server offers it, $expand includes each listing's media in the same answer, which saves a request per listing on a search page. Keep the expanded fields short with a nested $select.

    Request with $expand
    GET {SAIGE_MLS_API_URL}/Property
      ?$filter=StandardStatus eq 'Active'
      &$select=ListingKey,ListPrice,City
      &$expand=Media($select=MediaURL,Order;$orderby=Order asc)
      &$top=12

    Showing photos well

    A few habits make photo pages fast and accessible:

    • Use the photo with Order 1 on a search card, or the one marked PreferredPhotoYN where the feed sets it.
    • Set width and height on each image from ImageWidth and ImageHeight, so the page does not jump while photos load.
    • Use ShortDescription as the photo's alt text when it is filled in, and the address otherwise.
    • When PhotosChangeTimestamp on the listing changes, read its media again.

    The Media record

    Photos, floor plans and other files that belong to a record, such as a listing. Key field: MediaKey. Your metadata document lists the fields your key can read.

    • MediaKeyStringUnique key of the media record.
    • ResourceRecordKeyStringKey of the record it belongs to, such as the ListingKey.
    • ResourceNameString List, SingleResource it belongs to, such as Property.
    • MediaURLStringAddress of the photo or file.
    • OrderNumberPosition in the listing's photo set. Sort by it.
    • MediaCategoryString List, SingleKind of media, such as Photo or Floor Plan.
    • MediaTypeString List, SingleFile type.
    • ShortDescriptionStringShort caption. Use it as alt text.
    • LongDescriptionStringLong caption.
    • ImageWidthNumberWidth in pixels.
    • ImageHeightNumberHeight in pixels.
    • MediaModificationTimestampTimestampWhen the file itself last changed.
    • ModificationTimestampTimestampWhen the record last changed.

    Names and types from the RESO Data Dictionary 2.0.

    Common questions

    How do I get the first photo for a search card?

    Ask for the listing's media sorted by Order and take the first, or use the photo marked PreferredPhotoYN.

    Can I store the photos on my own server?

    Board rules decide how photos may be copied and shown. Our team covers this during the review.

    Why are some photos missing?

    The listing may have fewer photos, or they changed. Compare PhotosCount and PhotosChangeTimestamp with your copy.

    Is $expand always available for Media?

    The RESO Web API Core specification allows expanding resources but requires only some to be top level. Check your metadata document.

    Which field links a photo to its listing?

    ResourceRecordKey holds the listing's key, and ResourceName says the record is a Property.

    Are there videos and floor plans?

    MediaCategory and MediaType tell a photo from other media where the board includes them.

    How should I write photo alt text?

    Use ShortDescription when it is filled in. Otherwise describe the photo with the address and room, such as front of 123 Main Street.

    How do I keep photos current?

    When a listing's PhotosChangeTimestamp is newer than your copy, read its media again.

    Specifications

    Last reviewed 2026-11-20

    MLS API for BC

    Put live MLS listings on the site you are building

    Saige is an approved MLS data vendor for Greater Vancouver REALTORS, Fraser Valley Real Estate Board, Chilliwack and District Real Estate Board and BC Northern Real Estate Board. Send a request and our team will contact you to check what your board allows and how to connect your builder.

    Call 604.401.4849