Skip to content

Retrieve an attachment

The resource attachment represents the attachments (picture, document, video, link, video stream) of the expose. The attachment holds meta information and an URI to the specific data (e.g. the location of the image data).

GET /search/v1.0/expose/{expose_id}/attachment/{attachment_id}

Supported media types:
XML
JSON

Note: The list representation retrieves not only reference entries (xlink) but also the full metadata of each attachment (this differs from a strict RESTful view). If you only need information for a specific attachment you should provide an attachment id. An attachment represents only descriptive meta information and not the content itself (e.g. the image data or the PDF document).

Request

Path parameters

PARAMETER DESCRIPTION
expose_id The Id of an expose to get attachments for
attachment_id The Id of an attachment of an expose

Response

XML:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<common:attachment xmlns:shortlist="http://rest.immobilienscout24.de/schema/search/shortlist/1.0" xmlns:common="http://rest.immobilienscout24.de/schema/common/1.0" xmlns:gis="http://rest.immobilienscout24.de/schema/platform/gis/1.0" xmlns:search="http://rest.immobilienscout24.de/schema/search/common/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="common:Picture" xlink:href="https://rest.sandbox-immobilienscout24.de/restapi/api/search/v1.0/expose/64848329/attachment/1" id="1" modification="2016-03-04T14:17:01.081Z" creation="2016-03-04T14:17:01.081Z" publishDate="2016-03-04T14:17:01.081Z">
    <title>NNBxEIg</title>
    <floorplan>false</floorplan>
    <titlePicture>true</titlePicture>
    <urls>
        <url scale="SCALE_60x60" href="https://spicture.preview-is24.de/pic/orig03/N/107/26/750/107026750-0.png/ORIG/resize/60x60%3E/extent/60x60/format/jpg"/>
        <url scale="SCALE_118x118" href="https://spicture.preview-is24.de/pic/orig03/N/107/26/750/107026750-0.png/ORIG/resize/118x118%3E/extent/118x118/format/jpg"/>
        <url scale="SCALE_210x210" href="https://spicture.preview-is24.de/pic/orig03/N/107/26/750/107026750-0.png/ORIG/resize/210x210%3E/format/jpg"/>
        <url scale="SCALE_540x540" href="https://spicture.preview-is24.de/pic/orig03/N/107/26/750/107026750-0.png/ORIG/resize/540x540%3E/format/jpg"/>
        <url scale="SCALE" href="https://spicture.preview-is24.de/pic/orig03/N/107/26/750/107026750-0.png/ORIG/resize/%WIDTH%x%HEIGHT%%3E/format/jpg"/>
        <url scale="SCALE_AND_CROP" href="https://spicture.preview-is24.de/pic/orig03/N/107/26/750/107026750-0.png/ORIG/legacy_thumbnail/%WIDTH%x%HEIGHT%/format/jpg"/>
        <url scale="WHITE_FILLING" href="https://spicture.preview-is24.de/pic/orig03/N/107/26/750/107026750-0.png/ORIG/resize/%WIDTH%x%HEIGHT%%3E/extent/%WIDTH%x%HEIGHT%/format/jpg"/>
    </urls>
</common:attachment>

JSON:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
  "common.attachment":{
    "@xsi.type":"common:Picture",
    "@xlink.href":"https:\/\/rest.sandbox-immobilienscout24.de\/restapi\/api\/search\/v1.0\/expose\/64848329\/attachment\/1",
    "@id":"1",
    "@modification":"2016-03-04T14:17:01.081Z",
    "@creation":"2016-03-04T14:17:01.081Z",
    "@publishDate":"2016-03-04T14:17:01.081Z",
    "title":"NNBxEIg",
    "floorplan":"false",
    "titlePicture":"true",
    "urls":[
      {
        "url":[
          {
            "@scale":"SCALE_60x60",
            "@href":"https:\/\/spicture.preview-is24.de\/pic\/orig03\/N\/107\/26\/750\/107026750-0.png\/ORIG\/resize\/60x60%3E\/extent\/60x60\/format\/jpg"
          },
          {
            "@scale":"SCALE_118x118",
            "@href":"https:\/\/spicture.preview-is24.de\/pic\/orig03\/N\/107\/26\/750\/107026750-0.png\/ORIG\/resize\/118x118%3E\/extent\/118x118\/format\/jpg"
          },
          {
            "@scale":"SCALE_210x210",
            "@href":"https:\/\/spicture.preview-is24.de\/pic\/orig03\/N\/107\/26\/750\/107026750-0.png\/ORIG\/resize\/210x210%3E\/format\/jpg"
          },
          {
            "@scale":"SCALE_540x540",
            "@href":"https:\/\/spicture.preview-is24.de\/pic\/orig03\/N\/107\/26\/750\/107026750-0.png\/ORIG\/resize\/540x540%3E\/format\/jpg"
          },
          {
            "@scale":"SCALE",
            "@href":"https:\/\/spicture.preview-is24.de\/pic\/orig03\/N\/107\/26\/750\/107026750-0.png\/ORIG\/resize\/%WIDTH%x%HEIGHT%%3E\/format\/jpg"
          },
          {
            "@scale":"SCALE_AND_CROP",
            "@href":"https:\/\/spicture.preview-is24.de\/pic\/orig03\/N\/107\/26\/750\/107026750-0.png\/ORIG\/legacy_thumbnail\/%WIDTH%x%HEIGHT%\/format\/jpg"
          },
          {
            "@scale":"WHITE_FILLING",
            "@href":"https:\/\/spicture.preview-is24.de\/pic\/orig03\/N\/107\/26\/750\/107026750-0.png\/ORIG\/resize\/%WIDTH%x%HEIGHT%%3E\/extent\/%WIDTH%x%HEIGHT%\/format\/jpg"
          }
        ]
      }
    ]
  }
}