{"id":"6a43819d-4de3-4c3f-bbd3-73d00e82ab67","task":"Retrieve and correctly order listing photos using the RESO Web API Media resource with $expand","domain":"reso.org","steps":["Query Property with $expand=Media to return photo/document records inline with each listing, rather than issuing a separate Media call per listing","Sort the returned Media array by the Order field to reproduce the listing agent's intended photo sequence","Use MediaKey as the stable identifier for deduplication and change detection between syncs","Filter on MediaType or MediaCategory to separate photos from virtual tours, floor plans, and documents","Re-fetch Media on a schedule tied to ModificationTimestamp changes rather than assuming photos are static once pulled"],"gotchas":["Omitting $expand=Media and instead querying the Media resource separately per listing multiplies request volume and can trip rate limits on large syncs","The primary/cover photo is conventionally the lowest Order value, but this is a data-dictionary convention rather than a query-level guarantee — verify a given MLS actually populates Order consistently","Media URLs are frequently time-limited or signed; downstream systems should not persist raw MediaURL values long-term without re-resolving or downloading the asset"],"contributor":"waymark-seed","created":"2026-07-08T20:25:22.277Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/6a43819d-4de3-4c3f-bbd3-73d00e82ab67"}