Get Property Environmental Risk
curl --request GET \
--url https://us-red-property-data.p.rapidapi.com/api/v1/property/environmental-risk \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://us-red-property-data.p.rapidapi.com/api/v1/property/environmental-risk"
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/environmental-risk', 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/environmental-risk",
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/environmental-risk"
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/environmental-risk")
.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/environmental-risk")
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": {
"flood": {
"flood_factor_severity": "minimal",
"flood_trend": "This property’s flood risk is not changing."
},
"wildfire": {
"fire_factor_severity": "minimal",
"fire_trend": "This property’s wildfire risk is not changing."
},
"heat": {
"heat_factor_severity": "Major",
"heat_trend": "6 days above 86°F this year"
},
"wind": {
"wind_factor_severity": "Minimal",
"wind_trend": "Minimal risk of severe winds over next 30 years"
},
"air": {
"air_factor_severity": "Moderate",
"air_trend": "Risk of poor air quality is increasing"
}
}
}{
"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 Environmental Risk
Get Property Environmental Risk
GET
/
api
/
v1
/
property
/
environmental-risk
Get Property Environmental Risk
curl --request GET \
--url https://us-red-property-data.p.rapidapi.com/api/v1/property/environmental-risk \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://us-red-property-data.p.rapidapi.com/api/v1/property/environmental-risk"
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/environmental-risk', 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/environmental-risk",
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/environmental-risk"
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/environmental-risk")
.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/environmental-risk")
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": {
"flood": {
"flood_factor_severity": "minimal",
"flood_trend": "This property’s flood risk is not changing."
},
"wildfire": {
"fire_factor_severity": "minimal",
"fire_trend": "This property’s wildfire risk is not changing."
},
"heat": {
"heat_factor_severity": "Major",
"heat_trend": "6 days above 86°F this year"
},
"wind": {
"wind_factor_severity": "Minimal",
"wind_trend": "Minimal risk of severe winds over next 30 years"
},
"air": {
"air_factor_severity": "Moderate",
"air_trend": "Risk of poor air quality is increasing"
}
}
}{
"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