searchads
Spanish real estate listings, property search, and market data across Spain.
Authorization
RapidApiKey In: header
Query Parameters
Get the Location from /location-suggestion endpoint.
Get the longitude from /location-suggestion endpoint.
Get the latitude from /location-suggestion endpoint.
Page number for pagination
Number of results per page (default: 30)
Type of transaction: BUY or RENT
"BUY" | "RENT"Type of property: HOMES, GARAGES, LAND, etc.
"HOMES" | "GARAGES" | "LAND" | "PREMISES" | "OFFICE" | "BOX_ROOM" | "BUILDING"Filter for new construction properties (true/false)
Sort order: true for descending, false for ascending
Sort criteria: RATING (default), LATEST (newest first), PRICE, SURFACE (area), etc.
"RATING" | "LATEST" | "PRICE" | "SURFACE" | "PRICE_PER_AREA" | "ONLINE_GUIDED_TOUR"Property condition: ALMOST_NEW, VERY_GOOD, GOOD, FOR_RENOVATION, REFURBISHED (comma-separated)
Filter by listing age: INDIFFERENT, TWO_DAYS, ONE_WEEK, ONE_MONTH
"INDIFFERENT" | "TWO_DAYS" | "ONE_WEEK" | "ONE_MONTH"Specific types of homes (only for HOMES): HOUSE_CHALET, RURAL_PROPERTY, DUPLEX, etc. (comma-separated)
Minimum price in euros
Maximum price in euros
Minimum property size in square meters
Maximum property size in square meters
Minimum number of rooms (bedrooms)
Minimum number of bathrooms
Header Parameters
"fotocasa3.p.rapidapi.com"Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/searchads?combinedLocations=724%2C14%2C28%2C173%2C0%2C28079%2C0%2C0%2C0&longitude=-3.68624&latitude=40.4096&pageNumber=1&transactionType=BUY&propertyType=HOMES&sortType=RATING&publicationDate=INDIFFERENT" \ -H "X-RapidAPI-Host: fotocasa3.p.rapidapi.com"{
"success": true,
"data": null
}{
"success": false,
"message": "Invalid payload provided. Please ensure: 1) 'Content-Type: application/json' is included in your request headers 2) Request body contains valid JSON data.",
"error": {
"issues": [
{
"code": "too_small",
"minimum": 1,
"type": "array",
"inclusive": true,
"exact": false,
"message": "Array must contain at least 1 element(s)",
"path": [
"urls"
]
}
],
"name": "ZodError"
}
}{
"success": false,
"message": "Internal server error"
}