How to Use AI Image Search to Filter Properties by Photo
Published on · Updated · 4 minutes read

Buyers do not shop by field values; they shop by feel. They want a white kitchen, an open-concept living room, a finished basement, or a backyard pool- things that live in photos, not in structured filters. Traditional search cannot see any of that, which is why users scroll endlessly through listings that technically match but visually miss. AI image search fixes it by letting people filter properties on what the photos actually show.
This tutorial shows how to use AI image search to filter properties by photo using Repliers and the imageSearchItems feature on the /listings endpoint. You will rank listings by how well their photos match a visual query, in words or by example image. For the broader search experience this fits into, see Top 5 Real Estate APIs for AI-Powered Property Search.
Key Takeaways
- AI image search filters listings by what their photos show (a white kitchen, a pool, hardwood floors), which structured filters cannot capture.
- Repliers supports it through imageSearchItems on the /listings endpoint, accepting text descriptions or example images.
- Each search item takes a boost weight, so you can prioritize the visual features that matter most and combine several.
- Results come back ranked by visual relevance, so the closest photo matches surface first.
What You Will Build
- A visual search that ranks listings by photo content
- Support for text-based visual queries like “modern white kitchen”
- Optional weighting to prioritize certain features
What You Will Need
- A Repliers API key
- The /listings endpoint (POST, with an imageSearchItems body)
- Basic fetch usage
How Image Search Items Work
| Field | Purpose |
| type | text for a description, or image for an example photo |
| value / url | The text query, or the image URL |
| boost | A weight to prioritize this item relative to others |
Step 1: Run a Text-Based Visual Search
Send a POST to /listings with an imageSearchItems array. Each item describes a visual feature. Repliers ranks listings by how well their photos match.
async function imageSearch(items, filters = {}) {
const res = await fetch("https://api.repliers.io/listings", {
method: "POST",
headers: {
"REPLIERS-API-KEY": process.env.REPLIERS_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({ ...filters, imageSearchItems: items }),
});
const data = await res.json();
return data.listings || [];
}
// "Show me homes with a modern white kitchen"
const results = await imageSearch([
{ type: "text", value: "modern white kitchen", boost: 1 },
]);
The returned listings are ordered by visual relevance, so the strongest photo matches come first.
Step 2: Combine and Weight Multiple Features
Real preferences are rarely a single feature. Pass several items and use boost to signal which matter most, for example, a pool weighted higher than a fireplace.
const results = await imageSearch([
{ type: "text", value: "backyard swimming pool", boost: 10 },
{ type: "text", value: "hardwood floors", boost: 3 },
{ type: "text", value: "fireplace", boost: 1 },
]);
Higher boost values push a feature’s influence up in the ranking, so you can tune results to match how strongly a user cares about each thing.
Step 3: Combine Visual and Structured Filters
Image search is strongest layered on top of normal filters. Narrow to the right city, price, and beds first, then rank what remains by photo content.
const results = await imageSearch(
[{ type: "text", value: "bright open-concept living room", boost: 5 }],
{ city: "Austin", type: "sale", minBeds: 3, maxPrice: 900000 }
);
This gives users the best of both: hard constraints they need, and a visual sort on top of them.
Add Visual Search to Your App
You can build and test image search against sample data, then move to production once your MLS authorization is in place.
- Get an API key: https://auth.repliers.com/en/signup
- Schedule a demo: https://repliers.com/schedule-call/
Step 4: Search by Example Image
Beyond text, you can pass an example image so users can say “more like this.” Use an image type item with a URL, and the search ranks listings whose photos resemble it.
const results = await imageSearch([
{ type: "image", url: "https://example.com/dream-kitchen.jpg", boost: 10 },
]);
Combined with natural language search, this makes for a search that understands both words and visuals. For that pairing, see How to Add Natural Language Property Search to Your App.
Frequently Asked Questions
How does AI image search for real estate work?
You send visual queries to Repliers’ /listings endpoint using an imageSearchItems array, either text descriptions like “white kitchen” or example image URLs. Repliers analyzes listing photos and returns results ranked by how closely the images match, so users can filter on visual features that structured fields do not capture.
Can I search by an example photo instead of text?
Yes. Include an item with type: “image” and a URL pointing to the example photo. The search ranks listings whose photos most resemble it, which powers a “more like this” experience. You can mix text and image items in the same query.
Can I combine image search with normal filters?
Yes, and you should. Apply standard filters (city, price, beds) to enforce hard requirements, then use imageSearchItems to rank the matching listings by visual relevance. That way users get properties that meet their criteria and look the way they want.
The Bottom Line
People choose homes with their eyes, and AI image search finally lets your app search the way they actually think, by what the photos show rather than what a dropdown allows. With Repliers’ imageSearchItems, a text phrase or an example image becomes a ranked, visually relevant result set, layered cleanly on top of your existing filters. To add AI image search to your app, visit www.repliers.com to get an API key or schedule a demo.
Related articles
Ready to get started?
Get an API key and start testing within minutes — no credit card required.














