Setup: Team plan. Pulling North Orange County (County FIPS 06059) segments with POST /v1/properties using free counts (Purchase=0). Most criteria work great. One question and one clarification.
Question: what is the correct Criteria to filter recent evictions?
inProbateProperty works exactly as expected and returns a count:
curl -s -X POST 'https://api.propertyradar.com/v1/properties?Purchase=0&Limit=1' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"Criteria":[{"name":"County","value":["06059"]},{"name":"inProbateProperty","value":["1"]}]}'
# -> 200 {"results":[],"totalCost":0,"resultCount":0,"quantityFreeRemaining":13597,"totalResultCount":316}
But hasRecentEviction returns HTTP 200 with an empty envelope and no count fields at all (it is not a 400 “Unexpected Criterion”, and not an upgrade error):
curl -s -X POST 'https://api.propertyradar.com/v1/properties?Purchase=0&Limit=1' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"Criteria":[{"name":"County","value":["06059"]},{"name":"hasRecentEviction","value":["1"]}]}'
# -> 200 {"results":[]}
For reference, a truly unknown field name returns a clean 400:
# {"name":"fooBarBaz","value":["1"]} -> 400 {"error":"Unexpected Criterion: fooBarBaz #1"}
What is the correct Criteria field name and value format to filter for properties with a recent eviction? Or is eviction only available as a Response field, not a filterable Criterion?
Clarification (no action needed, just confirming your note)
You mentioned the “cannot be used by this user” errors come from putting Response fields into Criteria. That matches what we see:
# {"name":"isRecentSale","value":["1"]} -> "The param: isRecentSale cannot be used by this user" (feature not in plan)
# {"name":"isFreeAndClear","value":["1"]} -> "The param: isFreeAndClear cannot be used by this user"
# {"name":"SaleDate","value":["from: 2024-07-01"]} -> "The feature [Trustee Sale Tracking] is not included..."
We are already working around these (recent sales via LastTransferRecDate “from:”, equity via EquityPercent), and we do not need Trustee Sale Tracking. So the only open item is the eviction filter above.
Thanks!