Skip to content

Markets

The Markets endpoints provide aggregate market data at the ZIP code level, including current statistics and historical trends.

GET /v1/markets/{zipCode}

Returns current market statistics for a ZIP code.

ParameterTypeDescription
zipCodestringFive-digit ZIP code
Terminal window
curl https://api.straply.com/v1/markets/90210 \
-H "Authorization: Bearer stp_live_YOUR_KEY"
{
"data": {
"zipCode": "90210",
"city": "Beverly Hills",
"state": "CA",
"snapshot": {
"date": "2026-03-09",
"medianListPrice": 3450000,
"medianSoldPrice": 3200000,
"activeListings": 142,
"newListings30d": 38,
"soldLast30d": 22,
"medianDaysOnMarket": 45,
"averagePricePerSqft": 1180,
"inventoryMonths": 6.5,
"listToSoldRatio": 0.93
}
}
}
FieldTypeDescription
medianListPriceintegerMedian active listing price
medianSoldPriceintegerMedian sold price in last 30 days
activeListingsintegerTotal active listings
newListings30dintegerNew listings in last 30 days
soldLast30dintegerProperties sold in last 30 days
medianDaysOnMarketintegerMedian days on market for sold properties
averagePricePerSqftintegerAverage price per square foot
inventoryMonthsnumberMonths of inventory (active / sold per month)
listToSoldRationumberRatio of sold price to list price

GET /v1/markets/{zipCode}/history

Returns monthly market statistics over time for trend analysis.

ParameterTypeDescription
zipCodestringFive-digit ZIP code
ParameterTypeDefaultDescription
monthsinteger12Number of months of history (max 60)
Terminal window
curl "https://api.straply.com/v1/markets/90210/history?months=6" \
-H "Authorization: Bearer stp_live_YOUR_KEY"
{
"data": {
"zipCode": "90210",
"city": "Beverly Hills",
"state": "CA",
"history": [
{
"month": "2026-03",
"medianListPrice": 3450000,
"medianSoldPrice": 3200000,
"activeListings": 142,
"soldCount": 22,
"medianDaysOnMarket": 45,
"averagePricePerSqft": 1180
},
{
"month": "2026-02",
"medianListPrice": 3380000,
"medianSoldPrice": 3150000,
"activeListings": 135,
"soldCount": 19,
"medianDaysOnMarket": 48,
"averagePricePerSqft": 1150
},
{
"month": "2026-01",
"medianListPrice": 3320000,
"medianSoldPrice": 3100000,
"activeListings": 118,
"soldCount": 15,
"medianDaysOnMarket": 52,
"averagePricePerSqft": 1120
}
]
}
}