Legacy API · Comparables & Valuation
Search comparables (v2)
https://api.casafari.com/api/v2/comparables/searchLegacy API (api.casafari.com). A route of the existing API for Casafari clients with a contract, not of the platform. On the platform: POST /v1/comparables/search.
En la Legacy API en https://api.casafari.com (clientes con contrato): envíe Authorization: Bearer $CASAFARI_TOKEN; consulte cómo obtener un token. Nuevos usuarios: la API REST de la plataforma, claves de API de plataforma.
Description
Devuelve propiedades comparables según los parámetros indicados.
Cuerpo de la solicitud
Content type application/json. Opcional. Tipo: object.
comparables_countintegerobligatoriocoordinatesobjecttarget_point.coordinates field instead.2 propiedades
latitudenumberobligatoriolongitudenumberobligatoriotarget_pointobjectlocation_boundary.circle.3 propiedades
coordinatesobject2 propiedades
latitudenumberobligatoriolongitudenumberobligatorioaddressstringcadastral_referenceobject4 propiedades
country_codestringobligatorioEScadastral_referencestringobligatorioprovincestringmunicipalitystringdistancenumbertarget_point solicitado hasta las propiedades comparables. Este campo está obsoleto y se eliminará en la próxima actualización importante. Por favor, utilice el campo location_boundary.circle.location_boundaryobjectobligatorio2 propiedades
polygonobject[]2 propiedades
latitudenumberobligatoriolongitudenumberobligatoriocircleobject2 propiedades
distancenumbertarget_point solicitado hasta los inmuebles.target_pointobjectobligatorio3 propiedades
coordinatesobject2 propiedades
latitudenumberobligatoriolongitudenumberobligatorioaddressstringcadastral_referenceobject4 propiedades
country_codestringobligatorioEScadastral_referencestringobligatorioprovincestringmunicipalitystringsold_or_rented_aftercadena (fecha)nullableYYYY-MM-DD). El valor predeterminado es hace 9 meses, contando desde hoy. Si se indica null, solo se considerarán inmuebles activos.operationstringobligatoriosale rentbusiness_typestringoperation field instead.sale rentcomparables_typestringcomparables_types field instead.40 valores permitidos
apartment studio duplex penthouse dachgeschosswohnung etagenwohnung erdgeschosswohnung country_house house palace townhouse villa country_estate chalet bungalow family_house reihenhaus reihenendhaus reihenmittelhaus einfamilienhaus zweifamilienhaus landwirtschaftliche_betriebe retail office industrial warehouse hotel other_commercial restaurant werkstatt plot urban_plot rural_plot room other garage parking apartment_building office_building mix_use_buildingcomparables_typesstring[]obligatorio40 valores permitidos
apartment studio duplex penthouse dachgeschosswohnung etagenwohnung erdgeschosswohnung country_house house palace townhouse villa country_estate chalet bungalow family_house reihenhaus reihenendhaus reihenmittelhaus einfamilienhaus zweifamilienhaus landwirtschaftliche_betriebe retail office industrial warehouse hotel other_commercial restaurant werkstatt plot urban_plot rural_plot room other garage parking apartment_building office_building mix_use_buildingproperty_typestringcomparables_types field instead.40 valores permitidos
apartment studio duplex penthouse dachgeschosswohnung etagenwohnung erdgeschosswohnung country_house house palace townhouse villa country_estate chalet bungalow family_house reihenhaus reihenendhaus reihenmittelhaus einfamilienhaus zweifamilienhaus landwirtschaftliche_betriebe retail office industrial warehouse hotel other_commercial restaurant werkstatt plot urban_plot rural_plot room other garage parking apartment_building office_building mix_use_buildingmin_priceintegermax_priceintegerconditionstringused, ruin, very-good, new, other.used ruin very-good new otherbedroomsintegerrooms).roomsintegerbedrooms).bathroomsintegerconstruction_yearintegertotal_areaintegerhotel, industrial, office, other_commercial, restaurant, retail, warehouse y werkstatt si no se proporciona target_point.cadastral_reference.plot_areaintegerrural_plot y urban_plot si no se proporciona target_point.cadastral_reference.floorstringfloors.no_floor ground middle topfloorsstring[]no_floor ground middle topfloor_numberinteger[]orientationstringexterior interiorviewstringviews en su lugar.water landscape city golf parkviewsstring[]water landscape city golf parkdirectionstringdirections en su lugar.north south east westdirectionsstring[]north south east westcharacteristicsobject3 propiedades
must_havestring[]balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuitynice_to_havestring[]balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuityexcludestring[]balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuityenergy_certificatestringenergy_ratings en su lugar.Unknown A+ A B C D E F G Henergy_certificatesstring[]energy_ratings en su lugar.Unknown A+ A B C D E F G Henergy_ratingsstring[]Unknown A+ A B C D E F G Hdays_on_market_fromintegerdays_on_market_tointegerwith_agenciesstring[]without_agenciesstring[]exclude_outliersbooleanEjemplo de solicitud
Solo marcadores de posición: reemplace el token y los valores por los suyos.
curl -X POST "https://api.casafari.com/api/v2/comparables/search" \
-H "Authorization: Bearer $CASAFARI_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"comparables_count": 20,
"location_boundary": {
"circle": {
"distance": 10,
"target_point": {
"coordinates": {
"latitude": 48.8727989,
"longitude": 2.3025047
}
}
}
},
"sold_or_rented_after": "2020-08-01",
"days_on_market_from": 10,
"days_on_market_to": 1000,
"operation": "sale",
"comparables_types": [
"apartment"
],
"bedrooms": 2,
"construction_year": 2010,
"total_area": 125,
"condition": "used",
"floors": [
"top"
],
"views": [
"city"
],
"directions": [
"west"
],
"characteristics": {
"must_have": [
"balcony",
"garage",
"parking"
],
"nice_to_have": [
"storage",
"terrace",
"furniture"
],
"exclude": [
"swimming_pool"
]
},
"energy_ratings": [
"A",
"B",
"C"
]
}'Respuestas
200 OK
Tipo: object.
Show the response shape (166 fields)
resultsobject[]obligatorio60 propiedades
property_idintegerobligatorioproperty_urlstringnullableprimary_listing_idintegerobligatoriotypestringobligatorio40 valores permitidos
apartment studio duplex penthouse dachgeschosswohnung etagenwohnung erdgeschosswohnung country_house house palace townhouse villa country_estate chalet bungalow family_house reihenhaus reihenendhaus reihenmittelhaus einfamilienhaus zweifamilienhaus landwirtschaftliche_betriebe retail office industrial warehouse hotel other_commercial restaurant werkstatt plot urban_plot rural_plot room other garage parking apartment_building office_building mix_use_buildingtype_groupstringobligatorioapartment house investment plot othercoordinatesobjectobligatorio2 propiedades
latitudenumberobligatoriolongitudenumberobligatoriolocationobjectobligatorio4 propiedades
location_idintegerobligatorioGET /v1/locations/search).namestringobligatorioadministrative_levelstringobligatoriozip_codesstring[]locations_structureobject[]obligatorio4 propiedades
location_idintegerobligatorioGET /v1/locations/search).namestringobligatorioadministrative_levelstringobligatoriozip_codesstring[]addressstringobligatoriozip_codestringobligatoriodistancenumbernullableconstruction_yearintegerobligatoriototal_areaintegerobligatorioliving_areaintegerobligatorioplot_areaintegerobligatorioterrace_areaintegerobligatoriobedroomsintegerobligatorioroomsintegerobligatoriobathroomsintegerobligatoriofloor_numberintegerobligatorioconditionstringobligatorioused, ruin, very-good, new, other.used ruin very-good new otherfeaturesobjectobligatorio7 propiedades
floorstringobligatoriono_floor ground middle toporientationstringobligatorioexterior interiorviewstringobligatorioviews en su lugar.water landscape city golf parkviewsstring[]obligatoriowater landscape city golf parkdirectionstringobligatoriodirections en su lugar.north south east westdirectionsstring[]obligatorionorth south east westcharacteristicsstring[]obligatoriobalcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuityoperationsstring[]obligatoriosale rentsale_statusstringobligatorioactive reserved hold sold nonesale_currencystringobligatoriosale_priceintegerobligatoriosale_currency).sale_price_baseintegerobligatoriosale_price_per_sqmnumberobligatoriosale_currency).sale_price_per_sqm_basenumberobligatoriorent_statusstringobligatorioactive reserved hold rented nonerent_currencystringobligatoriorent_priceintegerobligatoriorent_currency).rent_price_baseintegerobligatoriorent_price_per_sqmnumberobligatoriorent_currency).rent_price_per_sqm_basenumberobligatoriorent_periodstringobligatorioday week fortnight month year nonetitlestringobligatoriodescriptionstringobligatoriothumbnailsstring[]picturesstring[]gross_yieldnumberobligatoriosold_atcadena (fecha)obligatoriorented_atcadena (fecha)obligatoriototal_sale_price_changenumberobligatoriototal_rent_price_changenumberobligatoriolast_sale_price_reductionnumberobligatoriolast_rent_price_reductionnumberobligatoriosale_price_last_changeobjectobligatorio3 propiedades
change_datecadena (fecha)obligatorioold_valueintegerobligatorionew_valueintegerobligatoriorent_price_last_changeobjectobligatorio3 propiedades
change_datecadena (fecha)obligatorioold_valueintegerobligatorionew_valueintegerobligatoriosale_time_on_marketobjectnullablerent_time_on_marketobjectnullablesale_active_listings_countintegerrent_active_listings_countintegersimilarity_scorenumberlisting_urlsstring (uri)[]obligatoriois_outlierbooleanis_private_propertybooleanobligatorioenergy_certificatestringenergy_rating en su lugar.energy_ratingstringref_numbersstring[]obligatoriodvf_resultsobject[]19 properties
dvf_referenceintegerobligatoriocoordinatesobjectobligatorio2 propiedades
latnumberobligatoriolonnumberobligatoriodistancenumbertypestringobligatorio40 valores permitidos
apartment studio duplex penthouse dachgeschosswohnung etagenwohnung erdgeschosswohnung country_house house palace townhouse villa country_estate chalet bungalow family_house reihenhaus reihenendhaus reihenmittelhaus einfamilienhaus zweifamilienhaus landwirtschaftliche_betriebe retail office industrial warehouse hotel other_commercial restaurant werkstatt plot urban_plot rural_plot room other garage parking apartment_building office_building mix_use_buildingtype_groupstringobligatorioapartment house investment plot othersale_priceintegerobligatoriosale_price_baseintegerobligatoriosale_price_psqmnumbersale_price_psqm_basenumbersold_atstringnullabletotal_areaintegerobligatorioplot_areaintegerobligatorioroomsintegerobligatoriobedroomsintegerobligatorioaddressstringobligatoriolocationobjectobligatorio4 propiedades
location_idintegerobligatorioGET /v1/locations/search).namestringobligatorioadministrative_levelstringobligatoriozip_codesstring[]locations_structureobject[]obligatorio4 propiedades
location_idintegerobligatorioGET /v1/locations/search).namestringobligatorioadministrative_levelstringobligatoriozip_codesstring[]sale_statusstringactive reserved hold sold nonethumbnailsstring[]transactional_dataobject[]nullable26 properties
idintegerobligatorioreferencestringobligatoriocadastral_referencestringobligatorioroomsintegerobligatoriobedroomsintegerobligatoriobathroomsintegerobligatoriocoordinatesobjectobligatorio2 propiedades
latnumberobligatoriolonnumberobligatoriototal_areanumberobligatorioplot_areanumberobligatorioaddressstringobligatoriosource_typologystringobligatoriosource_annexesstringobligatoriotypestringobligatorio40 valores permitidos
apartment studio duplex penthouse dachgeschosswohnung etagenwohnung erdgeschosswohnung country_house house palace townhouse villa country_estate chalet bungalow family_house reihenhaus reihenendhaus reihenmittelhaus einfamilienhaus zweifamilienhaus landwirtschaftliche_betriebe retail office industrial warehouse hotel other_commercial restaurant werkstatt plot urban_plot rural_plot room other garage parking apartment_building office_building mix_use_buildingtype_groupstringobligatoriosold_atcadena (fecha)obligatoriocurrencystringobligatoriopricenumberobligatorioprice_per_sqmnumberobligatoriowith_mortgagebooleanobligatoriodistancenumbernullablelocation_idintegerobligatorioconstruction_yearintegerobligatoriolocationobjectobligatorio4 propiedades
location_idintegerobligatorioGET /v1/locations/search).namestringobligatorioadministrative_levelstringobligatoriozip_codesstring[]locations_structureobject[]obligatorio4 propiedades
location_idintegerobligatorioGET /v1/locations/search).namestringobligatorioadministrative_levelstringobligatoriozip_codesstring[]image_urlstring (uri)obligatorio^(?:[a-z0-9.+-]*)://(?:[^\s:@/]+(?::[^\s:@/]*)?@)?(?:(?:0|25[0-5]|2[0-4][0-9]|1[0-9]?[0-9]?|[1-9][0-9]?)(?:\.(?:0|25[0-5]|2[0-4][0-9]|1[0-9]?[0-9]?|[1-9][0-9]?)){3}|\[[0-9a-f:.]+\]|([a-z¡-0-9](?:[a-z¡-0-9-]{0,61}[a-z¡-0-9])?(?:\.(?!-)[a-z¡-0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡--]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::[0-9]{1,5})?(?:[/?#][^\s]*)?\zcountry_codestringobligatorioFR IT PT ESstatisticsobjectobligatoriooperation definida en la solicitud).5 propiedades
average_priceintegerobligatorioaverage_price_per_sqmnumberobligatorioaverage_time_on_the_marketintegerobligatorioaverage_listings_per_propertynumberobligatoriosold_or_rented_in_last_six_monthsintegerobligatorioestimated_pricesobjectobligatoriooperation definida en la solicitud).6 inmuebles
fast_sell_priceintegerobligatoriofair_market_priceintegerobligatorioout_of_market_priceintegerobligatoriofast_sell_price_per_sqmnumberobligatoriofair_market_price_per_sqmnumberobligatorioout_of_market_price_per_sqmnumberobligatoriocasafari_linkstring (uri)obligatorio^(?:[a-z0-9.+-]*)://(?:[^\s:@/]+(?::[^\s:@/]*)?@)?(?:(?:0|25[0-5]|2[0-4][0-9]|1[0-9]?[0-9]?|[1-9][0-9]?)(?:\.(?:0|25[0-5]|2[0-4][0-9]|1[0-9]?[0-9]?|[1-9][0-9]?)){3}|\[[0-9a-f:.]+\]|([a-z¡-0-9](?:[a-z¡-0-9-]{0,61}[a-z¡-0-9])?(?:\.(?!-)[a-z¡-0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡--]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::[0-9]{1,5})?(?:[/?#][^\s]*)?\zvaluation_idintegernullable400 Solicitud incorrecta
Tipo: object.
Mostrar la estructura de la respuesta (1 campo)
errorsobject401 No autorizado
Tipo: object.
Mostrar la estructura de la respuesta (1 campo)
detailstring403 Prohibido
Tipo: object.
Mostrar la estructura de la respuesta (1 campo)
detailstring