9. GetObject Transaction

The GetObject transaction is used to retrieve structured information associated with known system entities. This includes multimedia files such as property photos, documents, and other object-related data.

Objects requested and returned through this transaction are delivered as MIME media types. When multiple images are included in a response, they are separated by a boundary marker and associated content headers (such as Content-TypeContent-IDObject-ID, and Content-Description). The final image in the set is followed by a closing boundary marker.

sample.mlsidxapi.com/Object.svc/GetObject

Request ArgumentTypeDescriptionDefaultRequiredSupported Values
AcceptStringAcceptable media typesRETS 1.7.2Image/jpeg

Request Arguments

Request ArgumentTypeDescriptionDefaultRequiredSupported Values
ResourceStringRepresents a resource as defined in the system’s metadata dictionary.RETS 1.7.2Office
Agency
Property
TypeStringSpecifies the object type as defined in the system’s metadata.PhotoRETS 1.7.2Photo
Thumbnail/Photo
LargePhoto

See Type Argument Notes section below
IDStringA string that identifies the object or group of objects being requested.RETS 1.7.2See ID Argument Explanation section below
CultureStringSpecifies results localization, applicable only when querying the Office resource.en-CAen-CA
fr-CA

Type Argument Notes

  • Office supports: ThumbnailPhoto only
  • Agent supports: ThumbnailPhoto and LargePhoto
  • Property supports: Photo, ThumbnailPhoto, and LargePhoto

ID Argument Explanation

The MLS® IDX API supports only a limited subset of ID arguments as defined in the RETS 1.7.2 specification.

ID ::= resource-set
resource-set ::= resource-entity [: object-id-list ]
resource-entity ::= 1*ALPHANUM
object-id-list ::= * | object-id * (, object-id)
object-id ::= * | 1*5DIGIT

Object-ID Argument Support

The Property resource is the only one that supports object-id arguments. For Agent and Office resources, only a single image is available, so in these cases the resource-entity field is the only one used.

Server Response Header Fields

Request ArgumentTypeDescriptionDefaultRequiredSupported Values
Content-TypeStringSpecifies the media type of the object or objects being returned.RETS 1.7.2Image/jpeg Multipart/parallel; boundary =
Content-IDStringProvides the identifier of the object, corresponding to the ID that was requested.RETS 1.7.2 Only Returned in a multipart response
Object-IDIndicates the object number that is being returned in the response.RETS 1.7.2Integer * (only if error processing multipart/parallel response)
MIME-VersionStringSpecifies the MIME version of the response object.RETS 1.7.21.0

Response Arguments

Objects retrieved through this transaction are delivered as MIME media types. For successful requests, the message body contains only the objects in the specified MIME type. If an error occurs, the response will follow the standard error response format.

ActionSyntax
Get agent High Resolution photo for agent 12345Resource=Agent&Type=LargePhoto&ID=12345
Get office logo for office 12345Resource=Office&Type=ThumbnailPhoto&ID=12345
Get all medium resolution photos for property with ID 12345Resource=Property&Type=PhotoID=12345 –or– Resource=Property&Type=Photo&ID=12345:*
Get High Resolution photo #3 for property with ID 12345Resource=Property&Type=LargePhoto&ID=12345:3
Return default Medium resolution photo for property with ID 12345Resource=Property&Type=PhotoID=12345:0
Return Medium Resolution photos 2,4 and 7 for property with ID 12345 Resource=Property&Type=Photo&ID=12345:2,4,7

Multiple Images (Multipart) Feed Example

–creaboundary

Content-Type: image/jpeg

Content-ID:12345

Object-ID:1

Content-Description: null

<image 1 data>

–creaboundary

Content-Type: image/jpeg

Content-ID:12345

Object-ID:2

Content-Description: null

<image 2 data>

–creaboundary—

SHARE POST:

Facebook
Reddit
LinkedIn

AgentDetails Payload

Parent Cardinality Name Type Description Lookup AgentDetails 1 Name String The name of the Agent AgentDetails 1 ID Integer (Attribute) Unique ID assigned to the

Read More »

Agent Payload

Parent Cardinality Name Type Description Lookup Agent 1 ID Integer (Attribute) Unique ID assigned to the Agent Agent 1 LastUpdated DateTime (Attribute) The date agent

Read More »

OfficeDetails Payload

Parent Cardinality Name Type Description Lookup OfficeDetails 1 Name String The name of the Office OfficeDetails 1 ID Integer Unique ID assigned to the Office

Read More »

Office Payload

Parent Cardinality Name Type Description Lookup Office 1 ID Integer Unique ID assigned to the office Office 1 Last Updated DateTime The date the office

Read More »