Getting started with the Daft.ie API

What is the Daft API?

The Daft API is a service that allows developers like you to build tools and websites powered by Daft.ie. You can use our data to create an estate agent website, statistics about the Irish property market, a new property search tool, or anything else you can dream up.

How do I use the Daft API?

To use the Daft API, you're going to need a few things:

  1. An API key - a unique identifier that links you with your Daft.ie account.
  2. A programming environment capable of using the SOAP protocol. Most major programming languages support SOAP, including PHP, Perl, ASP, Java and Python.

Can I see an example?

Sure! Here's a quick example using PHP5. It uses the areas request to fetch a list of counties in Ireland.

<?php
    /**
     * This example will produce a list of the counties in Ireland.
     */
 
    $DaftAPI = new SoapClient("http://api.daft.ie/v2/wsdl.xml");
 
    $parameters = array(
        'api_key'       =>  "4039260_invalid_example_key_87b7c7c267fa"
        , 'area_type'   =>  "county"
    );
 
    $response = $DaftAPI->areas($parameters);
 
    foreach($response->areas as $county)
    {
        print $county->name . "<br />\n";
    }
?>
 

If PHP5 isn't your language of choice, we also have sample code for other languages, including .NET

What else can the Daft API do?

Here's a quick list of commands the Daft API supports:

Where can I learn more?

Much more information is available from the full documentation and reference.

Where can I get help?

Contact us at supportdesk@daft.ie and we'll be happy to help!