Table of Contents

Introduction

Overview

Ad Stream is a push based interface that provides information about new and updated listings on the mobile.de platform.

It eliminates the need to actively poll the rest interface in order to get the newest listings. As soon as a listing is created and it becomes visible on the platform the Ad Stream interface will send the notification to the connected clients.

The Ad Stream is an interface to allow the users getting information about the latest listings. It also could be used for synchronizing a copy of the mobile.de inventory as it publishes events when listings are changed or deleted.

The interface uses the Web Socket protocol to send the events.

Endpoint and test environment

How to access the api.

Websocket endpoint url

The API is available at this url:

wss://services.mobile.de/ad-stream/events

Please contact the Customer Support and refer to the Authentication and Authorization section in order to get access to the service.

Test Environment

Test environment is only available for API Users that are having an active live account.

The test endpoint is available at

wss://services.mobile.de/test-ad-stream/events

It provides the same functionality as the live endpoint except the following:

  • the Delay is 60 seconds longer

  • it sends only 10% of all events

High Level Concepts

API User

An API user is an entity that has an API account and uses that account to connect to the interface. Please contact the Customer Support in order to set up the account and get the login credentials.

Ad

The ad represents a vehicle for sale that is published on the mobile.de platform. It consists among the others of:

  • vehicle details

  • price

  • images

Seller

The seller represents information about the owner of the vehicle. It consists among the others of:

  • seller name

  • address

  • contact details

Ad Stream Event

Ad Stream event is a message published to the connected users. Events are triggered when a new listing is created, updated or deleted on the mobile.de platform. The event payload contains full details about the relevant Ad and Seller.

Delay

The events are delivered to the client after a predefined delay. The actual delay depends on the contract. Please contact the Customer Support for more details.

Technical Overview

This section contains information how to use the Ad Stream from a technical perspective.

Web Socket

The interface uses the Web Socket protocol to send the events. Please refer to the following documents for more details

Once the connection is established the server starts publishing the events to the client. The connection is a long running communication channel and it could remain active for many days. Sometimes the connection gets terminated e.g. due to network problems or a new version of software installed on the mobile.de site. The client must ensure that it has a mechanism to automatically establish a new connection in that case. Please refer to the Ensuring Consistency section to find out how to make sure that no messages are lost during the reconnecting process.

Authentication and Authorization

Access to the interface is only possible for the authenticated users. The user must be authenticated with a username and password using the HTTP basic authentication scheme. For detailed information on HTTP basic authentication please refer to:

During the activation process the Customer Support will set up an API User and provide you with instructions how to get the access credentials.

Filters

The amount of events can be limited by a predefined filter (only vehicles from private sellers). Please contact the Customer Support for filters activation and more details.

Multiple connections

The Adstream application is limited to one connection per user. Once the user tries to establish more concurrent connections the previous connections will be closed automatically. Because of the latency after reconnecting and closing connections, there is no advantage in terms of reliability or consistency.

Ensuring Consistency

The interface provides a mechanism to ensure that all events are delivered to a given user even though the user connection is not active for a while. When a connection is established, first the historical events are delivered starting at the point when the previous connection was terminated. The historical events are kept for 24 hours.

The consistency option is not enabled by default. In order to activate it please include the catchup=true query parameter in the url.

wss://services.mobile.de/ad-stream/events?catchup=true

Please use the catchup=true option consistently across all active connections. Mixing the consistency option with regular connections at the same time will cause some unpredicted behavior of the interface.

Data Format

The events are delivered in the xml format that conforms to the https://services.mobile.de/schema/search-1.0.xsd schema.

Sample event
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<search:event xmlns:seller="http://services.mobile.de/schema/seller"
              xmlns:search="http://services.mobile.de/schema/search"
              xmlns:ad="http://services.mobile.de/schema/ad"
              xmlns:resource="http://services.mobile.de/schema/resource"
              xmlns:financing="http://services.mobile.de/schema/common/financing-1.0"
              xmlns:error="http://services.mobile.de/schema/common/error-1.0">
    <search:event-type>AD_CREATE_OR_UPDATE</search:event-type>
    <search:ad-key>152229071</search:ad-key>
    <ad:ad key="152229071" url="https://services.mobile.de/search-api/ad/152229071">
        <ad:creation-date value="2017-10-18T09:26:40+02:00"/>
        <ad:modification-date value="2017-10-18T09:26:42+02:00"/>
        <ad:detail-page url="https://suchen.mobile.de/auto-inserat/mercedes-benz-vito-116cdi-l-klima-tempomat-sitzheizung-pts-kevelaer/152229071.html"/>
        <ad:seller-inventory-key value="NFZ708645HND02"/>
        <ad:vehicle>
            <ad:class key="Car" url="https://services.mobile.de/refdata/classes/Car"/>
            <ad:category key="Van" url="https://services.mobile.de/refdata/classes/Car/categories/Van"/>
            <ad:make key="MERCEDES-BENZ" url="https://services.mobile.de/refdata/classes/Car/makes/MERCEDES-BENZ"/>
            <ad:model key="Vito" url="https://services.mobile.de/refdata/classes/Car/makes/MERCEDES-BENZ/models/Vito"/>
            <ad:model-description value="Vito 116CDI L *Klima*Tempomat*Sitzheizung*PTS*"/>
            <ad:damage-and-unrepaired value="false"/>
            <ad:features>
                <ad:feature key="CENTRAL_LOCKING" url="https://services.mobile.de/refdata/classes/Car/features/CENTRAL_LOCKING"/>
                <ad:feature key="ELECTRIC_WINDOWS" url="https://services.mobile.de/refdata/classes/Car/features/ELECTRIC_WINDOWS"/>
                <ad:feature key="IMMOBILIZER" url="https://services.mobile.de/refdata/classes/Car/features/IMMOBILIZER"/>
                <ad:feature key="POWER_ASSISTED_STEERING" url="https://services.mobile.de/refdata/classes/Car/features/POWER_ASSISTED_STEERING"/>
                <ad:feature key="ABS" url="https://services.mobile.de/refdata/classes/Car/features/ABS"/>
                <ad:feature key="ESP" url="https://services.mobile.de/refdata/classes/Car/features/ESP"/>
                <ad:feature key="FULL_SERVICE_HISTORY" url="https://services.mobile.de/refdata/classes/Car/features/FULL_SERVICE_HISTORY"/>
                <ad:feature key="CRUISE_CONTROL" url="https://services.mobile.de/refdata/classes/Car/features/CRUISE_CONTROL"/>
                <ad:feature key="PARKING_SENSORS" url="https://services.mobile.de/refdata/classes/Car/features/PARKING_SENSORS"/>
                <ad:feature key="ELECTRIC_HEATED_SEATS" url="https://services.mobile.de/refdata/classes/Car/features/ELECTRIC_HEATED_SEATS"/>
                <ad:feature key="PARTICULATE_FILTER_DIESEL" url="https://services.mobile.de/refdata/classes/Car/features/PARTICULATE_FILTER_DIESEL"/>
                <ad:feature key="HU_AU_NEU" url="https://services.mobile.de/refdata/classes/Car/features/HU_AU_NEU"/>
                <ad:feature key="WARRANTY" url="https://services.mobile.de/refdata/classes/Car/features/WARRANTY"/>
                <ad:feature key="AUTOMATIC_RAIN_SENSOR" url="https://services.mobile.de/refdata/classes/Car/features/AUTOMATIC_RAIN_SENSOR"/>
                <ad:feature key="BLUETOOTH" url="https://services.mobile.de/refdata/classes/Car/features/BLUETOOTH"/>
                <ad:feature key="ON_BOARD_COMPUTER" url="https://services.mobile.de/refdata/classes/Car/features/ON_BOARD_COMPUTER"/>
                <ad:feature key="HANDS_FREE_PHONE_SYSTEM" url="https://services.mobile.de/refdata/classes/Car/features/HANDS_FREE_PHONE_SYSTEM"/>
                <ad:feature key="MULTIFUNCTIONAL_WHEEL" url="https://services.mobile.de/refdata/classes/Car/features/MULTIFUNCTIONAL_WHEEL"/>
                <ad:feature key="TUNER" url="https://services.mobile.de/refdata/classes/Car/features/TUNER"/>
                <ad:feature key="TRACTION_CONTROL_SYSTEM" url="https://services.mobile.de/refdata/classes/Car/features/TRACTION_CONTROL_SYSTEM"/>
                <ad:feature key="ROOF_RAILS" url="https://services.mobile.de/refdata/classes/Car/features/ROOF_RAILS"/>
            </ad:features>
            <ad:specifics>
                <ad:exterior-color key="WHITE" url="https://services.mobile.de/refdata/colors/WHITE">
                    <ad:manufacturer-color-name value="arktikweiß"/>
                </ad:exterior-color>
                <ad:mileage value="41562"/>
                <ad:door-count key="FOUR_OR_FIVE" url="https://services.mobile.de/refdata/doorcounts/FOUR_OR_FIVE"/>
                <ad:first-registration value="2016-03"/>
                <ad:emission-class key="EURO5" url="https://services.mobile.de/refdata/emissionclasses/EURO5"/>
                <ad:emission-fuel-consumption envkv-compliant="false" co2-emission="163.0" inner="7.8" outer="5.2" combined="6.2" unit="LITER_PER_100_KM"/>
                <ad:emission-sticker key="EMISSIONSSTICKER_GREEN" url="https://services.mobile.de/refdata/emissionstickers/EMISSIONSSTICKER_GREEN"/>
                <ad:fuel key="DIESEL" url="https://services.mobile.de/refdata/fuels/DIESEL"/>
                <ad:power value="120"/>
                <ad:kba hsn="1313" tsn="BQK"/>
                <ad:gearbox key="MANUAL_GEAR" url="https://services.mobile.de/refdata/gearboxes/MANUAL_GEAR"/>
                <ad:climatisation key="MANUAL_CLIMATISATION" url="https://services.mobile.de/refdata/climatisations/MANUAL_CLIMATISATION"/>
                <ad:num-seats value="3"/>
                <ad:construction-date value="2016-02-11+01:00"/>
                <ad:cubic-capacity value="2143"/>
                <ad:condition key="USED" url="https://services.mobile.de/refdata/conditions/USED"/>
                <ad:interior-type key="FABRIC" url="https://services.mobile.de/refdata/interiorTypes/FABRIC"/>
                <ad:airbag key="FRONT_AIRBAGS" url="https://services.mobile.de/refdata/airbags/FRONT_AIRBAGS"/>
                <ad:countryVersion key="DE" url="https://services.mobile.de/refdata/countryVersion/DE"/>
                <ad:parking-assistants>
                    <ad:parking-assistant key="FRONT_SENSORS" url="https://services.mobile.de/refdata/parkingassistants/FRONT_SENSORS"/>
                    <ad:parking-assistant key="REAR_SENSORS" url="https://services.mobile.de/refdata/parkingassistants/REAR_SENSORS"/>
                </ad:parking-assistants>
            </ad:specifics>
        </ad:vehicle>
        <ad:description>- Klimaanlage TEMPMATIC, TEMPOMAT, Aktiver Park-Assistent, Radio Audio 10 ( Bluetooth, USB, AUX &amp; SD-Karte ), Multifunktionslenkrad mit Reiserechner, Lederlenkrad und Lederschalthebel, Komfort-Fahrersitz, Sitzheizung für Fahrer, Airbag Fahrer, Beifahrersitz Zweisitzer, Airbag Beifahrer, Stoff Tunja schwarz, 6-Gang-Schaltgetriebe TSG 380, Komfort-Öffnung u.Schließung mit IR-Fernbedienung, Fahrlichtassistent, Aufmerksamkeits-Assistent ATTENTION ASSIST, Berganfahrhilfe, Regensensor, Reifenluftdrucküberwachung an VA u. HA, drahtlos, Dachreling, Trennwand durchgehend mit 1 Fenster, Holzfußboden, Lastenverankerungsschienensystem, Innenverkleidung Laderaum bis Dachhöhe, LED-Lichtband im Laderaum, Hecktüren, zweiflügelig, Öffnung bis Seitenwand, Adaptives Bremslicht, Elektrik für Anhängersteckdose, Fahrzeug schadstoffarm Euro 5b+ Gr. III, Zulassung als LKW, Motor OM 651 DE 22 LA 120 kW (163 PS) 3800/min, Paket EASY CARGO, Inland - Code - - - Zubehörangaben ohne Gewähr, Änderungen, Zwischenverkauf und Irrtümer vorbehalten.</ad:description>
        <ad:enrichedDescription>* Klimaanlage TEMPMATIC\\* TEMPOMAT\\* Aktiver Park-Assistent\\* Radio Audio 10 ( Bluetooth, USB, AUX &amp; SD-Karte )\\* Multifunktionslenkrad mit Reiserechner\\* Lederlenkrad und Lederschalthebel\\* Komfort-Fahrersitz\\* Sitzheizung für Fahrer\\* Airbag Fahrer\\* Beifahrersitz Zweisitzer\\* Airbag Beifahrer\\* Stoff Tunja schwarz\\* 6-Gang-Schaltgetriebe TSG 380\\* Komfort-Öffnung u.Schließung mit IR-Fernbedienung\\* Fahrlichtassistent\\* Aufmerksamkeits-Assistent ATTENTION ASSIST\\* Berganfahrhilfe\\* Regensensor\\* Reifenluftdrucküberwachung an VA u. HA, drahtlos\\* Dachreling\\* Trennwand durchgehend mit 1 Fenster\\* Holzfußboden\\* Lastenverankerungsschienensystem\\* Innenverkleidung Laderaum bis Dachhöhe\\* LED-Lichtband im Laderaum\\* Hecktüren, zweiflügelig, Öffnung bis Seitenwand\\* Adaptives Bremslicht\\* Elektrik für Anhängersteckdose\\* Fahrzeug schadstoffarm Euro 5b+ Gr. III\\* Zulassung als LKW\\* Motor OM 651 DE 22 LA 120 kW (163 PS) 3800/min\\* Paket EASY CARGO\\* Inland - Code\\\\ \\ Zubehörangaben ohne Gewähr, Änderungen, Zwischenverkauf und Irrtümer vorbehalten.</ad:enrichedDescription>
        <ad:images count="3" gallery-url="https://i.ebayimg.com/00/s/NDgwWDY0MA==/z/9e4BBOSwykZZ5wIw/$_23.JPG" url="https://services.mobile.de/search-api/ad/152229071/images">
            <ad:image>
                <ad:representation size="S" url="https://i.ebayimg.com/00/s/NDgwWDY0MA==/z/9e4BBOSwykZZ5wIw/$_18.JPG"/>
                <ad:representation size="XL" url="https://i.ebayimg.com/00/s/NDgwWDY0MA==/z/9e4BBOSwykZZ5wIw/$_27.JPG"/>
                <ad:representation size="ICON" url="https://i.ebayimg.com/00/s/NDgwWDY0MA==/z/9e4BBOSwykZZ5wIw/$_23.JPG"/>
                <ad:representation size="L" url="https://i.ebayimg.com/00/s/NDgwWDY0MA==/z/9e4BBOSwykZZ5wIw/$_1.JPG"/>
                <ad:representation size="M" url="https://i.ebayimg.com/00/s/NDgwWDY0MA==/z/9e4BBOSwykZZ5wIw/$_24.JPG"/>
            </ad:image>
            <ad:image>
                <ad:representation size="S" url="https://i.ebayimg.com/00/s/NDgwWDY0MA==/z/kQEBBOSwc6pZ5wIw/$_18.JPG"/>
                <ad:representation size="XL" url="https://i.ebayimg.com/00/s/NDgwWDY0MA==/z/kQEBBOSwc6pZ5wIw/$_27.JPG"/>
                <ad:representation size="ICON" url="https://i.ebayimg.com/00/s/NDgwWDY0MA==/z/kQEBBOSwc6pZ5wIw/$_23.JPG"/>
                <ad:representation size="L" url="https://i.ebayimg.com/00/s/NDgwWDY0MA==/z/kQEBBOSwc6pZ5wIw/$_1.JPG"/>
                <ad:representation size="M" url="https://i.ebayimg.com/00/s/NDgwWDY0MA==/z/kQEBBOSwc6pZ5wIw/$_24.JPG"/>
            </ad:image>
            <ad:image>
                <ad:representation size="S" url="https://i.ebayimg.com/00/s/NDgwWDY0MA==/z/3oABBOSwyXNZ5wIw/$_18.JPG"/>
                <ad:representation size="XL" url="https://i.ebayimg.com/00/s/NDgwWDY0MA==/z/3oABBOSwyXNZ5wIw/$_27.JPG"/>
                <ad:representation size="ICON" url="https://i.ebayimg.com/00/s/NDgwWDY0MA==/z/3oABBOSwyXNZ5wIw/$_23.JPG"/>
                <ad:representation size="L" url="https://i.ebayimg.com/00/s/NDgwWDY0MA==/z/3oABBOSwyXNZ5wIw/$_1.JPG"/>
                <ad:representation size="M" url="https://i.ebayimg.com/00/s/NDgwWDY0MA==/z/3oABBOSwyXNZ5wIw/$_24.JPG"/>
            </ad:image>
        </ad:images>
        <ad:price currency="EUR" type="FIXED">
            <ad:consumer-price-amount value="23193.10"/>
            <ad:vatable value="true"/>
            <ad:vat-rate value="0.19"/>
        </ad:price>
        <seller:seller key="1177" url="https://services.mobile.de/search-api/seller/1177">
            <seller:type value="DEALER" commercial="true"/>
            <seller:company-name value="Herbrand GmbH"/>
            <seller:address>
                <seller:street value="Wettener Straße 18"/>
                <seller:zipcode value="20359"/>
                <seller:city value="Hamburg"/>
                <seller:country-code value="DE"/>
            </seller:address>
            <seller:phone type="FIXED" country-calling-code="49" area-code="01234" number="2222333"/>
            <seller:phone type="FAX" country-calling-code="49" area-code="01234" number="3333222"/>
            <seller:coordinates>
                <seller:latitude>52.401543</seller:latitude>
                <seller:longitude>13.178085</seller:longitude>
            </seller:coordinates>
            <seller:contact-languages>
                <seller:language>de</seller:language>
            </seller:contact-languages>
        </seller:seller>
    </ad:ad>
</search:event>

Customer Support Contact

Please contact the Customer Support team if you need further assistance.

Country Contact Details

Germany

Phone: +49 (0) 30 81097500 or Contact Form

Italy

Phone: +39 02 30410311 or Contact Form

France

Phone: +33 (0) 810 000 220 or Contact Form