Get Property Comparable Homes
curl --request GET \
--url https://us-property-data.p.rapidapi.com/api/v1/property/comparable-homes \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://us-property-data.p.rapidapi.com/api/v1/property/comparable-homes"
headers = {"x-rapidapi-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-rapidapi-key': '<api-key>'}};
fetch('https://us-property-data.p.rapidapi.com/api/v1/property/comparable-homes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://us-property-data.p.rapidapi.com/api/v1/property/comparable-homes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-rapidapi-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://us-property-data.p.rapidapi.com/api/v1/property/comparable-homes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-rapidapi-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://us-property-data.p.rapidapi.com/api/v1/property/comparable-homes")
.header("x-rapidapi-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://us-property-data.p.rapidapi.com/api/v1/property/comparable-homes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-rapidapi-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"cost": 1,
"data": [
{
"miniCardPhotos": [
{
"url": "https://photos.zillowstatic.com/fp/78a290c2dff6e873d114c09c2395737d-p_c.jpg"
}
],
"price": 380000,
"currency": "USD",
"bedrooms": 3,
"bathrooms": 2,
"livingArea": 1470,
"livingAreaValue": 1470,
"livingAreaUnits": "Square Feet",
"livingAreaUnitsShort": "sqft",
"lotSize": 11761,
"lotAreaValue": 0.27,
"lotAreaUnits": "Acres",
"address": {
"streetAddress": "23 Parkview Avenue",
"city": "Meriden",
"state": "CT",
"zipcode": "06451"
},
"parentRegion": {
"name": "06451"
},
"formattedChip": {
"location": [
{
"fullValue": "23 Parkview Avenue"
}
]
},
"latitude": 41.54669,
"longitude": -72.8275,
"zpid": 57930472,
"homeStatus": "RECENTLY_SOLD",
"homeType": "SINGLE_FAMILY",
"hdpUrl": "/homedetails/23-Parkview-Ave-Meriden-CT-06451/57930472_zpid/",
"hdpTypeDimension": "RecentlySold",
"propertyTypeDimension": "Single Family",
"listingTypeDimension": "Unknown Listed By",
"listing_sub_type": {
"is_newHome": false,
"is_forAuction": false,
"is_bankOwned": false,
"is_foreclosure": false,
"is_FSBO": false,
"is_comingSoon": false,
"is_FSBA": false
},
"providerListingID": null,
"attributionInfo": {
"mlsId": "24134123",
"mlsName": null,
"providerLogo": "https://photos.zillowstatic.com/fp/d79c34cc3fb9c13a4cbe1437a108a1d7-zillow_web_48_23.jpg",
"agentName": "Michael G. Thompson",
"agentPhoneNumber": null,
"brokerName": "LPT Realty - IConn Team",
"brokerPhoneNumber": null,
"trueStatus": null
},
"isShowcaseListing": false,
"isPremierBuilder": false,
"state": "CT",
"newConstructionType": null
}
]
}{
"message": "Bad request"
}{
"message": "Invalid API key. Go to https://docs.rapidapi.com/docs/keys for more info."
}{
"message": "You are not subscribed to this API."
}{
"success": false,
"message": "Request failed with status 500: Internal Server Error",
"status_code": 500,
"cost": 0,
"explain": "Oops, it looks like there was an issue processing your request. Don't worry, you won't be charged for this request"
}Property
Get Property Comparable Homes
Get Property Comparable Homes
GET
/
api
/
v1
/
property
/
comparable-homes
Get Property Comparable Homes
curl --request GET \
--url https://us-property-data.p.rapidapi.com/api/v1/property/comparable-homes \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://us-property-data.p.rapidapi.com/api/v1/property/comparable-homes"
headers = {"x-rapidapi-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-rapidapi-key': '<api-key>'}};
fetch('https://us-property-data.p.rapidapi.com/api/v1/property/comparable-homes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://us-property-data.p.rapidapi.com/api/v1/property/comparable-homes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-rapidapi-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://us-property-data.p.rapidapi.com/api/v1/property/comparable-homes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-rapidapi-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://us-property-data.p.rapidapi.com/api/v1/property/comparable-homes")
.header("x-rapidapi-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://us-property-data.p.rapidapi.com/api/v1/property/comparable-homes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-rapidapi-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"cost": 1,
"data": [
{
"miniCardPhotos": [
{
"url": "https://photos.zillowstatic.com/fp/78a290c2dff6e873d114c09c2395737d-p_c.jpg"
}
],
"price": 380000,
"currency": "USD",
"bedrooms": 3,
"bathrooms": 2,
"livingArea": 1470,
"livingAreaValue": 1470,
"livingAreaUnits": "Square Feet",
"livingAreaUnitsShort": "sqft",
"lotSize": 11761,
"lotAreaValue": 0.27,
"lotAreaUnits": "Acres",
"address": {
"streetAddress": "23 Parkview Avenue",
"city": "Meriden",
"state": "CT",
"zipcode": "06451"
},
"parentRegion": {
"name": "06451"
},
"formattedChip": {
"location": [
{
"fullValue": "23 Parkview Avenue"
}
]
},
"latitude": 41.54669,
"longitude": -72.8275,
"zpid": 57930472,
"homeStatus": "RECENTLY_SOLD",
"homeType": "SINGLE_FAMILY",
"hdpUrl": "/homedetails/23-Parkview-Ave-Meriden-CT-06451/57930472_zpid/",
"hdpTypeDimension": "RecentlySold",
"propertyTypeDimension": "Single Family",
"listingTypeDimension": "Unknown Listed By",
"listing_sub_type": {
"is_newHome": false,
"is_forAuction": false,
"is_bankOwned": false,
"is_foreclosure": false,
"is_FSBO": false,
"is_comingSoon": false,
"is_FSBA": false
},
"providerListingID": null,
"attributionInfo": {
"mlsId": "24134123",
"mlsName": null,
"providerLogo": "https://photos.zillowstatic.com/fp/d79c34cc3fb9c13a4cbe1437a108a1d7-zillow_web_48_23.jpg",
"agentName": "Michael G. Thompson",
"agentPhoneNumber": null,
"brokerName": "LPT Realty - IConn Team",
"brokerPhoneNumber": null,
"trueStatus": null
},
"isShowcaseListing": false,
"isPremierBuilder": false,
"state": "CT",
"newConstructionType": null
}
]
}{
"message": "Bad request"
}{
"message": "Invalid API key. Go to https://docs.rapidapi.com/docs/keys for more info."
}{
"message": "You are not subscribed to this API."
}{
"success": false,
"message": "Request failed with status 500: Internal Server Error",
"status_code": 500,
"cost": 0,
"explain": "Oops, it looks like there was an issue processing your request. Don't worry, you won't be charged for this request"
}Authorizations
Rapid API Key
Query Parameters
Unique Zillow Property ID (ZPID) used to identify the property
Minimum string length:
1Pattern:
^\d+$Example:
"58916071"
⌘I