Property Data API v4 Documentation
Integration Examples
We've compiled a short list of code examples integrating with v4 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://apis.estated.com/v4/property?token=YOUR_TOKEN_HERE&fips=06037&apn=4328031029");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$properties = curl_exec($ch);
echo $properties;
Python
This python example is using version 3.7.0.
import requests
response = requests.get('https://apis.estated.com/v4/property?token=YOUR_TOKEN_HERE&combined_address=220 S Rodeo Drive, Beverly Hills, CA')
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://apis.estated.com/v4/property?token=YOUR_TOKEN_HERE&street_address=1716 S Heritage Cir&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://apis.estated.com/v4/property?token=YOUR_TOKEN_HERE&street_address=1716 S Heritage Cir&city=Anaheim&state=Ca");
var properties = await stringTask;
Console.Write(properties);
}
}
}