Existing Casafari API · API v1 · Alerts
Search alerts
https://api.casafari.com/v1/listing-alerts/searchSend Authorization: Token $CASAFARI_TOKEN with your existing API token; see where to get it.
The same path under /api, signed in with a bearer token, is in the REST API reference: POST /api/v1/listing-alerts/search.
Description
Returns paginated list of alerts (by requested parameters) for currently authenticated user.
Query parameters
limitintegeroffsetintegerorder_bystringalert_date -alert_date alert_id -alert_id created_at -created_at updated_at -updated_atalert_subtypestringalert_subtypes field in the body parameters instead.new price_up price_down reserved delisted soldRequest body
Content type application/json. Optional. Type: object.
operationstringrequiredsale rentlocation_idsinteger[]custom_locationobject[]custom_locations field instead.2 properties
latitudenumberrequiredlongitudenumberrequiredcustom_locationsobject[][]2 properties
latitudenumberrequiredlongitudenumberrequiredtypesstring[]40 allowed values
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_buildingconditionsstring[]used ruin very-good new otheralert_date_fromstring (date)YYYY-MM-DD) of the period for alerts of interest.alert_date_tostring (date)YYYY-MM-DD) of the period for alerts of interest.created_at_fromstring (date-time)YYYY-MM-DDTHH:mm:ss) to filter alerts by their creation in the database (UTC). Useful for incremental sync to avoid fetching already fetched data.created_at_tostring (date-time)YYYY-MM-DDTHH:mm:ss) to filter alerts by their creation in the database (UTC). Useful for incremental sync to avoid fetching already fetched data.created_at_with_photos_fromstring (date-time)created_at_with_photos_tostring (date-time)statusesstring[]active reserved hold sold rentedprice_fromintegerprice_tointegerprice_per_sqm_fromintegerprice_per_sqm_tointegerbedrooms_fromintegerbedrooms_tointegerbathrooms_fromintegerbathrooms_tointegertotal_area_fromintegertotal_area_tointegerplot_area_fromintegerplot_area_tointegerconstruction_year_fromintegerconstruction_year_tointegerfloorstringfloors field instead.no_floor ground middle topfloorsstring[]no_floor ground middle toporientationstringexterior interiorviewstringviews field instead."water landscape city golf parkviewsstring[]water landscape city golf parkdirectionstringdirections field instead.north south east westdirectionsstring[]north south east westcharacteristicsstring[]balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuityalert_subtypesstring[]new price_up price_down reserved delisted soldprivatebooleanauctionbooleanbankbooleannew_developmentbooleanlisting_agentsstring[]with_agenciesstring[]without_agenciesstring[]exclusivebooleanprivate, with_agencies, without_agencies.ref_numbersstring[]has_phonebooleanphone number.has_emailbooleanhas_agency_namebooleanproperty_idsinteger[]listing_idsinteger[]Example request
Placeholders only: replace the token and the values with your own.
curl -X POST "https://api.casafari.com/v1/listing-alerts/search" \
-H "Authorization: Token $CASAFARI_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operation": "sale",
"types": [
"apartment",
"studio",
"duplex",
"penthouse"
],
"location_ids": [
2942,
1861,
1600
],
"conditions": [
"used",
"very-good",
"new"
],
"statuses": [
"active",
"reserved"
],
"price_from": 150000,
"price_to": 800000,
"price_per_sqm_from": 2000,
"price_per_sqm_to": 8000,
"bedrooms_from": 1,
"bedrooms_to": 3,
"total_area_from": 30,
"total_area_to": 130,
"construction_year_from": 1950,
"floors": [
"middle",
"top"
],
"views": [
"city"
],
"directions": [
"west",
"south"
],
"characteristics": [
"balcony",
"elevator",
"parking"
],
"private": false,
"new_development": false,
"has_agency_name": true,
"has_email": false,
"without_agencies": [
"Airbnb",
"Casa.Sapo"
],
"alert_date_from": "2021-09-01"
}'Responses
200
Type: object[].
Show the response shape (91 fields)
countintegernextstring (uri)nullablepreviousstring (uri)nullableresultsobject67 properties
alert_idintegerrequiredlisting_idintegerrequiredrefstringrequiredalert_typestringrequiredsale_price sale_status rent_price rent_status newalert_subtypestringrequirednew price_up price_down reserved delisted soldold_valuestringrequirednew_valuestringrequiredalert_datestring (date)requiredalert_date_and_timestringnullableproperty_urlstringnullablelisting_urlstringnullablelisting_old_urlstringnullablelisting_uidstringrequiredproperty_idintegerrequiredtitlestringrequiredtypestringrequired40 allowed values
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_groupstringrequiredlocationobjectrequired4 properties
location_idintegerrequirednamestringrequiredadministrative_levelstringrequiredzip_codesstring[]locations_structureobject[]required4 properties
location_idintegerrequirednamestringrequiredadministrative_levelstringrequiredzip_codesstring[]addressstringrequiredzip_codestringrequiredcadastral_referencestringrequiredcoordinatesobjectrequired2 properties
latitudenumberrequiredlongitudenumberrequiredconditionstringrequiredused ruin very-good new othercontacts_infoobjectrequired3 properties
namestringrequiredemailstring (email)requiredphonestringrequiredtotal_areaintegerrequiredliving_areaintegerrequiredplot_areaintegerrequiredterrace_areaintegerrequiredbedroomsintegerrequiredroomsintegerrequiredbathroomsintegerrequiredfeaturesobjectrequired7 properties
floorstringrequiredno_floor ground middle toporientationstringrequiredexterior interiorviewstringrequiredviews field instead.water landscape city golf parkviewsstring[]requiredwater landscape city golf parkdirectionstringrequireddirections field instead.north south east westdirectionsstring[]requirednorth south east westcharacteristicsstring[]requiredbalcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuityconstruction_yearintegerrequiredoperationsstring[]requiredsale rentis_bank_propertybooleanrequiredis_auction_propertybooleanrequiredis_new_development_propertybooleanrequiredis_private_propertybooleanrequiredsale_statusstringrequiredactive reserved hold sold nonesale_currencystringrequiredsale_price_baseintegerrequiredsale_priceintegerrequiredsale_currency field).sale_price_per_sqmnumberrequiredsale_currency field).sale_price_per_sqm_basenumberrequiredrent_statusstringrequiredactive reserved hold rented nonerent_currencystringrequiredrent_price_baseintegerrequiredrent_priceintegerrequiredrent_currency field).rent_price_per_sqmnumberrequiredrent_currency field).rent_price_per_sqm_basenumberrequiredrent_periodstringrequiredday week fortnight month year noneagency_legal_idstringrequiredagencystringrequiredagentstringrequiredsource_namestringrequireddescriptionstringrequiredthumbnailsstring[]picturesstring[]created_atstring (date-time)requiredcreated_at_with_photosstring (date-time)requirednull if photo processing has not finished yet.
If the listing has no photos but the system has finished the processing, this field will contain its date and time.updated_atstring (date-time)requiredenergy_certificatestringrequiredenergy_rating field instead.energy_ratingstringrequiredheating_typestringrequiredavailable_fromstring (date)requiredavailable_tostring (date)requiredExample from the API description (long arrays shortened)
{
"count": 79,
"next": "https://api.casafari.com/v1/listing-alerts/search?limit=50&offset=50",
"previous": null,
"results": [
{
"alert_id": 412269711,
"listing_id": 110358519,
"title": "Apartamento T2 em Santa Engracia",
"ref": "ID-124021076-47",
"alert_type": "sale_price",
"alert_subtype": "price_down",
"old_value": "549000",
"new_value": "545000",
"alert_date": "2021-10-24",
"alert_date_and_time": "2021-10-24T05:37:09",
"created_at": "2021-10-24T05:38:53.273581",
"created_at_with_photos": "2021-10-24T05:43:27.622175",
"updated_at": "2021-04-05T17:47:19.191211",
"property_url": "https://www.casafari.com/home-sale/property-51277418",
"listing_url": "https://www.idealista.pt/imovel/31407575/",
"listing_old_url": null,
"listing_uid": "1054046",
"property_id": 51277418,
"type": "apartment",
"type_group": "apartment",
"location": {
"location_id": 28649,
"name": "Santa Engrácia",
"administrative_level": "Localidade",
"zip_codes": []
},
"locations_structure": [
{
"location_id": 499,
"name": "Portugal",
"administrative_level": "País",
"zip_codes": [
"1200-224"
]
}
],
"address": "",
"zip_code": "80804",
"cadastral_reference": "2181605VK4728A0001TA",
"coordinates": {
"latitude": 38.7194,
"longitude": -9.12209
},
"condition": "used",
"contacts_info": {
"name": null,
"email": null,
"phone": "215551538"
},
"total_area": 130,
"living_area": 128,
"plot_area": 0,
"terrace_area": 15,
"bedrooms": 3,
"rooms": 0,
"bathrooms": 2,
"features": {
"floor": "middle",
"orientation": null,
"views": [
"city"
],
"directions": [
"west"
],
"characteristics": [
"balcony"
]
},
"construction_year": 2015,
"operations": [
"sale"
],
"is_bank_property": false,
"is_auction_property": false,
"is_new_development_property": false,
"is_private_property": false,
"sale_status": "active",
"sale_currency": "EUR",
"sale_price": 545000,
"sale_price_base": 545000,
"sale_price_per_sqm": 4192,
"sale_price_per_sqm_base": 4192,
"rent_status": "none",
"rent_currency": "EUR",
"rent_price": 0,
"rent_price_base": 0,
"rent_price_per_sqm": 0,
"rent_price_per_sqm_base": 0,
"rent_period": "none",
"agency_legal_id": "402016653",
"agency": "Helena Almeida Pires",
"agent": "",
"source_name": "Idealista",
"description": "O apartamento é composto de sala de estar e jantar ampla, com janelas de vidro duplo que dão enorme luminosidade, ao ambiente.",
"thumbnails": [
"https://st2.retelligence.co/c/2875/4/7f/5a0fc6ebf8e4e41d062342a29b50647f350.jpg"
],
"pictures": [
"https://media.casasapo.pt/Z1140x855/Wnone/S5/C2729/P20091734/Tphoto/ID56933201-0000-0500-0000-00000d1ffcdc.jpg"
],
"energy_certificate": "B",
"energy_rating": "B",
"heating_type": "Central heating",
"available_from": "2026-07-01",
"available_to": "2027-06-30"
}
]
}400 Bad Request
Type: object.
Show the response shape (1 fields)
errorsobject401 Unauthorized
Type: object.
Show the response shape (1 fields)
detailstring403 Forbidden
Type: object.
Show the response shape (1 fields)
detailstring