Get Agent For Rent
curl --request GET \
--url https://us-property-data.p.rapidapi.com/api/v1/agent/for-rent \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://us-property-data.p.rapidapi.com/api/v1/agent/for-rent"
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-rent', 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-rent",
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-rent"
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-rent")
.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-rent")
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": 10,
"has_more": true,
"data": [
{
"zpid": 119094071,
"home_type": "apartment",
"address": {
"line1": "8 W Monroe St APT 2005",
"line2": "Chicago, IL 60603",
"city": "Chicago",
"stateOrProvince": "IL",
"postalCode": "60603"
},
"bedrooms": 1,
"bathrooms": 1,
"openHouses": "",
"hasOpenHouse": false,
"primary_photo_url": "https://photos.zillowstatic.com/fp/eded647dd7801f81c1486606548f117e-a_a.jpg",
"price": 2400,
"price_currency": "usd",
"status": "forRent",
"latitude": 41.88095,
"longitude": -87.62815,
"brokerage_name": "Americorp",
"home_marketing_status": "active",
"home_marketing_type": "forRent",
"has_vr_model": false,
"listing_url": "/homedetails/8-W-Monroe-St-APT-2005-Chicago-IL-60603/119094071_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 Rent
Get Agent For Rent
GET
/
api
/
v1
/
agent
/
for-rent
Get Agent For Rent
curl --request GET \
--url https://us-property-data.p.rapidapi.com/api/v1/agent/for-rent \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://us-property-data.p.rapidapi.com/api/v1/agent/for-rent"
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-rent', 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-rent",
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-rent"
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-rent")
.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-rent")
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": 10,
"has_more": true,
"data": [
{
"zpid": 119094071,
"home_type": "apartment",
"address": {
"line1": "8 W Monroe St APT 2005",
"line2": "Chicago, IL 60603",
"city": "Chicago",
"stateOrProvince": "IL",
"postalCode": "60603"
},
"bedrooms": 1,
"bathrooms": 1,
"openHouses": "",
"hasOpenHouse": false,
"primary_photo_url": "https://photos.zillowstatic.com/fp/eded647dd7801f81c1486606548f117e-a_a.jpg",
"price": 2400,
"price_currency": "usd",
"status": "forRent",
"latitude": 41.88095,
"longitude": -87.62815,
"brokerage_name": "Americorp",
"home_marketing_status": "active",
"home_marketing_type": "forRent",
"has_vr_model": false,
"listing_url": "/homedetails/8-W-Monroe-St-APT-2005-Chicago-IL-60603/119094071_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 rental listings
Example:
true
⌘I