Property Search
/api/yaencontre/search
Search sale, rental, new construction and transfer listings by location, agency, price, rooms, or map bounds
Scrappa is an independent Yaencontre API for Spanish property data: search sale, rental, vacation rental, new construction and transfer listings, fetch full listing detail with photos, videos and tours, scope by agency, and autocomplete locations and agencies. Get structured JSON for Spain without maintaining your own Yaencontre scraper. Scrappa is not affiliated with or endorsed by Yaencontre.
Try it now
Use the first endpoint in this API family with a Scrappa API key. Every account includes 500 free monthly credits, so you can validate the response shape before buying credits.
curl -X GET "https://scrappa.co/api/yaencontre/search?operation=BUY&family=FLAT&location=madrid&page_size=2" \
-H "Accept: application/json" \
-H "X-API-KEY: YOUR_API_KEY"
{
"success": true,
"data": {
"total_items": 17912,
"num_pages": 896,
"current_page": 1,
"title": "17.912 Pisos y viviendas en venta en Madrid",
"items": [
{
"reference": "66504-112724772",
"title": "Piso en venta en Arganzuela en Madrid",
"price": 549000,
"square_meter_price": 5228.57,
"area": 105,
"rooms": 2,
"bathrooms": 2,
"family": "FLAT",
"operation": "BUY",
"available": true,
"advertiser_type": "agency",
"energy_certificate_rating": "D",
"address": {
"qualifiedName": "Palos de Moguer, Arganzuela, Madrid",
"geoLocation": { "lat": 40.4083461, "lon": -3.6947271 }
},
"images": [
{
"slug": "66504/66504-57645603.jpg",
"widths": [
"https://media.yaencontre.com/img/photo/380/66504/66504-57645603.webp",
"https://media.yaencontre.com/img/photo/630/66504/66504-57645603.webp",
"https://media.yaencontre.com/img/photo/1024/66504/66504-57645603.webp"
]
}
]
}
]
},
"meta": {
"duration_ms": 612,
"upstream_family": "search",
"pagination": {
"page": 1,
"page_size": 50,
"total": 17912,
"total_pages": 359,
"has_more": true
}
}
}
Structured data for real applications. Here are some ideas.
Track asking prices, new supply and days on market for a city, district or drawn map area using the same search call that powers your own portal.
Resolve an agency by name with autocomplete, then read its active stock and profile from one search call without scraping the agency website.
Feed listing photos at three widths, videos, 360 tours and 3D tours into a property portal or CRM without downloading the image files yourself.
Follow new construction and transfer listings with the dedicated property types and read transfer price, yield and contract termination terms that a plain price read would miss.
Build comparables from size, rooms, bathrooms, energy certificate, square meter price and coordinates on every returned card.
Autocomplete municipalities, neighbourhoods, agencies, points of interest and public transport, then scope a search with a lat_min/lat_max/lon_min/lon_max box.
Yaencontre scraper API
The Yaencontre API is built for proptech teams, investors, analysts, and agencies that need Spanish property data in their own tools. Search sale, rental, new construction and transfer stock by location, agency, rooms, rental type, or a map box, then pull the full listing with price, size, energy certificate, features, coordinates, agency profile, photos, videos and tours. One search call scoped to an agency returns that agency stock and its profile together, so an agency page costs a single request.
Query nine property types across three operations: sale, rental, and transfer.
Filter by price on a purchase, by rooms and bathrooms, by rental type on a rental, and by map bounds that provably narrow the result set.
Get listing detail with energy certificate, features, floorplans, photos at three widths, videos, 360 and 3D tours.
Separate agency and private sellers from the card payload without a second request.
Read transfer price, yield, and contract termination terms for business transfers.
Autocomplete municipalities, neighbourhoods, agencies, points of interest, and public transport in one call.
Test the Yaencontre API with 500 free monthly Scrappa credits before scaling production traffic.
Search by operation and property type, then scope geography with a location token from autocomplete or with a lat_min/lat_max/lon_min/lon_max box. Each card carries price, square meter price, size, rooms, bathrooms, energy certificate, coordinates, advertiser type, agency profile, and photo URLs at three widths.
Open Yaencontre Search API docsLook up an agency by name with autocomplete to get its agency id, then pass real_estate_agency_id to search. The response returns the agency active stock and the agency profile — name, business address, logo slug, and commercial id — in a single request.
Open Yaencontre Autocomplete API docsPass a reference to get all thirty listing fields including the description, energy certificate, features, locations, mortgage estimate, photos, floorplans, videos, and 360 and 3D tours, plus a comparable set from the related listings endpoint.
Open Yaencontre Listing API docsEverything you need in one API.
/api/yaencontre/search
Search sale, rental, new construction and transfer listings by location, agency, price, rooms, or map bounds
/api/yaencontre/listing
Get the full listing record with photos, videos, tours, energy certificate, and agency profile
/api/yaencontre/listing/related
Get comparable listings for a reference
/api/yaencontre/autocomplete
Look up municipalities, neighbourhoods, agencies, points of interest, and public transport
/api/yaencontre/filters
Get the live facet groups and price bands for an operation and property type
See how Scrappa compares to the official API.
| Feature | Scrappa | Manual Yaencontre scraping |
|---|---|---|
| Search coverage | Sale, rent, new construction, transfers | One endpoint at a time |
| Agency pages | Stock and profile in one call | Separate scraper per agency |
| Listing fields | 30 typed fields | HTML parsing |
| Photos and tours | Three widths plus videos and tours | Manual download |
| Authentication | API key only | Account and cookies |
| Price per 1k requests | $0.20 | Engineering time |
| Free tier | 500 credits/month | None |
| Setup time | Minutes | Weeks |
Nine property types (FLAT, HOUSE, GARAGE, LAND, NEW_CONSTRUCTION, OFFICE, HOME, BUILDING, BUSINESS) across three operations (BUY, RENT, TRANSFER). NEW_CONSTRUCTION covers obra nueva and HOME covers vacation rentals: a HOME rental returns both long-term and seasonal stock unless rental_type narrows it to one. BUSINESS is a transfer-only typology and is rejected client-side when paired with a non-transfer operation. Price bounds apply to operation=BUY only.
No. Pass real_estate_agency_id to the search endpoint and the response contains that agency stock plus the agency profile — name, business address, logo, and commercial id — in one request. Agency ids come from the autocomplete agencies bucket.
Each image comes back as a slug plus three ready-to-use URLs at 380, 630, and 1024 pixel widths in WebP, with a fallback URL to the original slug. Nothing is downloaded for you, so one API call covers the listing and its media.
Yes. Send lat_min, lat_max, lon_min, and lon_max together and the search returns only listings inside that box. It is a real filter: a wide Madrid box returns tens of thousands of listings while a small box returns dozens. Page size is capped at 50 and page numbers are 1-based.
Just a Scrappa API key passed as an X-API-KEY header. No Yaencontre account, no partner agreement, no session handling.
Yes. Every Scrappa account includes 500 free credits per month with no credit card required, so you can test all five Yaencontre endpoints before committing to paid usage.