Quick start
Two fields are required: the address and the number of units.
Everything else falls back to PriceDNA’s figures for the
area, and the response marks which values you sent.
Authenticate with your key in the
X-PriceDNA-API-Key header.
curl -X POST https://api.pricedna.co/v1/property \
-H "X-PriceDNA-API-Key: $PRICEDNA_KEY" \
-H "Content-Type: application/json" \
-d '{
"address": "123 Union St S, Concord, NC 28025",
"number_of_units": 5,
"asking_price": 849000,
"monthly_rent": 1524,
"goal": { "metric": "cash_velocity", "target": 200 },
"mortgage_interest_rate": 7,
"vacancy_rate": 5
}'
const res = await fetch("https://api.pricedna.co/v1/property", {
method: "POST",
headers: {
"X-PriceDNA-API-Key": process.env.PRICEDNA_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
address: "123 Union St S, Concord, NC 28025",
number_of_units: 5,
asking_price: 849000,
monthly_rent: 1524,
goal: { metric: "cash_velocity", target: 200 },
mortgage_interest_rate: 7,
vacancy_rate: 5,
}),
});
const report = await res.json();
console.log(report.estimate.price); // 786000
import os, requests
report = requests.post(
"https://api.pricedna.co/v1/property",
headers={"X-PriceDNA-API-Key": os.environ["PRICEDNA_KEY"]},
json={
"address": "123 Union St S, Concord, NC 28025",
"number_of_units": 5,
"asking_price": 849000,
"monthly_rent": 1524,
"goal": { "metric": "cash_velocity", "target": 200 },
"mortgage_interest_rate": 7,
"vacancy_rate": 5,
},
).json()
print(report["estimate"]["price"]) # 786000