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
ListingKeystringRequiredThe ListingKey of the Property record, in single quotes inside the brackets.
Query options
$filterstringKeep 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
$selectstringComma-separated fields to return. Ask only for what the page shows.
Example: ListingKey,ListPrice,BedroomsTotal,City
$orderbystringSort order: a field, then asc or desc. Add the key as a second field so pages stay stable.
Example: ListPrice asc,ListingKey asc
$topintegerLargest number of records to return in this answer.
Example: 24
Headers
AuthorizationstringRequiredBearer followed by your key. Send it from server code only.
Example: Bearer {SAIGE_MLS_API_KEY}
Acceptstringapplication/json for data requests. $metadata answers in XML.
Example: application/json
Returns a list of Media records in the value array.
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"{
"@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
$filterstringKeep 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
$selectstringComma-separated fields to return. Ask only for what the page shows.
Example: ListingKey,ListPrice,BedroomsTotal,City
$orderbystringSort order: a field, then asc or desc. Add the key as a second field so pages stay stable.
Example: ListPrice asc,ListingKey asc
$topintegerLargest number of records to return in this answer.
Example: 24
$skipintegerNumber of records to skip, for page 2 and on. Follow @odata.nextLink when the answer has one.
Example: 24
$countbooleanWhen true, the answer carries @odata.count, the number of matching records.
Example: true
Headers
AuthorizationstringRequiredBearer followed by your key. Send it from server code only.
Example: Bearer {SAIGE_MLS_API_KEY}
Acceptstringapplication/json for data requests. $metadata answers in XML.
Example: application/json
Returns a list of Media records in the value array.
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"{
"@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.
GET {SAIGE_MLS_API_URL}/Property('{ListingKey}')/Media
?$select=MediaURL,Order,ShortDescription,ImageWidth,ImageHeight
&$orderby=Order ascPhotos 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.
GET {SAIGE_MLS_API_URL}/Property
?$filter=StandardStatus eq 'Active'
&$select=ListingKey,ListPrice,City
&$expand=Media($select=MediaURL,Order;$orderby=Order asc)
&$top=12Showing 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
- Data Dictionary 2.0: Media resource (Real Estate Standards Organization (RESO))
- Web API Core specification (RESO Transport Workgroup)
- OData Version 4.01, Part 2: URL Conventions (OASIS)
Last reviewed 2026-11-20