Skip to content

Field projection

A full property record has several hundred fields. If your code reads only a handful, list them in fields and the rest are dropped before the response is sent.

GET /v1/properties/29384412?fields=zpid,price,zestimate,address.city,priceHistory[0].price
{
"data": {
"zpid": "29384412",
"price": 648000,
"zestimate": 661300,
"address": { "city": "Austin" },
"priceHistory[0]": { "price": 648000 }
},
"request_id": "a4c7e219..."
}

Projection changes only the size of the response. The call costs the same number of credits.

How to write paths

Separate paths with commas. Spaces around them are ignored.

You write You get
price One top-level field
address.zipcode A nested field, kept inside its parent object
priceHistory The whole array
priceHistory[0].price One field from one array item

Paths keep the shape of the original record, so address.city comes back as { "address": { "city": ... } }. When you index into an array, the segment is used as written, so priceHistory[0].price comes back under a priceHistory[0] key, as in the example above.

Endpoints that accept it

Endpoint Notes
GET /v1/properties/{zpid} Applied to the single record
GET /v1/properties/by-address Applied to the single record
GET /v1/properties/by-url Applied to the record, or to each unit when building units are returned

Sub-resources such as /photos, /schools, and /zestimate already return a narrow slice, so they ignore fields.

Missing paths

A path that doesn’t exist on the record is skipped without an error. A typo therefore looks the same as a field with no value. Try new paths against a known zpid before you depend on them.