Existing Casafari API · API v1 · Comparables
Search comparables
https://api.casafari.com/v1/comparables/searchEnvíe Authorization: Token $CASAFARI_TOKEN con su token de API existente; consulte dónde obtenerlo.
The same path under /api, signed in with a bearer token, is in the REST API reference: POST /api/v1/comparables/search.
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 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/v1/comparables/search" \
-H "Authorization: Token $CASAFARI_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"comparables_count": 20,
"location_boundary": {
"circle": {
"distance": 3.5,
"target_point": {
"coordinates": {
"latitude": 38.74,
"longitude": -9.17
}
}
}
},
"sold_or_rented_after": "2020-06-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": [
"middle",
"top"
],
"floor_number": [
3,
5
],
"views": [
"city",
"landscape"
],
"directions": [
"west",
"north"
],
"characteristics": {
"must_have": [
"balcony",
"elevator"
],
"nice_to_have": [
"garage",
"parking",
"storage"
]
},
"energy_ratings": [
"A",
"B",
"C"
]
}'Respuestas
200
Tipo: object.
Show the response shape (98 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_idintegerobligatorionamestringobligatorioadministrative_levelstringobligatoriozip_codesstring[]locations_structureobject[]obligatorio4 propiedades
location_idintegerobligatorionamestringobligatorioadministrative_levelstringobligatoriozip_codesstring[]addressstringobligatoriozip_codestringobligatoriodistancenumbernullableconstruction_yearintegerobligatoriototal_areaintegerobligatorioliving_areaintegerobligatorioplot_areaintegerobligatorioterrace_areaintegerobligatoriobedroomsintegerobligatorioroomsintegerobligatoriobathroomsintegerobligatoriofloor_numberintegerobligatorioconditionstringobligatorioused 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_dvfbooleanis_outlierbooleanis_private_propertybooleanobligatorioenergy_certificatestringenergy_rating en su lugar.energy_ratingstringstatisticsobjectobligatoriooperation 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]*)?\z400 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