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 listings of homes for sale or for rent. We don’t include rooms for rent, garages, plots of land, commercial property… at least not yet!
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
- type: type of the ad: “For rent” or “For sale”
- agency: name of the agency (optional)
- content: content of the ad (minimum of 30 characters)
-
price: sale or rent price of the home (integer value). For rentals, you can indicate the period of rent: weekly or monthly, by choosing one of these lines:
<price><![CDATA[...]]></price> <price period="monthly"><![CDATA[...]]></price> <price period="weekly"><![CDATA[...]]></price>
- property_type: apartment, studio, condo, etc. (optional)
- floor_area: area of the property, in square feet (set unit=”feet”) or square meters (unit=”meters”). (optional, integer value).
- rooms: number of bedrooms (optional)
- bathrooms: number of bathrooms (optional)
- parking: 0 if it does not have parking, 1 if it does (optional)
- address: address (optional)
- city: city name
- city_area: city area or neighborhood where the property is located (optional)
- postcode: postcode/ ZIP code (optional)
- region: name of the region/county/state (optional)
- latitude: latitude (optional)
- longitude: longitude (optional)
- pictures: URLs for the pictures in this ad, see the information below
- virtual_tour: URLs of the virtual tour of the property (optional)
- date: date of the ad in the following format: DD/MM/YYYY
- time: time of the ad in the following format: HH:MM (optional)
- expiration_date: expiration date of the ad
- plot_area: surface of the land on which the property is located (optional, integer value)
- floor_number: floor number (optional)
- orientation: orientation of the property: north, south, east or west (optional)
- foreclosure: whether the property is foreclosed or not (optional)
- mls_database: MLS id (optional)
- is_furnished: whether the property is furnished or not (optional, format: 0 = No, 1 = Yes)
- is_new: 1 if it’s a new home, 0 if it’s not (optional)
- condition: for instance “second hand apartment” (optional)
- year: year of the construction of the house or apartment in the following format: YYYY (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:
- picture_title: title of the picture (optional)
- picture_url: URL of the picture on your site
Please don’t include corporate pictures 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>
<type><![CDATA[...]]></type>
<agency><![CDATA[...]]></agency>
<content><![CDATA[...]]></content>
<price><![CDATA[...]]></price>
<property_type><![CDATA[...]]></property_type>
<floor_area unit="feet"><![CDATA[...]]></floor_area>
<rooms><![CDATA[...]]></rooms>
<bathrooms><![CDATA[...]]></bathrooms>
<parking><![CDATA[...]]></parking>
<address><![CDATA[...]]></address>
<city><![CDATA[...]]></city>
<city_area><![CDATA[...]]></city_area>
<postcode><![CDATA[...]]></postcode>
<region><![CDATA[...]]></region>
<latitude><![CDATA[...]]></latitude>
<longitude><![CDATA[...]]></longitude>
<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>
<virtual_tour><![CDATA[...]]></virtual_tour>
<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 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[Chelsea Gate, London, SW1W]]></title>
<type><![CDATA[For rent]]></type>
<agency><![CDATA[Agencia Inmobiliaria]]></agency>
<content><![CDATA[A very spacious three bedroom flat
on a modern development]]></content>
<price><![CDATA[800]]></price>
<property_type><![CDATA[Flat]]></property_type>
<floor_area unit="feet"><![CDATA[300]]></floor_area>
<rooms><![CDATA[3]]></rooms>
<bathrooms><![CDATA[1]]></bathrooms>
<parking><![CDATA[0]]></parking>
<address><![CDATA[]]></address>
<city><![CDATA[London]]></city>
<city_area><![CDATA[South Kensigton]]></city_area>
<postcode><![CDATA[SW1W]]></postcode>
<region><![CDATA[London]]></region>
<latitude><![CDATA[51.496401]]></latitude>
<longitude><![CDATA[-0.179]]></longitude>
<pictures>
<picture>
<picture_url><![CDATA[http://www.yourdomain.co.uk/image.jpg]]></picture_url>
<picture_title><![CDATA[living room]]></picture_title>
</picture>
</pictures>
<date><![CDATA[31/10/2005]]></date>
<time><![CDATA[18:30]]></time>
</ad>
<ad>
<id><![CDATA[332A53BC2]]></id>
<url><![CDATA[http://www.yourdomain.com/ad/332A53BC2]]></url>
<title><![CDATA[Brand new flat in Shadwell, London]]></title>
<type><![CDATA[For sale]]></type>
<content><![CDATA[A brand new flat, located on the third floor
of a sought after apartment building]]></content>
<price><![CDATA[209950]]></price>
<address><![CDATA[]]></address>
<city><![CDATA[London]]></city>
<postcode><![CDATA[]]></postcode>
<region><![CDATA[London]]></region>
<pictures>
<picture>
<picture_url><![CDATA[http://www.yourdomain.co.uk/image.jpg]]></picture_url>
<picture_title><![CDATA[living room]]></picture_title>
</picture>
</pictures>
<date><![CDATA[31/10/2005]]></date>
<time><![CDATA[17:30]]></time>
</ad>
</trovit>


Follow us on Twitter:









