Explore Documentation

API Integration

We've compiled a short list of code examples integrating with v3 of the Estated API. Note that you will need to enter your API key for the token parameter.

PHP

This PHP example was built using version 7.1.16.

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "https://api.estated.com/property/v3?token=YourAPIKeyGoesHere&fips=06037&apn=4328031029");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$properties = curl_exec($ch);

echo $properties;

Python

This python example is using version 2.7.10.

import requests

response = requests.get('https://api.estated.com/property/v3?token=YourAPIKeyGoesHere&conjoined_address=220%20S%20Rodeo%20Drive,%20Beverly%20Hills,%20CA')

print(response.content)

Java

This java example was built using Java SE Development Kit 11.

import java.net.URL;
import java.io.IOException;
import java.io.OutputStream;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;

public class EstatedApiIntegration {

    public static void main(String[] args) throws IOException {
        getProperties();
    }

    private static void getProperties() throws IOException {
        URL obj = new URL("https://api.estated.com/property/v3?token=YourAPIKeyGoesHere&address=1716%20S%20Heritage%20Cir&city=Anaheim&state=Ca");
        HttpURLConnection con = (HttpURLConnection) obj.openConnection();
        con.setRequestMethod("GET");

        if (con.getResponseCode() == HttpURLConnection.HTTP_OK) {
            BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));

            String line;
            StringBuffer response = new StringBuffer();

            while ((line = in.readLine()) != null) {
                response.append(line);
            }

            in.close();

            System.out.println(response.toString());
        } else {
            System.out.println("GET request failed.");
        }
    }
}

C#

The following example is a .NET core console application.

using System;
using System.Net.Http;
using System.Threading.Tasks;

namespace EstatedApiIntegration
{
    class Program
    {
        private static readonly HttpClient client = new HttpClient();

        static void Main(string[] args)
        {
            GetProperties().Wait();
        }

        private static async Task GetProperties()
        {
            var stringTask = client.GetStringAsync("https://api.estated.com/property/v3?token=YourAPIKeyGoesHere&address=1716%20S%20Heritage%20Cir&city=Anaheim&state=Ca");
            var properties = await stringTask;
            Console.Write(properties);
        }
    }
}