Get Property Nearby Rentals
curl --request GET \
--url https://us-red-property-data.p.rapidapi.com/api/v1/property/nearby-rentals \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://us-red-property-data.p.rapidapi.com/api/v1/property/nearby-rentals"
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-red-property-data.p.rapidapi.com/api/v1/property/nearby-rentals', 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-red-property-data.p.rapidapi.com/api/v1/property/nearby-rentals",
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-red-property-data.p.rapidapi.com/api/v1/property/nearby-rentals"
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-red-property-data.p.rapidapi.com/api/v1/property/nearby-rentals")
.header("x-rapidapi-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://us-red-property-data.p.rapidapi.com/api/v1/property/nearby-rentals")
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": [
{
"property_id": "2711305217",
"listing_id": "2984705321",
"primary": true,
"status": "for_rent",
"list_price": null,
"list_price_max": 4715,
"list_price_min": 1250,
"href": "https://www.realtor.com/rentals/details/7050-Hawthorn-Ave_Los-Angeles_CA_90028_M27113-05217",
"permalink": "7050-Hawthorn-Ave_Los-Angeles_CA_90028_M27113-05217",
"flags": {
"is_contingent": null,
"is_new_construction": null,
"is_pending": null,
"is_foreclosure": null,
"is_new_listing": false
},
"primary_photo": {
"href": "https://ar.rdcpix.com/8af0b20204dbcc93515790ef0cde77eac-f861532762s.jpg"
},
"description": {
"type": "apartment",
"baths": null,
"baths_full": null,
"baths_half": null,
"beds": null,
"sqft": null,
"baths_min": 1,
"baths_max": 4,
"beds_min": 0,
"beds_max": 4,
"sqft_min": 356,
"sqft_max": 1415
},
"location": {
"address": {
"city": "Los Angeles",
"country": "USA",
"line": "7050 Hawthorn Ave",
"state": "California",
"state_code": "CA",
"postal_code": "90028"
}
}
}
]
}{
"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 Nearby Rentals
Get Property Nearby Rentals
GET
/
api
/
v1
/
property
/
nearby-rentals
Get Property Nearby Rentals
curl --request GET \
--url https://us-red-property-data.p.rapidapi.com/api/v1/property/nearby-rentals \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://us-red-property-data.p.rapidapi.com/api/v1/property/nearby-rentals"
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-red-property-data.p.rapidapi.com/api/v1/property/nearby-rentals', 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-red-property-data.p.rapidapi.com/api/v1/property/nearby-rentals",
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-red-property-data.p.rapidapi.com/api/v1/property/nearby-rentals"
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-red-property-data.p.rapidapi.com/api/v1/property/nearby-rentals")
.header("x-rapidapi-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://us-red-property-data.p.rapidapi.com/api/v1/property/nearby-rentals")
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": [
{
"property_id": "2711305217",
"listing_id": "2984705321",
"primary": true,
"status": "for_rent",
"list_price": null,
"list_price_max": 4715,
"list_price_min": 1250,
"href": "https://www.realtor.com/rentals/details/7050-Hawthorn-Ave_Los-Angeles_CA_90028_M27113-05217",
"permalink": "7050-Hawthorn-Ave_Los-Angeles_CA_90028_M27113-05217",
"flags": {
"is_contingent": null,
"is_new_construction": null,
"is_pending": null,
"is_foreclosure": null,
"is_new_listing": false
},
"primary_photo": {
"href": "https://ar.rdcpix.com/8af0b20204dbcc93515790ef0cde77eac-f861532762s.jpg"
},
"description": {
"type": "apartment",
"baths": null,
"baths_full": null,
"baths_half": null,
"beds": null,
"sqft": null,
"baths_min": 1,
"baths_max": 4,
"beds_min": 0,
"beds_max": 4,
"sqft_min": 356,
"sqft_max": 1415
},
"location": {
"address": {
"city": "Los Angeles",
"country": "USA",
"line": "7050 Hawthorn Ave",
"state": "California",
"state_code": "CA",
"postal_code": "90028"
}
}
}
]
}{
"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
Property ID used to identify the property
Minimum string length:
1Pattern:
^\d+$Example:
"2503567184"
⌘I