Resource type: search
Search for estates via quick search
Parameters:
input
Search string. The estate fieldsobjektnr_extern,ort,strasseand the address fieldsVornameandNameof the estate owner will be searched through. In case of combined search of street and house number, the results are restricted, i.e. they are linked with the AND operator.sortby
STRING. Field to sort by. The database field names have to be used:objektnr_externforexternalestateno,ortforcity,strasseforstreet,hausnummerforhouseno.sortorder
STRING. Possible values:ASCorDESC. Ascending or descending.includeThumbnail
STRING. Possible values:smallormedium. If set, a link to the thumbnail of the title image of the property is displayed in the response underthumbnail.filterId
INTEGER. Filter ID. This parameter can also be used to restrict the search of estates via estate filters created in enterprise. The filter IDs of your created filters can be read out via the API call Filter. For more information about filters, see our online help.filter
OBJECT. Key: field, value: array of objects with filter expressions in the format"status": [{"op": "=", "val": 1}]. Withopyou specify the operator. Possible values foropare the following SQL operators:is or =, >, <, >=, <=, != or <>, between, like, not like, in, not in
For the operator
likethe value % can be specified as a placeholder.With
valyou specify the value which should be applied to the filtering. The individual filter expressions are linked with the AND operation. Multiple values or ranges for operators like IN or BETWEEN are specified in comma separated array notation.
"objektart": [{"op": "IN","val": ["Zimmer","Haus"]}], "letzte_aktion ": [{"op": "BETWEEN","val": ["2020-01-01","2021-04-01"]}]}
Response:
externalestateno
ImmoNr. / external estate nozipcode
ZIP codecity
Citystreet
Streethouseno
House numberowner
Owner of propertytype
Type of propertythumbnail
Link to the thumbnail of the title image of the property. Is output if request parameterincludeThumbnailis set.
Request example:
{
"actionid": "urn:onoffice-de-ns:smart:2.5:smartml:action:get",
"identifier": "x",
"resourceid": "estate",
"resourcetype": "search",
"parameters":
{
"input": "Musterstrasse"
}
}
Response example:
"actions":
{
"actionid": "urn:onoffice-de-ns:smart:2.5:smartml:action:get",
"resourceid": "estate",
"resourcetype": "search",
"cacheable": false,
"identifier": "x",
"data": {
"meta": {
"cntabsolute": null
},
"records": [
{
"id": 1237,
"type": "estate",
"elements": {
"externalestateno": "PC910",
"zipcode": "52064",
"city": "Aachen, Innenstadt",
"street": "Musterstrasse",
"houseno": "12",
"owner": "Max Mustermann",
"type":"Haus"
}
}
]
},
"status": {
"errorcode": 0,
"message": "OK"
}
}
