Get Agent For Sale
curl --request GET \
--url https://us-property-data.p.rapidapi.com/api/v1/agent/for-sale \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://us-property-data.p.rapidapi.com/api/v1/agent/for-sale"
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/agent/for-sale', 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/agent/for-sale",
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/agent/for-sale"
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/agent/for-sale")
.header("x-rapidapi-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://us-property-data.p.rapidapi.com/api/v1/agent/for-sale")
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,
"total": 23,
"has_more": true,
"data": [
{
"zpid": 12619667,
"home_type": "singleFamily",
"address": {
"line1": "60 Beech Dr",
"line2": "Stafford, VA 22556",
"city": "Stafford",
"stateOrProvince": "VA",
"postalCode": "22556"
},
"bedrooms": 3,
"bathrooms": 2,
"openHouses": "",
"hasOpenHouse": false,
"primary_photo_url": "https://photos.zillowstatic.com/fp/b2f5474549ee4801bffb599dbbe653b0-a_a.jpg",
"price": 400000,
"price_currency": "usd",
"status": "fsba",
"latitude": 38.49418,
"longitude": -77.54165,
"brokerage_name": "KW Metro Center",
"home_marketing_status": "active",
"home_marketing_type": "forSale",
"has_vr_model": false,
"listing_url": "/homedetails/60-Beech-Dr-Stafford-VA-22556/12619667_zpid/"
}
]
}{
"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"
}Agent
Get Agent For Sale
Get Agent For Sale
GET
/
api
/
v1
/
agent
/
for-sale
Get Agent For Sale
curl --request GET \
--url https://us-property-data.p.rapidapi.com/api/v1/agent/for-sale \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://us-property-data.p.rapidapi.com/api/v1/agent/for-sale"
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/agent/for-sale', 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/agent/for-sale",
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/agent/for-sale"
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/agent/for-sale")
.header("x-rapidapi-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://us-property-data.p.rapidapi.com/api/v1/agent/for-sale")
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,
"total": 23,
"has_more": true,
"data": [
{
"zpid": 12619667,
"home_type": "singleFamily",
"address": {
"line1": "60 Beech Dr",
"line2": "Stafford, VA 22556",
"city": "Stafford",
"stateOrProvince": "VA",
"postalCode": "22556"
},
"bedrooms": 3,
"bathrooms": 2,
"openHouses": "",
"hasOpenHouse": false,
"primary_photo_url": "https://photos.zillowstatic.com/fp/b2f5474549ee4801bffb599dbbe653b0-a_a.jpg",
"price": 400000,
"price_currency": "usd",
"status": "fsba",
"latitude": 38.49418,
"longitude": -77.54165,
"brokerage_name": "KW Metro Center",
"home_marketing_status": "active",
"home_marketing_type": "forSale",
"has_vr_model": false,
"listing_url": "/homedetails/60-Beech-Dr-Stafford-VA-22556/12619667_zpid/"
}
]
}{
"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
Agent unique ID (ZUID). You can retrieve this ZUID by using the agent screen name from the Get Agent Detail endpoint
Example:
"X1-ZUyy58njdzkphl_aqadk"
Page number for pagination
Example:
1
Indicates whether to include agent teams when retrieving agents for sale listings
Example:
true
⌘I