shopping24 documentation

s is for shopping

API product details

To retrieve full details of a product, request it from the following url:

GET /v3/:appid/product/:productid

Products on detail pages, search result and in category browsing are rendered as follows. The fields are self explanatory:

<ns2:product id="123974288">
  <!-- product's title and description -->
  <title>Samsung SyncMaster T22B350EW 22" (54,6 cm) LED</title>
    Der neue HDTV LED-Monitor ...
  <!-- product's GTIN-14 -->
  <!-- the internal shop keeping unit. For debugging purposes only -->
  <!-- the shops offering this product (see below) -->
  <shops count="1">...</shops>
  <!-- this product's brand (details see below) -->
  <brand id="10067">...</brand>
  <!-- attributes attached to this product. These are all filterable on the full product list. -->
    <attribute name="tuner" label="Tuner">
      <value id="74761">DVB-C</value>
    <attribute name="anschluss" label="Anschluss">...</attribute>
    <attribute name="color" label="Farbe">...</attribute>
  <!-- The deepest category this product is included in -->
  <category id="16048">
    <name>Samsung Fernseher</name>
  <!-- The path from root to the categories this product is included in -->
    <category id="2929">
      <name>discount24 baum 14_06_2011</name>
        <category id="3160">
          <name>TV, Audio, Konsolen</name>
  <!-- a product image element -->
  <productImage extension="jpg" base="//" id="212450427">...</productImage>

Shop element

The shop element contains the url to make a clickout to. It’s encapsulated in a link tag with the rel clickout. The shop group ID is only relevant for internal structuring.

<shop shopproductid="38002071" id="1722" shopgroupid="15">
  <!-- product price and shipping. CPC has to be whitelisted, see FAQ -->
  <costs currencyCode="EUR" currencySymbol="€">
    <price cents="14950">149,50</price>
    <shipping cents="0">0,00</shipping>
    <earnings cents="24">0,24</earnings>
    <earningsMobile cents="15">0,15</earningsMobile>
  <!-- direct link to shop website -->
  <link href="" rel="url"/>
  <!-- clickout link for this product -->
  <link href="" rel="clickout"/>
  <!-- shop logo image resource -->
  <imageResource type="logo" base="//" id="8a11..">...</imageResource>

Brand element

The brand element holds information on the extracted product brand, if any.

<brand id="10067">
  <link href="" rel="products"/>
  <imageResource type="logo" base="//" id="8a11..">...</imageResource>

Product images

Products contain a productImage element. It encapsulates some pre-defined image sizes as marked in the rel attribute.

The original image as provided by the shop
(optional) A transparent version of the image above
<productImage extension="jpg" base="//" id="87405550">
  <link href="//" rel="image-original"/>
  <link href="//" rel="image-productdetails-small"/>
  <link href="//" rel="image-productdetails-big"/>
  <link href="//" rel="image-transparent"/>

If those sizes do not fit your needs, you’re free to include images in the size of your need. Combine the attributes base, id and your desired image size in the format {width}x{height} to an image url to retrieve a scaled version of the original image:

<img src="//" />

Multiple image id candidates? If the prefix and/or suffix used to compose an image url contains digit combinations, that are more than 6 digits long, the resizer might get confused, which id to pick as an image id. To be super safe, surround the image id with brackets. {.alert .alert-success}

SEO optimizations

For SEO purposes, you can add prefixes and suffixes to the image url, as long the id and .jpg file extension are included and the size is given in the format {width}x{height}. This produces a prettier and easier to read image urls:

<img src="//" />
<img src="//" />

Resource images

Shops and brands may carry images as well. Those image resources represent the type stated in the type attribute. The snippet below represents a logo type:

<imageResource type="logo" base="//" id="8a118a8a">
  <link href="//" rel="self"/>

You can access the image using the full stated href element in the enclosed link element. The SEO optimizations above apply to these type of images as well.

<img src="//" />