Time Series
https://api.casafari.com/market-analytics-api/time-seriesLegacy 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/area-insights/time-series.
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
Returns time series data for the real estate market.
Each time series unit includes the interval start date based on the provided date_interval and a value corresponding to the selected data_point.
Cuerpo de la solicitud
Tipo de contenido application/json. Obligatorio. Tipo: object.
typesstring[]obligatorio42 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 building other_commercial restaurant werkstatt urban_plot rural_plot room parking garage other apartment_building office_building mix_use_building apartment_development house_developmentbusiness_typestringobligatoriosale rentprice_rangeobjectnullable2 propiedades
minintegernullablemaxintegernullableprice_per_sqm_rangeobjectnullable2 propiedades
minintegernullablemaxintegernullablerooms_rangeobjectnullable2 propiedades
minintegernullablemaxintegernullablebedrooms_rangeobjectnullable2 propiedades
minintegernullablemaxintegernullablebathrooms_rangeobjectnullable2 propiedades
minintegernullablemaxintegernullabletotal_area_rangeobjectnullable2 propiedades
minintegernullablemaxintegernullableplot_area_rangeobjectnullable2 propiedades
minintegernullablemaxintegernullableconstruction_year_rangeobjectnullable2 propiedades
minintegernullablemaxintegernullablecharacteristicsobjectnullable2 propiedades
must_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_annuityconditionsstring[]used, ruin, very-good, new, other.used ruin very-good new otherprivatebooleanbankbooleanauctionbooleanexclude_outliersbooleancustom_location_boundaryobjectobligatorio3 propiedades
location_idsinteger[]polygonobject[]2 propiedades
latitudenumberobligatoriolongitudenumberobligatoriocircleobject2 propiedades
distanceintegerobligatoriotarget_point solicitado hasta los inmuebles.target_pointobjectobligatorio2 propiedades
latitudenumberobligatoriolongitudenumberobligatoriodata_pointstringobligatorioavg_price avg_price_psqm available_on_market new sold_or_rented price_up price_downdate_intervalstringobligatorioweek month quarter yeardate_rangeobjectobligatorio2 propiedades
mincadena (fecha)obligatorioYYYY-MM-DD. If the specified date is not Monday - the closest previous Monday will be selected.maxcadena (fecha)nullableYYYY-MM-DD. If the specified date is not Sunday - the closest previous Sunday will be selected.Ejemplo de solicitud
Solo marcadores de posición: reemplace el token y los valores por los suyos.
curl -X POST "https://api.casafari.com/market-analytics-api/time-series" \
-H "Authorization: Bearer $CASAFARI_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"types": [
"apartment"
],
"business_type": "sale",
"custom_location_boundary": {
"location_ids": [
11737
]
},
"data_point": "avg_price_psqm",
"date_interval": "quarter",
"date_range": {
"min": "2024-01-01",
"max": "2025-12-31"
}
}'Respuestas
200 Respuesta correcta
Tipo: object[].
Mostrar la estructura de la respuesta (2 campos)
date_startcadena (fecha)obligatoriodate_interval field value. The format follows YYYY-MM-DD.valuenumberobligatoriodata_point field value for the given date_start.Ejemplo de una llamada real (Madrid, pisos en venta) (arrays largos abreviados)
[
{
"date_start": "2024-01-01",
"value": 5294.94
},
{
"date_start": "2024-04-01",
"value": 5421.34
}
]204 Sin contenido
Sin cuerpo.
400 Solicitud incorrecta
Tipo: object.
Mostrar la estructura de la respuesta (3 campos)
messagestringobligatorioerrorsstring[]nullabledetailsstringnullable422 Error de validación
Tipo: object.
Mostrar la estructura de respuesta (6 campos)
detailobject[]5 propiedades
loc(string | integer)[]obligatoriomsgstringobligatoriotypestringobligatorioinputanyctxobject