Add the TREB IDX to your WordPress Real Estate Site

TREB IDX for WordPress

TREB IDX for WordPressYou don’t need a special Real Estate theme or expensive realtor web service to add searchable MLS listings to your WordPress site.

Toronto Realtors can easily add searchable MLS property listings to a WordPress site with the free TREB IDX data feed. An IDX feed will promote ALL TREB property listings on your website, not just your own featured listings.

How to add TREB IDX to a WordPress site

  1. Create a new page in your WordPress site called “Property Search”
  2. Write a descriptive sentence or two of text
  3. Switch from the Visual Editor to HTML view then copy and paste this line of code into your page below the text.
    <iframe width="940" height="1200" frameborder="0" scrolling="no" src="http://www.torontomls.net/api/Idx.asp?api_key=PUT YOUR API CODE HERE"></iframe>
  4. Save the page as Draft
  5. Get your own Unique API Code to customize listings with your realtor information
    • Use Internet Explorer to login to torontomls.net
    • You’ll need to provide three pieces of information to login – User ID, Your PIN # and
      Authenticator Password
    • Once you’ve logged in click “Search Properties”
    • Then click IDX Management
    • Under Manage IDX settings select “Myself” and click continue
    • Enter the url of your website
    • Click Save and you’ll get an API code
  6. Copy your API code and go back to your WordPress page. Look at the line of code from step 3 above and replace the words PUT YOUR API CODE HERE by pasting in your API code
  7. You want to select a one column, no sidebar page template layout to display the full content
  8. Save and Preview your new page. If you’re happy you can go ahead and publish the page.

Toronto-WordPress-IDX

Isn’t that awesome!

Now your clients can search MLS listings right from your WordPress website

If you found this information helpful, please add a comment.

66 thoughts on “Add the TREB IDX to your WordPress Real Estate Site


  1. Hi Ruth, this was a great article! Do you have an example website that is currently using this? I would love to see it in action! Thanks again, and keep up the great work!


  2. Hi I am trying to find where I can get the API code. I do not see IDX management when I log into TorontoMls.net Is there something that needs to be done or I require to apply for before I am able to do this?


  3. HI, How are you, I am also going to develop the website for the real estate agent, but i want fetch direct to contents of property into the database because i want change the design of search and property listing or detail page, let me know how i can do it.
    i appreciate for this reply.


    1. You would need to become a third party provider and you would have access to the raw feed. Then you code the page to present the fields you want. But there are limitations as to what you can and can’t do. TREB is very strict and will shut you down if not compliant.


  4. hi
    thanks for the the info about idx.
    is there any way i can set the default location as the current location of the client through html 5 location sensor. thanks


    1. On the location tab, type in the location (address, city, province or Postal Code instead) and SAVE.


  5. This page is utterly sensational and I truly appreciate you putting this on here to help everyone out (myself included). Question, has anyone figured out a way to import listings onto a homepage or another page so you don’t have to do a “search” from the form that this create on the website? Or is this IDX a little more basic than some of the fancy american versions.


    1. Robin,

      The IDX is just being displayed in your site in an iframe. There is no way that I know of to import content from the IDX database to your WordPress database.


    2. Robin, scraping or importing listings on a homepage would be a violation of the MLS rules.. You may wan to be look into the CREA Data Distribution Facility instead. Follow the link when you log in.


  6. Ruth,

    We have developed an open source python based solution that connects directly to TREB, downloads listings, listing photos, and imports them directly into TREB.

    The problem with all the commercial TREB WordPress solutions is that they basically connect to TREB themselves and interact with the TREB data, TREB ftp repository for listing images and arrange the data themselves. They then provide the data to the end-user from their own systems.

    Our solution allows you to bypass the “middle man” and connect straight to the source, empowering you to handle, manipulate and manage your own listing data without having to pay subscription fees for commercial wordpress plugins that basically do the same thing.

    The python script uses a text file template for creating wordpress blog posts with the real estate listing data. You can use any free 3rd party plugins and integrate the shortcode / html into the listing template that will then be imported into wordpress.

    The script can be run as a scheduled job once a day to import all new listings (and remove “sold” ones).

    I admit that the technical expertise required to implement this is a bit high ,but the idea is to create a completely open source solution that gives people an alternative to the subscription commercial solutions that are out there right now (I believe there are at least 2 or 3 Canadian commercial TREB solutions for wordpress at the moment).

    The link to the blog post we wrote detailing the script and linking to the GitHub project is in my name on this comment.

    Thanks!


    1. I meant to say “TREB, downloads listings, listing photos, and imports them directly into WordPress”

      my mistake!


    2. Kevin
      We too built a new commercial destination which is a CREA 3rd party destination that addresses all the issues: http://www.commnet.ca.
      Realtors can bring their listings in for free, property marketing tools get attach to their listings and, in essence, CommNet is the only true commercial network available in Canada to share and network commercial professionals. By summer, they will be in the US too replacing Loopnet for Canada.


  7. Hi Ruth

    How can I show featured Listings in Custom PHP not in WP..

    Regards


  8. Thanks for sharing all information , i did this all . how you can show brokerage listing on your WordPress website . Brokerage all ready gave permission


  9. Hi, Ruth. Thanks for this post. It looks like torontomls.net has changed their site and the link to “IDX Management” is no longer there. Instead there is now a link to “Data Distribution Facility” which leads to a portal that allows you to set up custom data feeds. Do you know if your method still works? Is there an alternate link on the stratus site to create an API code?


    1. As TREB moved to the new platform recently and they will shut down old stratus, IDX Management will become unavailable for the time being. It will be released on the new platform soon.


  10. Hey Ruth,

    Thanks for sharing this. I tried copying that code and adding the API that TREB provided. When I paste in in the TEXT form on a page and preview it, nothing happens. It comes out blank. What am I doing wrong?

    Thanks


    1. Hey Ruth, I actually got it to work now. I just dont understand why it is cut off after the point of interest search bar. Any idea?


      1. Hey,

        Double check your iframe dimensions. I have experienced a blank screen from some browsers. This is far from perfect I know.


  11. Thanks This is Great ,however this can be good for some times back , today the customer wants more than basic search , but still great free option


  12. Hi ruth, how can I use this API to display featured listings or my office listing as featured on my website?


  13. Hi Ruth, I am confused as to why a lot of realtor websites tell users that they have to log in in order to view MLS listings from the IDX feed. I’ve been researching this and i’ve come across two feeds IDX and VOW and from what I’ve read it is the VOW feed that requires user name, phone number, and email.

    Would you be able to further clarify this for me.
    Thank you for your time.


    1. Sorry Radu but I’m not able to give you any clarification. All I know about the IDX is in this post. I sat down with a client once and helped her figure this out for her site and I wrote this post outlining what we did.


    2. When a user logs in to a site to see properties, that means that they are using the VOW. It allows a bit more functionality and access to more data.

      When using the VOW, based on your agreement, the Brokerage is “responsible” for the person signing up.


  14. Hi Ruth,
    I’m building my website on localhost until I have enough to make it public. Do you think I’d be able to access the IDX via the localhost? If I could, how would I go about it?
    Many thanks.


  15. Hi Ruth.

    Thank you for the great information.
    So, would you happen to know how I can set this up for Alberta Real estate (Calgary specifically)?

    Thank you!

    Steve


  16. Amir, you need login credentials from the Board to access any data.

    We have work with the DDF. One implementation is here: http://www.commnet.ca. We integrate both MLS and exclusive listings in our search.

    We used a number of plugins for DDF on on WordPress. I can honestly tell you… what a mess! Especially the “best one”. The developer admitted after so many back and forth over email: “it doesn’t work”. They haven’t managed to get anything over 5000 listings to work.

    Therefore we turned back to the IDX for simpler client solutions.

    Otherwise, you will need to lock up with a provider that charges a setup fee and a monthly fee.

    For most of you, it is not worth your time effort and money to go outside of the basic sites. My advice is to spend money on customizing a templated website instead. Best of luck!


  17. Thank You Ruth!

    I followed the straigtforward instruction and got the page up.

    Do you know how this differs from the IDX provided by Real Web Solutions? They look like they have more customization and presentation of the results. Thanks.

    Much appreciated,
    Nazaar


    1. It is the same data. The only thing different is the “presentation”.
      The TREB one line code doesn’t leave much to our imagination. It is simple. You can just change the data and the colors. The data is set as it comes from the listing.

      Real Estate Website providers tend to enhance the presentation of TREB data. You are able to enhance the listing with more data, more pictures, additional fields of data and make them appear ‘nicer and fuller’.


  18. Hi Ruth
    I did everything you said and it works, the only problem is; “the home page scrolls down automatically to search properties and map” which i put in the middle of the home page.
    How do i keep the home page start from top? Tnx


  19. Ruth, thanks so much for this great post. Do you use a plugin for Lilette’s “listings” page or does she does add new listings as regular wordpress posts?

    Thanks
    Mike


  20. thanks. This is a great article.
    I am wondering if one can get access to MLS without the approval of TREB. I heard about that an agreement is required to sign …


    1. That’s right. All boards have very strict rules about how you access and handle the data. Scraping or any other type of data capturing or storing is prohibited unless an agreement is signed. You will have to agree on how the data is displayed also.


      1. Does it mean, if someone design website on his/her own, MLS can be displayed on the webpage anyway, even though there is no agreement signed with TREB?


        1. If you are a Realtor, you already signed that agreement when you joined the Board. If you are sharing your data with a website provider, then the website provider will ask you to sign paperwork for them to pull your data and display it on your website. If you are building your own website, you can use the iframe option found under your TorontoMLS to display properties with no other agreement. I cant go through all the other available options but feel free to ask.


          1. thanks Sam. I got another question, there are a lot of idx wordpress plugins on market. If i am building my website using WordPress, can i just buy a plugin and apply to my website directly? Does it require any particular theme?
            Thanks


          2. There are many plugins and they should all work on your site independent of plugin, unless there is a plugin conflict. You should check if your board is available for the plugin. Many are US based and will not work in Canada.


    1. You may want to consider CREA’s DDF. As of last week, you can pull all the properties under DDF (130,000 properties across Canada) and display them on your website.

      You want something more specific than the Toronto Real Estate Board’s listings for your area. DDF, although it is not widespread yet, it offers you the best solution. Depending on your website, you can purchase a plugin to display properties on your site (example: http://www.thehomesellers.ca uses a plugin and displays 6500 properties in Ontario) or you will need to find a web developer to build something more specific for you. Alternately, you can sign up with one of them real estate website providers and save you a headache.


  21. Hi there,
    The website you reference above for Lilette Wiens – is that a WordPress premium or business site?


    1. and what is the theme as well, if you don’t mind.. thanks!


  22. Great tip. thank you!
    Do you know if it is possible to have the idx automatically show the results pane of a specific location on page load?
    For example, if someone were to visit your “Property Search” page, I want the iframe to automatically show the image that you have up there (Results pane is loaded with 33 results) without needing the user to actually search?


  23. Has anyone had a message appear saying the API key is not activated or was granted for a different domain? I have recently changed web hosts, but my API key remains the same from TREB and the old site has been removed. Ideas?


  24. I’ve worked on a WordPress plugin that does an actual integration with the Toronto Real Estate Board (TREB).

    The plugin:

    – downloads property information
    – downloads images and stores them locally
    – links the images to the properties
    – creates different sizes for each image
    – schedules an import of new properties each day
    – checks whether or not the properties that are there are expired and marks them that way if they are

    I have a test site here where I also integrate it with a theme and Google Maps, but that feature is for a later version of the publicly released one. You can contact me on my site if you’re interested in any custom work on top of it or integration – otherwise the plugin as is is a free download.

    Here is the demo: http://www.moeloubani.com/dev/bruno/properties-search-results/

    Here is the download: http://www.moeloubani.com/new-version-of-treb-wordpress-plugin/


  25. Thank you for this!
    How do we get it to show only sold property, just like other sites are doing now ? (For example HouseSigma or MongoHouse , both of these even have the final sold price as well)?

    Would we add some extra code into the example “iframe” code you discussed in your awesome post?

    Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *