Cars

If you want Trovit to include the ads from your site in its search results, and you have over 50 ads, just follow these steps:

  • Set up an XML file in the format described below
  • Download our validator to ensure that your XML feed is Trovit friendly
  • Using our contact form, send us an email that includes a URL where we can read the XML file you have created. For example: http://www.yourdomain.com/trovit_feed.xml
  • Keep in mind that we only accept feeds with car listings. We don’t include bikes, motorbikes, scooters, boats, car parts…

Should you have any problems or questions please don’t hesitate to contact us.

XML Feed Format

Here are some simple guidelines to create an XML file and include the ads from your site in Trovit. If you need more information about the XML format, check Wikipedia.

The XML file has one ‘trovit’ tag, and one or more ‘ad’ elements. Each ‘ad’ element has the following fields:

  • id: id of the ad in your website (numeric or alphanumeric, but has to be unique because we use it to avoid duplicate entries)
  • url: URL of the ad on your website
  • title: title of the ad
  • content: description of the car (minimum of 30 characters)
  • price: price of the car (integer value)
  • make: make of the car (optional)
  • model: model of the car (optional)
  • color: color of the car (optional)
  • year: year of the car (optional)
  • city: city name
  • city_area: city area (optional)
  • postcode: postcode/ ZIP code (optional)
  • region: name of the region/county/state (optional)
  • mileage: mileage of the car in miles or kilometers (optional)
  • doors: doors of the car (optional)
  • fuel: car’s fuel (i.e. gasoline/petrol, diesel, etc) (optional)
  • transmission: transmission of the car (manual/automatic) (optional)
  • engine_size: engine size of the car in c.c. (optional)
  • power: power of the car (optional). You can choose one of these lines:

    <power unit="kw"><![CDATA[...]]></power>
    <power unit="cv"><![CDATA[...]]></power>
    <power unit="ch"><![CDATA[...]]></power>
    <power unit="km"><![CDATA[...]]></power>
    <power unit="hp"><![CDATA[...]]></power>
    <power unit="ps"><![CDATA[...]]></power>
    <power unit="pk"><![CDATA[...]]></power>
    <power unit="cp"><![CDATA[...]]></power>
    
  • seats: seats in the car (optional)
  • gears: number of gears (optional)
  • pictures: URLs for the pictures for this ad, see the information below
  • date: date of the ad in the following format: DD/MM/YYYY
  • time: time of the ad in the following format: HH:MM (optional)
  • is_new: 0 if it is a used car, 1 if it is new (optional)
  • car_type: what kind of car: standard, 4×4, pick-up, etc (optional)
  • warranty: whether the car is still under warranty or not (optional)

pictures: the ‘ad’ element may contain a set of ‘picture’ fields as part of the ‘pictures’ tag.
The tags of each ‘picture’ element are:

  • title: title of the picture (optional)
  • url: URL of the picture on your site

Please don’t include corporate images with information such as “No image available”.

The XML feed should look like this:

<?xml version="1.0" encoding="utf-8"?>
<trovit>

<ad>
    <id><![CDATA[...]]></id>
    <url><![CDATA[...]]></url>
    <title><![CDATA[...]]></title>

    <content><![CDATA[...]]></content>

    <price><![CDATA[...]]></price>

    <make><![CDATA[...]]></make>
    <model><![CDATA[...]]></model>
    <color><![CDATA[...]]></color>

    <year><![CDATA[...]]></year>

    <city><![CDATA[...]]></city>
    <city_area><![CDATA[...]]></city_area>
    <postcode><![CDATA[...]]></postcode>

    <region><![CDATA[...]]></region>
    <mileage><![CDATA[...]]></mileage>
    <doors><![CDATA[...]]></doors>
    <fuel><![CDATA[...]]></fuel>
    <transmission><![CDATA[...]]></transmission>
    <engine_size><![CDATA[...]]></engine_size>
    <power><![CDATA[...]]></power>
    <seats><![CDATA[...]]></seats>
    <gears><![CDATA[...]]></gears>

    <pictures>
        <picture>
            <picture_url><![CDATA[...]]></picture_url>
            <picture_title><![CDATA[...]]></picture_title>
        </picture>

        <picture>
            <picture_url><![CDATA[...]]></picture_url>
            <picture_title><![CDATA[...]]></picture_title>
        </picture>
        ...
    </pictures>

    <date><![CDATA[...]]></date>
    <time><![CDATA[...]]></time>

</ad>

<ad>
    ....

</ad>

<ad>
    ....
</ad>

...

</trovit>

You can copy and paste the previous code and use it as a template for your own XML file.

Example XML feed

<?xml version="1.0" encoding="utf-8"?>
<trovit>

<ad>
	<id><![CDATA[7004578]]></id>

	<url><![CDATA[http://www.yourdomain.com/ad/7004578]]></url>
	<title><![CDATA[Audi A3 for sale, almost new]]></title>
	<content><![CDATA[Audi A3 for sale, almost new, I'm selling it because
    I'm moving to another country]]></content>

	<price><![CDATA[20000]]></price>

        <make><![CDATA[Audi]]></make>
        <model><![CDATA[A3]]></model>
        <color><![CDATA[Black]]></color>
        <year><![CDATA[2004]]></year>

        <city><![CDATA[London]]></city>
        <city_area><![CDATA[Kensington]]></city_area>
        <postcode><![CDATA[]]></postcode>
        <region><![CDATA[London]]></region>

        <mileage><![CDATA[5000]]></mileage>
        <doors><![CDATA[5]]></doors>
        <fuel><![CDATA[gasoil]]></fuel>
        <transmission><![CDATA[manual]]></region>
        <engine_size><![CDATA[1781]]></engine_size>
        <power><![CDATA[75]]></power>
        <seats><![CDATA[5]]></seats>
        <gears><![CDATA[5]]></gears>

	<pictures>
            <picture>
                <picture_url><![CDATA[http://www.yourdomain.co.uk/image1.jpg]]></picture_url>
                <picture_title><![CDATA[front]]></picture_title>
            </picture>

            <picture>
                <picture_url><![CDATA[http://www.yourdomain.co.uk/image2.jpg]]></picture_url>
                <picture_title><![CDATA[back]]></picture_title>
            </picture>
	</pictures>

	<date><![CDATA[30/09/2006]]></date>
	<time><![CDATA[18:30]]></time>
</ad>

<ad>
	<id><![CDATA[332A53BC2]]></id>

	<url><![CDATA[http://www.yourdomain.com/ad/332A53BC2]]></url>
	<title><![CDATA[Mercedes SLK for sale]]></title>
	<content><![CDATA[Mercedes SLK, 50,000 miles, for sale]]></content>

	<price><![CDATA[30000]]></price>

        <make><![CDATA[Mercedes]]></make>
        <model><![CDATA[SLK]]></model>
        <color><![CDATA[Gray]]></color>
        <year><![CDATA[2001]]></year>

        <city><![CDATA[London]]></city>
        <city_area><![CDATA[]]></city_area>
        <postcode><![CDATA[]]></postcode>
        <region><![CDATA[London]]></region>

	<pictures>
            <picture>
                <picture_url><![CDATA[http://www.yourdomain.co.uk/image1.jpg]]></picture_url>
                <picture_title><![CDATA[front]]></picture_title>
            </picture>

	</pictures>

	<date><![CDATA[20/09/2006]]></date>
	<time><![CDATA[15:00]]></time>
</ad>

</trovit>